|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Form< std::vector< float > > MayaFlux::Portal::Forma::Geometry::drawable_canvas | ( | Kinesis::AABB2D | bounds, |
| glm::vec3 | color = glm::vec3(0.8F), |
||
| float | thickness = 1.5F, |
||
| const std::function< glm::vec2()> & | live_offset = {}, |
||
| size_t | samples = 0 |
||
| ) |
Geometry function for a drawable curve canvas in NDC space.
Renders the sample vector as a LINE_LIST polyline. Each adjacent sample pair becomes one segment. The hit region covers the full canvas bounds.
| bounds | Canvas extent in NDC. |
| color | Line color. |
| thickness | LineVertex thickness value. |
| live_offset | Optional. Current translation of the drawn canvas - geometry only. paint_over()/wire_canvas_drag() do their own inline cursor math, not routed through Kinesis::Projection, and are not offset-aware here. |
| samples | Sample count the canvas will hold. Sizes the buffer so the first draw does not reallocate. Zero keeps the default capacity. |
Definition at line 386 of file FormFactory.cpp.
References color, MayaFlux::Kinesis::AABB2D::contains(), MayaFlux::Kinesis::AABB2D::height(), MayaFlux::Portal::Graphics::LINE_LIST, MayaFlux::Kinesis::AABB2D::max, MayaFlux::Kinesis::AABB2D::min, out, paint_over(), MayaFlux::Kinesis::polygon_bounds(), MayaFlux::Portal::Forma::Geometry::Form< T >::topology, MayaFlux::Kinesis::AABB2D::translated(), MayaFlux::Kinesis::AABB2D::width(), and write_verts().
Here is the call graph for this function: