#include <ParamI.h>
Inheritance diagram for ParamVector3C:
Public Methods | |
virtual Edit::DataBlockI * | create () |
Creates new parameter. | |
virtual Edit::DataBlockI * | create (Edit::EditableI *pOriginal) |
Creates new datablock, with reference to the original. | |
virtual void | copy (Edit::EditableI *pEditable) |
Deep copy from a data block, see Edit::DataBlockI::copy(). | |
virtual void | restore (Edit::EditableI *pEditable) |
Shallow copy from a editable, see Edit::EditableI::restore(). | |
virtual PajaTypes::uint32 | get_type () const |
Returns the type of the parameter. | |
virtual void | set_controller (ControllerC *cnt) |
Sets the controller of the parameter. | |
virtual ControllerC * | get_controller () |
Returns the conroller attached to the parameter. | |
virtual void | set_min_max (const PajaTypes::Vector3C &min, const PajaTypes::Vector3C &max) |
Sets the range of the parameter. | |
virtual const PajaTypes::Vector3C & | get_min () const |
Returns the minimum of the value range. | |
virtual const PajaTypes::Vector3C & | get_max () const |
Returns the maximum of the value range. | |
virtual void | set_increment (PajaTypes::float32 inc) |
Sets the spinner increment of the parameter. | |
virtual PajaTypes::float32 | get_increment () const |
Returns the spinner increment. | |
virtual bool | get_min_max (PajaTypes::float32 *pMin, PajaTypes::float32 *pMax) |
Returns the range of the parameter. | |
virtual void | set_style (PajaTypes::uint32 style) |
Sets the style of the parameter. | |
virtual PajaTypes::uint32 | get_style () const |
Returns the style of the parameter. | |
virtual void | set_id (PajaTypes::uint32 id) |
Sets the ID of the parmeter. | |
virtual PajaTypes::uint32 | get_id () const |
Returns the ID of the parameter. | |
virtual PajaTypes::uint32 | set_val (PajaTypes::int32 t, const PajaTypes::Vector3C &val) |
Sets the value of the parameter at specified time. | |
virtual void | get_val (PajaTypes::int32 t, PajaTypes::Vector3C &val) |
Gets the value of the parameter at specified time. | |
virtual PajaTypes::uint32 | save (FileIO::SaveC *pSave) |
Serialize the parameter to a Demopaja output stream. | |
virtual PajaTypes::uint32 | load (FileIO::LoadC *pLoad) |
Serialize the parameter from a Demopaja input stream. | |
Static Public Methods | |
ParamVector3C * | create_new (GizmoI *pParent, const char *szName, const PajaTypes::Vector3C &rValue, PajaTypes::uint32 ui32ID, PajaTypes::uint32 ui32Style=PARAM_STYLE_EDITBOX, bool bAnimatable=true, const PajaTypes::Vector3C &rMin=PajaTypes::Vector3C(), const PajaTypes::Vector3C &rMax=PajaTypes::Vector3C(), PajaTypes::float32 f32Inc=0.1f) |
Creates a new 3D vector parameter. | |
Protected Methods | |
ParamVector3C () | |
Default constructor. | |
ParamVector3C (GizmoI *pParent, const char *name, const PajaTypes::Vector3C &value, PajaTypes::uint32 id, PajaTypes::uint32 style=PARAM_STYLE_EDITBOX, bool animatable=true, const PajaTypes::Vector3C &min=PajaTypes::Vector3C(), const PajaTypes::Vector3C &max=PajaTypes::Vector3C(), PajaTypes::float32 inc=0.1f) | |
Constructor. | |
ParamVector3C (Edit::EditableI *pOriginal) | |
Constructor with reference to the original. | |
virtual | ~ParamVector3C () |
Default destructor. |
The 3D vector parameter can used to control everything where three parameters are enough. This parameter can have extra styles which enables it to be used as a percentage or an angle parameter.
A new 3D vector parameter is created using the create_new() static method.
|
Default constructor.
|
|
Constructor.
|
|
Constructor with reference to the original.
|
|
Default destructor.
|
|
Deep copy from a data block, see Edit::DataBlockI::copy().
Reimplemented from ParamI. |
|
Creates new datablock, with reference to the original.
Implements EditableI. |
|
Creates new parameter. Following default values are used: pParent = 0,
szName = 0,
rValue = (0, 0, 0),
ui32ID = 0,
ui32Style = 0,
bAnimatable = false,
rMin = (0, 0, 0),
rMax = (0, 0, 0),
f32Inc = 0.1f
Implements EditableI. |
|
Creates a new 3D vector parameter.
The only type-in style is editbox. If PARAM_STYLE_PERCENT is set, percent marks are used in the GUI, and also the values are multiplied by 100 before displayed. That is, the value for 100% is 1.0. If PARAM_STYLE_ANGLE is set, the angle mark is shown in the GUI. The value is not scaled. Example: This example creates new parameter. The name of the parameter is "Position", it's default value is (0, 0, 0) and it's ID is ID_POSITION (constant defined by the plugin writer), the type-in style is editbox, the parameter can be animated, and no range is defined. Spinner increment is default 0.1.
m_pParamPos = ParamVector3C::create_new( this, "Position", Vector3C(), ID_POSITION, PARAM_STYLE_EDITBOX, PARAM_ANIMATABLE ); |
|
Returns the conroller attached to the parameter. NULL is returned if the parameter cannot be animated. Implements ParamI. |
|
Returns the ID of the parameter.
Implements ParamI. |
|
Returns the spinner increment.
Implements ParamI. |
|
Returns the maximum of the value range.
|
|
Returns the minimum of the value range.
|
|
Returns the range of the parameter.
Implements ParamI. |
|
Returns the style of the parameter.
Implements ParamI. |
|
Returns the type of the parameter.
Implements ParamI. |
|
Gets the value of the parameter at specified time.
|
|
Serialize the parameter from a Demopaja input stream.
Reimplemented from ParamI. |
|
Shallow copy from a editable, see Edit::EditableI::restore().
Reimplemented from ParamI. |
|
Serialize the parameter to a Demopaja output stream.
Reimplemented from ParamI. |
|
Sets the controller of the parameter.
Implements ParamI. |
|
Sets the ID of the parmeter.
Implements 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. Implements ParamI. |
|
Sets the range of the parameter.
|
|
Sets the style of the parameter.
Implements ParamI. |
|
Sets the value of the parameter at specified time.
|