#include <ParamI.h>
Inheritance diagram for Composition::ParamIntC:
The integer parameter can be used to coltrol parameters which can be represent as integers. This parameter also gives a possibility to have set of predefined values, which can be named, and selected using a combobox control.
Even this is integer parameter the internal format is 32-bit float. So it is not possible to access the whole 32-bit integer range.
A new integer parameter is created using the create_new() static method.
|
Default constructor.
|
|
Constructor.
|
|
Constructor with reference to the original.
|
|
Default destructor.
|
|
Adds a value label.
|
|
Adds a value label.
|
|
Clears all labels.
|
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Reimplemented from Composition::ParamI. |
|
Creates new datablock, with reference to the original.
Reimplemented from Edit::EditableI. |
|
Creates new parameter. Following default values are used: pParent = 0, szName = 0, i32Value = 0, ui32ID = 0, ui32Style = 0, bAnimatable = false, i32Min = 0, i32Max = 0, i32Inc = 1
Reimplemented from Edit::EditableI. |
|
Creates a new integer parameter.
If the stype is PARAM_STYLE_COMBOBOX only labeled values can be selected from the type-in. Example: This example creates new parameter. The name of the parameter is "Filter mode", it's default value is 0 (zero) and it's ID is ID_FILTERMODE (constant defined by the plugin writer), the type-in style is combobox, the parameter can be animated, and the value range of the parameter is from 0 to 1. Also labels are defined for values 0, and 1. Default increment value 1 is used.
m_pParamFilterMode = ParamIntC::create_new( this, "Filter mode", 0, ID_FILTERMODE, PARAM_STYLE_COMBOBOX, PARAM_ANIMATABLE, 0, 1 ); m_pParamFilterMode->add_label( 0, "Bilinear" ); m_pParamFilterMode->add_label( 1, "Nearest" ); |
|
Returns the conroller attached to the parameter. NULL is returned if the parameter cannot be animated. Reimplemented from Composition::ParamI. |
|
Returns the ID of the parameter.
Reimplemented from Composition::ParamI. |
|
Returns the spinner increment.
Reimplemented from Composition::ParamI. |
|
Returns number of labels.
|
|
Returns the name of the label at specified index.
|
|
Returns the value of the label at specified index.
|
|
Returns the maximum of the value range.
|
|
Returns the minimum of the value range.
|
|
Returns the range of the parameter.
Reimplemented from Composition::ParamI. |
|
Returns the style of the parameter.
Reimplemented from Composition::ParamI. |
|
Returns the type of the parameter.
Reimplemented from Composition::ParamI. |
|
Gets the value of the parameter at specified time.
|
|
Returns the value of the parameter.
Reimplemented from Composition::ParamI. |
|
Serialize the parameter from a Demopaja input stream.
Reimplemented from Composition::ParamI. |
|
Removes the label at specified index.
|
|
Shallow copy from a editable, see Edit::EditableI::restore().
Reimplemented from Composition::ParamI. |
|
Serialize the parameter to a Demopaja output stream.
Reimplemented from Composition::ParamI. |
|
Sets the controller of the parameter.
Reimplemented from Composition::ParamI. |
|
Sets the ID of the parmeter.
Reimplemented from Composition::ParamI. |
|
Sets the spinner increment of the parameter. The spinner increment is the smallest value the parameter is meant to control. For 1/10th accuracy use spinner increment of 0.1. The spinner increment is used in the spinners of the type-ins and also to draw the values in the GUI. Reimplemented from Composition::ParamI. |
|
Sets the range of the parameter.
|
|
Sets the style of the parameter.
Reimplemented from Composition::ParamI. |
|
Sets the value of the parameter at specified time.
|
|
Sets the value of the parameter.
Reimplemented from Composition::ParamI. |