Query operator internal state.
Implements MayaFlux::Nodes::Network::NetworkOperator.
Definition at line 322 of file PathOperator.cpp.
323{
324 if (query == "control_point_count") {
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") {
333 }
334 if (query == "path_count") {
335 return static_cast<double>(
m_paths.size());
336 }
337 return std::nullopt;
338}
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.