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

◆ get_node_count()

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

Get the number of nodes in the network.

Returns
Total node count

Used for introspection, visualization, and validation.

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

Definition at line 160 of file PointCloudNetwork.cpp.

161{
162 if (!m_operator) {
163 return m_cached_vertices.size();
164 }
165
166 if (auto* graphics_op = dynamic_cast<const GraphicsOperator*>(m_operator.get())) {
167 return graphics_op->get_point_count();
168 }
169
170 return m_cached_vertices.size();
171}
std::unique_ptr< NetworkOperator > m_operator

References m_cached_vertices, and m_operator.

Referenced by get_metadata(), and get_node_output().

+ Here is the caller graph for this function: