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

◆ query_state()

std::optional< double > MayaFlux::Nodes::Network::PathOperator::query_state ( std::string_view  query) const
overridevirtual

Query operator internal state.

Implements MayaFlux::Nodes::Network::NetworkOperator.

Definition at line 322 of file PathOperator.cpp.

323{
324 if (query == "control_point_count") {
325 size_t total = 0;
326 for (const auto& path : m_paths) {
327 total += path->get_control_point_count();
328 }
329 return static_cast<double>(total);
330 }
331 if (query == "vertex_count") {
332 return static_cast<double>(get_vertex_count());
333 }
334 if (query == "path_count") {
335 return static_cast<double>(m_paths.size());
336 }
337 return std::nullopt;
338}
uint32_t total
std::vector< std::shared_ptr< GpuSync::PathGeneratorNode > > m_paths
size_t get_vertex_count() const override
Get number of vertices (may differ from point count for topology/path)

References get_vertex_count(), m_paths, and total.

+ Here is the call graph for this function: