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

◆ map_parameter() [2/2]

void MayaFlux::Nodes::Network::NodeNetwork::map_parameter ( const std::string &  param_name,
const std::shared_ptr< NodeNetwork > &  source_network 
)
virtual

Map external node network to network parameters (ONE_TO_ONE)

Parameters
param_nameParameter name
source_networkNodeNetwork with matching node count
Note
Default implementation stores mapping; subclasses handle in process_batch(). This methoud SHOULD BE OVERRIDDEN by child classes that need to handle parameter mappings.

Reimplemented in MayaFlux::Nodes::Network::WaveguideNetwork, MayaFlux::Nodes::Network::ModalNetwork, and MayaFlux::Nodes::Network::ResonatorNetwork.

Definition at line 51 of file NodeNetwork.cpp.

53{
54 m_parameter_mappings.push_back(
55 { param_name, MappingMode::ONE_TO_ONE, nullptr, source_network });
56}
std::vector< ParameterMapping > m_parameter_mappings
@ ONE_TO_ONE
Node array/network → network nodes (must match count)

References m_parameter_mappings, and MayaFlux::Nodes::Network::ONE_TO_ONE.