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

◆ get_modulators()

std::vector< std::pair< ModulatorRole, std::shared_ptr< Node > > > MayaFlux::Nodes::BinaryOpNode::get_modulators ( ) const
overridevirtual

Retrieves the current modulators connected to this node.

Returns
Vector of pairs containing the modulator role and the corresponding node

Reimplemented from MayaFlux::Nodes::Node.

Definition at line 237 of file NodeCombine.cpp.

238{
239 std::vector<std::pair<ModulatorRole, std::shared_ptr<Node>>> result;
240 if (m_lhs)
241 result.emplace_back(ModulatorRole::Lhs, m_lhs);
242 if (m_rhs)
243 result.emplace_back(ModulatorRole::Rhs, m_rhs);
244 return result;
245}
std::shared_ptr< Node > m_lhs
The left-hand side node.
std::shared_ptr< Node > m_rhs
The right-hand side node.

References MayaFlux::Nodes::Lhs, m_lhs, m_rhs, and MayaFlux::Nodes::Rhs.