MayaFlux 0.4.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 198 of file TopologyOperator.cpp.

199{
200 if (param == "connection_radius") {
201 for (auto& topology : m_topologies) {
202 topology->set_connection_radius(static_cast<float>(value));
203 }
204 } else if (param == "k_neighbors") {
205 for (auto& topology : m_topologies) {
206 topology->set_k_neighbors(static_cast<size_t>(value));
207 }
208 } else if (param == "line_thickness") {
209 m_default_thickness = static_cast<float>(value);
210 for (auto& topology : m_topologies) {
211 topology->set_line_thickness(m_default_thickness);
212 }
213 }
214}
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies

References m_default_thickness, and m_topologies.