VST 3 SDK  VST 3.6.5
SDK for developing VST Plug-in
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups Pages
Public Member Functions | Protected Attributes
ParameterContainer Class Reference

Collection of parameters. More...

#include <vstparameters.h>

Public Member Functions

 ParameterContainer ()
 
 ~ParameterContainer ()
 
void init (int32 initialSize=10, int32 resizeDelta=100)
 Init param array. More...
 
ParameteraddParameter (const ParameterInfo &info)
 Creates and adds a new parameter from a ParameterInfo. More...
 
ParameteraddParameter (const TChar *title, const TChar *units=0, int32 stepCount=0, ParamValue defaultValueNormalized=0., int32 flags=ParameterInfo::kCanAutomate, int32 tag=-1, UnitID unitID=kRootUnitId)
 Creates and adds a new parameter with given properties. More...
 
ParameteraddParameter (Parameter *p)
 Adds a given parameter. More...
 
int32 getParameterCount () const
 Returns the count of parameters. More...
 
ParametergetParameterByIndex (int32 index)
 Gets parameter by index. More...
 
void removeAll ()
 Removes all parameters. More...
 
ParametergetParameter (ParamID tag)
 Gets parameter by ID. More...
 

Protected Attributes

TArray< IPtr< Parameter > > * params
 
THashDictionary< ParamID, int32id2index
 

Detailed Description

Collection of parameters.

Constructor & Destructor Documentation

Member Function Documentation

void init ( int32  initialSize = 10,
int32  resizeDelta = 100 
)

Init param array.

Parameter * addParameter ( const ParameterInfo info)

Creates and adds a new parameter from a ParameterInfo.

Parameter * addParameter ( const TChar title,
const TChar units = 0,
int32  stepCount = 0,
ParamValue  defaultValueNormalized = 0.,
int32  flags = ParameterInfo::kCanAutomate,
int32  tag = -1,
UnitID  unitID = kRootUnitId 
)

Creates and adds a new parameter with given properties.

Parameter * addParameter ( Parameter p)

Adds a given parameter.

int32 getParameterCount ( ) const
inline

Returns the count of parameters.

Parameter* getParameterByIndex ( int32  index)
inline

Gets parameter by index.

void removeAll ( )
inline

Removes all parameters.

Parameter * getParameter ( ParamID  tag)

Gets parameter by ID.

Field Documentation

TArray<IPtr<Parameter> >* params
protected
THashDictionary<ParamID, int32> id2index
protected
Empty

Copyright ©2015 Steinberg Media Technologies GmbH. All Rights Reserved.