HIRO_DRAW
Computer Graphics Structures library
hiro::draw::PointCloudStyle Struct Reference

Stylization of the rendered point cloud. More...

Inheritance diagram for hiro::draw::PointCloudStyle:
[legend]

Public Member Functions

bool ReadFromStream (std::istream &str) override
 Imports state from stream.
 
void WriteToStream (std::ostream &str) override
 Exports state to stream.
 

Data Fields

hiro::shader::Material material
 Material setting for points.
 
bool back_face_culling { false }
 When enabled, points with normal vector turned away from the camera are hidden.
 
float point_size { 10.0f }
 Size of point in screen pixels.
 
hiro::draw::ColorSource color_source { hiro::draw::ColorSource::material }
 Color source used to colorize points.
 
bool display_normals { false }
 When enabled, normal vector for every point is rendered.
 
cogs::Color3f normal_color { cogs::color::BLACK }
 Color of normal vector tips. Used only when normals are displayed.
 
float normal_length { 0.1f }
 Length of normal vectors. Used only used when normals are displayed.
 
- Data Fields inherited from hiro::draw::Style
bool visible = true
 Whether the renderer that uses this style should be skipped during the rendering.
 
cogs::Transform transform
 Model transformation applied to the renderer. In shader will appear as MODEL_MATRIX.
 

Additional Inherited Members

- Protected Member Functions inherited from hiro::draw::Style
bool ReadVersion (std::istream &str, const uint32_t expected_version)
 Read uint32_t version from stream and check if it is equal to the expected version.
 

Detailed Description

Stylization of the rendered point cloud.