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

◆ get_node_count()

size_t MayaFlux::Nodes::Network::ParticleNetwork::get_node_count ( ) const
overridevirtual

Get number of particles in network.

Returns total particle count across all internal collections. For ParticleNetwork, "nodes" ARE particles - each particle is a mappable entity for parameter control.

Implements MayaFlux::Nodes::Network::NodeNetwork.

Definition at line 122 of file ParticleNetwork.cpp.

123{
124 if (!m_operator) {
125 return m_num_points;
126 }
127
128 if (auto* graphics_op = dynamic_cast<const GraphicsOperator*>(m_operator.get())) {
129 return graphics_op->get_point_count();
130 }
131
132 return m_num_points;
133}
std::unique_ptr< NetworkOperator > m_operator

References m_num_points, and m_operator.

Referenced by get_metadata().

+ Here is the caller graph for this function: