MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_control_points()

void MayaFlux::Nodes::GpuSync::PathGeneratorNode::set_control_points ( const std::vector< LineVertex > &  vertices)

Set all control points with full LineVertex data.

Parameters
verticesVector of LineVertex data (ordered newest to oldest)

Clears existing history and fills buffer with new vertices. If vertices.size() > capacity, only most recent vertices kept.

Definition at line 252 of file PathGeneratorNode.cpp.

253{
254 m_control_points.assign(vertices.rbegin(), vertices.rend());
257 "PathGeneratorNode: {} control points exceed the capacity of {}, keeping the newest {}",
259 m_control_points.erase(
260 m_control_points.begin() + static_cast<std::ptrdiff_t>(m_max_control_points),
261 m_control_points.end());
262 }
263
266 m_path_dirty = true;
267 m_geometry_dirty = true;
268}
#define MF_WARN(comp, ctx,...)
std::vector< LineVertex > m_control_points
Control points, newest first: index 0 is the most recently added.
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References INVALID_SEGMENT, m_control_points, m_dirty_segment_end, m_dirty_segment_start, m_geometry_dirty, m_max_control_points, m_path_dirty, MF_WARN, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.