|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API GeometryFn< float > MayaFlux::Portal::Forma::Plot::plot_cursor | ( | Kinesis::AABB2D | bounds, |
| bool | vertical = true, |
||
| glm::vec3 | color = glm::vec3(0.75F), |
||
| float | thickness = 1.F |
||
| ) |
GeometryFn<float> for a cursor or playhead line within a plot area.
Value in [0, 1] maps to a position within bounds. When vertical is true the line is vertical and the value maps to the X axis; when false the line is horizontal and the value maps to the Y axis.
PrimitiveTopology::LINE_LIST explicitly to create_element.| bounds | Plot area in NDC. The line spans the full perpendicular extent. |
| vertical | True for a vertical playhead (X position), false for horizontal. |
| color | Line color. |
| thickness | LineVertex::thickness value. |
Definition at line 182 of file PlotSpec.cpp.
References MayaFlux::Kinesis::AABB2D::height(), MayaFlux::Kinesis::AABB2D::max, MayaFlux::Kinesis::AABB2D::min, MayaFlux::Kinesis::AABB2D::width(), and MayaFlux::Portal::Forma::Geometry::write_verts().
Here is the call graph for this function: