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

◆ declared_topology()

virtual std::optional< Portal::Graphics::PrimitiveTopology > MayaFlux::Nodes::Network::GraphicsOperator::declared_topology ( ) const
inlinevirtual

Topology this operator's vertex data is authored for, if it holds a node to ask.

Returns
The (first) underlying node's own GeometryWriterNode::get_primitive_topology(); nullopt when this operator holds no node at all. Default nullopt, matching every operator with no notion of a specific node (or that never overrides this).

get_vertex_count()/get_vertex_layout() describe the vertex record, not what the vertices mean as primitives, so a consumer choosing between an Alembic Points and Curves schema (or any other topology-shaped decision) needs this instead.

Reimplemented in MayaFlux::Nodes::Network::AssemblyOperator, MayaFlux::Nodes::Network::PathOperator, MayaFlux::Nodes::Network::PhysicsOperator, and MayaFlux::Nodes::Network::TopologyOperator.

Definition at line 188 of file GraphicsOperator.hpp.

188{ return std::nullopt; }

Referenced by topology_runs(), and MayaFlux::IO::write_operator_sample().

+ Here is the caller graph for this function: