Jamba C++ API
5.1.1
|
This helper class is used to display the parameters (vst/jmb) WARNING: this class is allocating memory and as a result should be used in RT only during development! More...
#include <ParamDisplay.h>
Public Types | |
enum | Key { kID, kType, kTitle, kOwner, kTransient, kNormalizedDefault, kDefault, kNormalizedValue, kValue, kSteps, kFlags, kShortTitle, kPrecision, kUnitID, kUnits, kShared } |
using | ParamMap = std::map< ParamID, ValueMap > |
using | Value = std::string |
using | ValueMap = std::map< Key, Value > |
Public Member Functions | |
ParamMap | getParamMap (std::vector< ParamID > const &iParamIDs={}) const |
ParamMap | getParamMap (NormalizedState const &iNormalizedState) const |
Value | getValue (Key iKey) const |
Value | getValue (ParamID iParamID, Key iKey) const |
ValueMap | getValues (ParamID iParamID, std::vector< Key > const &iKeys={}) const |
ParamDisplay & | id (ParamID iParamID) |
ParamDisplay & | ids (std::vector< ParamID > const &iParamIDs) |
std::vector< ParamID > const & | ids () const |
ParamDisplay & | key (Key iKey) |
ParamDisplay & | keys (std::vector< Key > const &iKeys) |
std::vector< Key > const & | keys () const |
ParamDisplay (Parameters const &iParams) | |
ParamDisplay (RT::RTState const *iState) | |
ParamDisplay (GUI::GUIState const *iState) | |
ParamDisplay & | precision (int32 iPrecision) |
Static Public Member Functions | |
static ParamDisplay | from (Parameters const &iParams) |
Shortcut to create a table for all registered parameter (definition not current value). More... | |
static ParamDisplay | from (RT::RTState const *iState, bool iSaveStateOnly=false) |
Shortcut to create a table for the RTState (current values). More... | |
static ParamDisplay | from (GUI::GUIState const *iState, bool iSaveStateOnly=false) |
Shortcut to create a table for the GUIState (current values). More... | |
Protected Member Functions | |
std::shared_ptr< RawVstParamDef > | getRawVstParamDef (ParamID iParamID) const |
Value | getValue (RawVstParamDef const *iParamDef, Key iKey) const |
Value | getValue (IJmbParamDef const *iParamDef, Key iKey) const |
Value | getValue (std::unique_ptr< RT::RTRawVstParameter > const &iParam, Key iKey) const |
Value | getValue (std::unique_ptr< RT::IRTJmbInParameter > const &iParam, Key iKey) const |
Value | getValue (std::unique_ptr< RT::IRTJmbOutParameter > const &iParam, Key iKey) const |
Value | getValue (std::shared_ptr< GUI::GUIRawVstParameter > const &iParam, Key iKey, Parameters const *iParameters) const |
Value | getValue (GUI::IGUIJmbParameter const &iParam, Key iKey) const |
Value | getValue (Parameters const *iParams, ParamID iParamID, Key iKey) const |
Value | getValue (RT::RTState const *iState, ParamID iParamID, Key iKey) const |
Value | getValue (GUI::GUIState const *iState, ParamID iParamID, Key iKey) const |
Value | getValue (ParamValue iValue) const |
Private Attributes | |
GUI::GUIState const * | fGUIState {} |
std::vector< Key > | fKeys {} |
Parameters const * | fParameters {} |
std::vector< ParamID > | fParamIDs {} |
int32 | fPrecision {3} |
RT::RTState const * | fRTState {} |
This helper class is used to display the parameters (vst/jmb) WARNING: this class is allocating memory and as a result should be used in RT only during development!
using Value = std::string |
|
strong |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
static |
Shortcut to create a table for all registered parameter (definition not current value).
Use all registered parameters
|
static |
Shortcut to create a table for the RTState (current values).
Use all registered parameters or the one used in save state only.
|
static |
Shortcut to create a table for the GUIState (current values).
Use all registered parameters or the one used in save state only.
ParamDisplay::ParamMap getParamMap | ( | std::vector< ParamID > const & | iParamIDs = {} | ) | const |
ParamDisplay::ParamMap getParamMap | ( | NormalizedState const & | iNormalizedState | ) | const |
|
protected |
std::string getValue | ( | Key | iKey | ) | const |
ParamDisplay::Value getValue | ( | ParamID | iParamID, |
Key | iKey | ||
) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ParamDisplay::ValueMap getValues | ( | ParamID | iParamID, |
std::vector< Key > const & | iKeys = {} |
||
) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |