|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
nodiscard |
Geometry function for a path of draggable points in NDC space.
The state holds the points in unit space, so any writer sees positions independent of where the area sits on the surface.
| bounds | NDC region the unit square is mapped onto. |
| handles | Point count the buffer is sized for. |
| path_color | Stroke color. |
| handle_color | Color of the box drawn at each point. |
| thickness | LineVertex thickness of the stroke and the boxes. |
| handle_size | Side of each box in NDC units. |
| grab_radius | Largest NDC distance from a point at which a press grabs it. |
| live_offset | Optional. Current translation of the drawn area. |
Definition at line 445 of file FormFactory.cpp.
References MayaFlux::Portal::Forma::Geometry::Form< T >::capacity, MayaFlux::Kinesis::AABB2D::contains(), MayaFlux::Kinesis::AABB2D::from_ndc(), MayaFlux::IO::Left, MayaFlux::Portal::Graphics::LINE_LIST, MayaFlux::Kinesis::AABB2D::point_at(), MayaFlux::Kinesis::polyline(), MayaFlux::Kinesis::rect_outline(), MayaFlux::Portal::Forma::Geometry::Form< T >::topology, MayaFlux::Kinesis::AABB2D::translated(), MayaFlux::Kinesis::unit_square(), MayaFlux::Portal::Forma::Geometry::Form< T >::wire, and write_verts().
Referenced by MayaFlux::Portal::Forma::handle_path_form().