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

◆ is_compatible()

bool MayaFlux::Nodes::Network::ParticleNetwork::is_compatible ( const NetworkOperator &  op)
staticprivatenoexcept

Whether an operator can serve as this network's primary.

ParticleNetwork drives per-point motion, so a primary must own PointVertex storage and accept initialisation from a generated point distribution. The list is the set of operators that do, not a privilege granted to any one of them.

Definition at line 329 of file ParticleNetwork.cpp.

330{
331 return dynamic_cast<const PhysicsOperator*>(&op) != nullptr
332 || dynamic_cast<const FieldOperator*>(&op) != nullptr;
333}

Referenced by set_operator().

+ Here is the caller graph for this function: