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

◆ add_topology()

void MayaFlux::Nodes::Network::TopologyOperator::add_topology ( const std::vector< LineVertex > &  vertices,
Kinesis::ProximityMode  mode 
)

Add a single topology with full per-vertex control.

Parameters
verticesVector of LineVertex defining the topology's points and attributes.
modeProximity mode for this topology.

Definition at line 54 of file TopologyOperator.cpp.

57{
58 if (vertices.empty()) {
60 "Cannot add topology with zero vertices");
61 return;
62 }
63
64 auto topology = std::make_shared<GpuSync::TopologyGeneratorNode>(mode, 1024);
65
66 topology->set_points(vertices);
67 topology->compute_frame();
68
69 m_topologies.push_back(std::move(topology));
70
72 "Added topology #{} with {} points, {} connections",
73 m_topologies.size(), vertices.size(),
74 m_topologies.back()->get_connection_count());
75}
#define MF_WARN(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_topologies, MF_DEBUG, MF_WARN, MayaFlux::Journal::NodeProcessing, and MayaFlux::Journal::Nodes.

Referenced by initialize(), and initialize_topologies().

+ Here is the caller graph for this function: