MayaFlux 1.0.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 139 of file ParticleNetwork.cpp.

140{
141 if (!m_operator) {
142 return m_num_points;
143 }
144
145 if (auto* graphics_op = dynamic_cast<const GraphicsOperator*>(m_operator.get())) {
146 return graphics_op->get_point_count();
147 }
148
149 return m_num_points;
150}
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: