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

◆ query_state()

std::optional< double > MayaFlux::Nodes::Network::ModalDampingOperator::query_state ( std::string_view name) const
nodiscardoverridevirtual

The control of that name as the operator holds it, or "mode_count".

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

Definition at line 160 of file ModalDampingOperator.cpp.

161{
162 if (const auto value = ControlStore::read_named(get(), name)) {
163 return value;
164 }
165 if (name == "mode_count") {
166 return static_cast<double>(m_modes.size());
167 }
168 return std::nullopt;
169}
static std::optional< double > read_named(const C &controls, std::string_view name)
Self::Controls get(this const Self &self)
The controls with the values the operator holds now.

References MayaFlux::Nodes::Network::NetworkOperator::get(), m_modes, and MayaFlux::ControlValueStore< Control >::read_named().

Here is the call graph for this function: