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

◆ set_parameter()

void MayaFlux::Nodes::Network::TopologyOperator::set_parameter ( std::string_view  param,
double  value 
)
overridevirtual

Set operator parameter.

Implements MayaFlux::Nodes::Network::NetworkOperator.

Definition at line 180 of file TopologyOperator.cpp.

181{
182 if (param == "connection_radius") {
183 for (auto& topology : m_topologies) {
184 topology->set_connection_radius(static_cast<float>(value));
185 }
186 } else if (param == "k_neighbors") {
187 for (auto& topology : m_topologies) {
188 topology->set_k_neighbors(static_cast<size_t>(value));
189 }
190 } else if (param == "line_thickness") {
191 m_default_thickness = static_cast<float>(value);
192 for (auto& topology : m_topologies) {
193 topology->set_line_thickness(m_default_thickness);
194 }
195 }
196}
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies

References m_default_thickness, and m_topologies.