Detailed Description
- See also:
- Class ParamDimension.
- Description:
- This class (along with ParamDimension) describes the
dimension of a parameter. This dimension can be considered a unit
of measure. It describes the parameter's type and order of
magnitude.
The dimension type and possibly the dimension scale (if the type is
custom) are used to determine a scale factor for the parameter.
When a controller is drawing a function curve, it only needs to use
the
Convert() function - the scale factor is rolled into the single
'vzoom' parameter passed to Animatable::PaintFCurves().
So, for a controller to plot a value 'val' at time t it would do
the following:
int x =
TimeToScreen(t,tzoom,tscroll);
int y =
ValueToScreen(dim->Convert(val),rect.h()-1,vzoom,vscroll);
#include <ParamDimension.h>
List of all
members.
Constructor & Destructor Documentation
Member Function Documentation
virtual DimType
DimensionType |
( |
|
) |
[pure virtual] |
virtual float Convert |
( |
float |
value |
) |
[pure virtual] |
- Parameters:
- float value
The value to convert.
- Returns:
- The converted value.
virtual float UnConvert |
( |
float |
value |
) |
[pure virtual] |
- Parameters:
- float value
The value to un-convert.
- Returns:
- The un-converted value.
ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase ParamDimensionBase
ParamDimensionBase ParamDimensionBase