scenepic 1.1.0
3D Visualization Made Easy
|
Represents a vertical line in a sparkline graph. More...
#include <graph.h>
Public Member Functions | |
VerticalRule (std::int64_t frame, const Color &color=scenepic::Colors::Black, float line_width=1.0f) | |
Constructor. More... | |
std::string | to_string () const |
Returns a string representation of the margin. More... | |
JsonValue | to_json () const |
Convert this object into ScenePic json. More... | |
Public Attributes | |
std::int64_t | frame |
The frame at which to add the line. More... | |
Color | color |
The color of the line. More... | |
float | line_width |
The width of the line in pixels. More... | |
Represents a vertical line in a sparkline graph.
scenepic::Graph::VerticalRule::VerticalRule | ( | std::int64_t | frame, |
const Color & | color = scenepic::Colors::Black , |
||
float | line_width = 1.0f |
||
) |
Constructor.
frame | the frame at which to add the line |
color | the color of the line |
line_width | the width of the line in pixels |
JsonValue scenepic::Graph::VerticalRule::to_json | ( | ) | const |
Convert this object into ScenePic json.
std::string scenepic::Graph::VerticalRule::to_string | ( | ) | const |
Returns a string representation of the margin.
Color scenepic::Graph::VerticalRule::color |
The color of the line.
std::int64_t scenepic::Graph::VerticalRule::frame |
The frame at which to add the line.
float scenepic::Graph::VerticalRule::line_width |
The width of the line in pixels.