MayaFlux 1.0.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 268 of file TopologyOperator.cpp.

269{
270 if (param == "connection_radius") {
271 for (auto& topology : m_topologies) {
272 topology->set_connection_radius(static_cast<float>(value));
273 }
274 } else if (param == "k_neighbors") {
275 for (auto& topology : m_topologies) {
276 topology->set_k_neighbors(static_cast<size_t>(value));
277 }
278 } else if (param == "line_thickness") {
279 for (auto& topology : m_topologies) {
280 topology->set_line_thickness(static_cast<float>(value));
281 }
282 }
283}
PrimitiveTopology topology
glm::vec3 value
std::vector< std::shared_ptr< GpuSync::TopologyGeneratorNode > > m_topologies

References m_topologies, topology, and value.