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

Structure specifying how the skeleton should be rendered. More...

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

Public Types

enum  RenderMode { RenderMode::octahedral, RenderMode::octahedral_wire, RenderMode::stick }
 Mode used to render skeleton. More...
 

Public Member Functions

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

Data Fields

hiro::shader::Material bonejoint_material { hiro::shader::Material(cogs::color::GRAY70) }
 Material used to render bones as well as joints of the skeleton.
 
bool display_basis { false }
 Defines whether the basis vectors of each individual bone should be displayed.
 
bool display_joints { true }
 When enabled, also joints will be rendered.
 
hiro::draw::SkeletonStyle::RenderMode render_mode { hiro::draw::SkeletonStyle::RenderMode::octahedral }
 Specifies the mode used to render the skeleton.
 
- 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

Structure specifying how the skeleton should be rendered.

Member Enumeration Documentation

◆ RenderMode

Mode used to render skeleton.

Enumerator
octahedral 

Renders bone as octahedron and joint as icosahedron.

octahedral_wire 

Renders bone as wired octahedron and joint as wired icosahedron.

stick 

Renders bone as line and joint as point.