MayaFlux 0.5.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 321 of file ParticleNetwork.cpp.

322{
323 return dynamic_cast<const PhysicsOperator*>(&op) != nullptr
324 || dynamic_cast<const FieldOperator*>(&op) != nullptr;
325}

Referenced by set_operator().

+ Here is the caller graph for this function: