MayaFlux 0.3.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 120 of file ParticleNetwork.cpp.

121{
122 if (!m_operator) {
123 return m_num_points;
124 }
125
126 if (auto* graphics_op = dynamic_cast<const GraphicsOperator*>(m_operator.get())) {
127 return graphics_op->get_point_count();
128 }
129
130 return m_num_points;
131}
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: