![]() |
HIRO_DRAW
Computer Graphics Structures library
|
Stylization of the rendered line field. More...
Public Types | |
| enum | ColorSource { ColorSource::fixed = 0, ColorSource::length = 1, ColorSource::custom = 2, ColorSource::velocity = 3 } |
| Possible sources of line color information. More... | |
Public Member Functions | |
| virtual bool | ReadFromStream (std::istream &str) override |
| Imports state from stream. | |
| virtual void | WriteToStream (std::ostream &str) override |
| Exports state to stream. | |
Data Fields | |
| float | thickness { 1.0f } |
| Specifies thickness of a lines. | |
| hiro::draw::LineFieldStyle::ColorSource | color_source { hiro::draw::LineFieldStyle::ColorSource::fixed } |
| Specifies, from where line colors should be obtained. | |
| cogs::Color3f | fixed_color { cogs::color::GRAY50 } |
| Default fixed color for the lines. Used when color source set to ColorSource::fixed. | |
| glw::ArrayObject::BufferName | custom_cl_buf { glw::ArrayObject::INVALID_NAME } |
| Name of buffer used to get custom colors. Used when color source set to ColorSource::custom. | |
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. | |
Stylization of the rendered line field.
|
strong |