MayaFlux 0.2.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 154 of file PointCloudNetwork.cpp.

155{
156 if (!m_operator) {
157 return m_cached_vertices.size();
158 }
159
160 if (auto* graphics_op = dynamic_cast<const GraphicsOperator*>(m_operator.get())) {
161 return graphics_op->get_point_count();
162 }
163
164 return m_cached_vertices.size();
165}
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: