![]() |
Mema
Memory Matrix — multi-channel audio matrix monitor and router
|
#include <PluginControlComponent.h>
Inheritance diagram for Mema::PluginControlComponent:
Collaboration diagram for Mema::PluginControlComponent:Public Member Functions | |
| PluginControlComponent () | |
| virtual | ~PluginControlComponent () |
| void | paint (Graphics &) override |
| void | resized () override |
| void | lookAndFeelChanged () override |
| void | resetCtrl () override |
| void | setControlsSize (const ControlsSize &ctrlsSize) override |
| const std::string & | getPluginName () |
| void | setPluginName (const std::string &pluginName) |
| const std::vector< Mema::PluginParameterInfo > & | getParameterInfos () |
| void | setParameterInfos (const std::vector< Mema::PluginParameterInfo > ¶meterInfos) |
| void | setParameterValue (std::uint16_t index, std::string id, float value) |
| PluginControlComponent () | |
| ~PluginControlComponent () | |
| void | showPluginsList (juce::Point< int > showPosition) |
| void | setPluginEnabled (bool enabled=true) |
| void | setPluginPrePost (bool post=false) |
| void | setSelectedPlugin (const juce::PluginDescription &pluginDescription) |
| void | setParameterInfos (const std::vector< PluginParameterInfo > &infos) |
| const std::map< int, Mema::PluginParameterInfo > & | getParameterInfos () |
| void | showParameterConfig () |
| void | paint (Graphics &) override |
| void | resized () override |
| void | lookAndFeelChanged () override |
Public Member Functions inherited from Mema::MemaClientControlComponentBase | |
| MemaClientControlComponentBase () | |
| virtual | ~MemaClientControlComponentBase () |
| const ControlsSize & | getControlsSize () |
| virtual void | setIOCount (const std::pair< int, int > &ioCount) |
| const std::pair< int, int > & | getIOCount () |
| virtual void | setInputMuteStates (const std::map< std::uint16_t, bool > &inputMuteStates) |
| const std::map< std::uint16_t, bool > & | getInputMuteStates () |
| virtual void | setOutputMuteStates (const std::map< std::uint16_t, bool > &outputMuteStates) |
| const std::map< std::uint16_t, bool > & | getOutputMuteStates () |
| virtual void | setCrosspointStates (const std::map< std::uint16_t, std::map< std::uint16_t, bool > > &crosspointStates) |
| const std::map< std::uint16_t, std::map< std::uint16_t, bool > > & | getCrosspointStates () |
| virtual void | setCrosspointValues (const std::map< std::uint16_t, std::map< std::uint16_t, float > > &crosspointValues) |
| const std::map< std::uint16_t, std::map< std::uint16_t, float > > & | getCrosspointValues () |
| virtual void | addCrosspointStates (const std::map< std::uint16_t, std::map< std::uint16_t, bool > > &crosspointStates) |
| virtual void | addCrosspointValues (const std::map< std::uint16_t, std::map< std::uint16_t, float > > &crosspointValues) |
| const juce::String | getClientControlParametersAsString () |
| const juce::String | getIOCountParametersAsString () |
| const juce::String | getInputMuteParametersAsString () |
| const juce::String | getOutputMuteParametersAsString () |
| const juce::String | getCrosspointParametersAsString () |
Public Attributes | |
| std::function< void(std::uint16_t, std::string, float)> | onPluginParameterValueChanged |
| std::function< void(const juce::PluginDescription &)> | onPluginSelected |
| std::function< void()> | onShowPluginEditor |
| std::function< void(bool)> | onPluginEnabledChange |
| std::function< void(bool)> | onPluginPrePostChange |
| std::function< void()> | onPluginParametersStatusChanged |
| std::function< void()> | onClearPlugin |
Public Attributes inherited from Mema::MemaClientControlComponentBase | |
| std::function< void(const std::map< std::uint16_t, bool > &)> | onInputMutesChanged |
| std::function< void(const std::map< std::uint16_t, bool > &)> | onOutputMutesChanged |
| std::function< void(const std::map< std::uint16_t, std::map< std::uint16_t, bool > > &)> | onCrosspointStatesChanged |
| std::function< void(const std::map< std::uint16_t, std::map< std::uint16_t, float > > &)> | onCrosspointValuesChanged |
Protected Member Functions | |
| void | rebuildControls () |
| void | rebuildLayout () |
Additional Inherited Members | |
Public Types inherited from Mema::MemaClientControlComponentBase | |
| enum | ControlDirection { None = 0 , Input , Output } |
| Direction of a control strip within the panel layout. More... | |
| enum | ControlsSize { S = 35 , M = 50 , L = 65 } |
| Size category for rendered control elements. More... | |
Static Public Attributes inherited from Mema::MemaClientControlComponentBase | |
| static constexpr int | s_gap = 3 |
| static constexpr int | s_scrollbarsize = 8 |
Protected Attributes inherited from Mema::MemaClientControlComponentBase | |
| ControlsSize | m_controlsSize = ControlsSize::S |
plugin parameter control — renders sliders, combo boxes, and toggle buttons dynamically from MemaPluginParameterInfo descriptors.
plugin control — manages plugin loading, pre/post toggle, and exposes parameter controllability settings.
Definition at line 41 of file PluginControlComponent.h.
| Mema::PluginControlComponent::PluginControlComponent | ( | ) |
Definition at line 30 of file PluginControlComponent.cpp.
|
virtual |
Definition at line 40 of file PluginControlComponent.cpp.
| Mema::PluginControlComponent::PluginControlComponent | ( | ) |
| Mema::PluginControlComponent::~PluginControlComponent | ( | ) |
| const std::map< int, Mema::PluginParameterInfo > & Mema::PluginControlComponent::getParameterInfos | ( | ) |
Definition at line 101 of file PluginControlComponent.cpp.
| const std::map< int, Mema::PluginParameterInfo > & Mema::PluginControlComponent::getParameterInfos | ( | ) |
| const std::string & Mema::PluginControlComponent::getPluginName | ( | ) |
Definition at line 87 of file PluginControlComponent.cpp.
|
override |
Definition at line 62 of file PluginControlComponent.cpp.
Referenced by rebuildControls().
|
override |
|
overridevirtual |
Implements Mema::MemaClientControlComponentBase.
Definition at line 357 of file PluginControlComponent.cpp.
|
overridevirtual |
Implements Mema::MemaClientControlComponentBase.
|
protected |
Definition at line 132 of file PluginControlComponent.cpp.
References lookAndFeelChanged(), and onPluginParameterValueChanged.
Referenced by setParameterInfos().
|
protected |
Definition at line 231 of file PluginControlComponent.cpp.
References Mema::MemaClientControlComponentBase::getControlsSize().
Referenced by resized(), setControlsSize(), and setParameterInfos().
|
overridevirtual |
Implements Mema::MemaClientControlComponentBase.
Definition at line 72 of file PluginControlComponent.cpp.
References Mema::MemaClientControlComponentBase::setIOCount().
|
overridevirtual |
Implements Mema::MemaClientControlComponentBase.
Definition at line 50 of file PluginControlComponent.cpp.
References rebuildLayout().
|
overridevirtual |
Implements Mema::MemaClientControlComponentBase.
|
overridevirtual |
Reimplemented from Mema::MemaClientControlComponentBase.
Definition at line 80 of file PluginControlComponent.cpp.
References rebuildLayout(), and Mema::MemaClientControlComponentBase::setControlsSize().
| void Mema::PluginControlComponent::setParameterInfos | ( | const std::vector< Mema::PluginParameterInfo > & | parameterInfos | ) |
Definition at line 106 of file PluginControlComponent.cpp.
References rebuildControls(), and rebuildLayout().
| void Mema::PluginControlComponent::setParameterInfos | ( | const std::vector< PluginParameterInfo > & | infos | ) |
| void Mema::PluginControlComponent::setParameterValue | ( | std::uint16_t | index, |
| std::string | id, | ||
| float | value | ||
| ) |
Definition at line 116 of file PluginControlComponent.cpp.
| void Mema::PluginControlComponent::setPluginEnabled | ( | bool | enabled = true | ) |
Definition at line 115 of file PluginControlComponent.cpp.
| void Mema::PluginControlComponent::setPluginName | ( | const std::string & | pluginName | ) |
Definition at line 92 of file PluginControlComponent.cpp.
| void Mema::PluginControlComponent::setPluginPrePost | ( | bool | post = false | ) |
Definition at line 121 of file PluginControlComponent.cpp.
| void Mema::PluginControlComponent::setSelectedPlugin | ( | const juce::PluginDescription & | pluginDescription | ) |
Definition at line 127 of file PluginControlComponent.cpp.
| void Mema::PluginControlComponent::showParameterConfig | ( | ) |
Definition at line 159 of file PluginControlComponent.cpp.
| void Mema::PluginControlComponent::showPluginsList | ( | juce::Point< int > | showPosition | ) |
Definition at line 99 of file PluginControlComponent.cpp.
| std::function<void()> Mema::PluginControlComponent::onClearPlugin |
Definition at line 291 of file PluginControlComponent.h.
| std::function<void(bool)> Mema::PluginControlComponent::onPluginEnabledChange |
Definition at line 288 of file PluginControlComponent.h.
| std::function<void()> Mema::PluginControlComponent::onPluginParametersStatusChanged |
Definition at line 290 of file PluginControlComponent.h.
| std::function<void(std::uint16_t, std::string, float)> Mema::PluginControlComponent::onPluginParameterValueChanged |
Definition at line 68 of file PluginControlComponent.h.
Referenced by rebuildControls().
| std::function<void(bool)> Mema::PluginControlComponent::onPluginPrePostChange |
Definition at line 289 of file PluginControlComponent.h.
| std::function<void(const juce::PluginDescription&)> Mema::PluginControlComponent::onPluginSelected |
Definition at line 286 of file PluginControlComponent.h.
| std::function<void()> Mema::PluginControlComponent::onShowPluginEditor |
Definition at line 287 of file PluginControlComponent.h.