|
| LumiverseOrientation (float val=0.0f, ORIENTATION_UNIT unit=DEGREE, float def=0.0f, float max=360.0f, float min=0.0f) |
| Constructs an orientation, default value is 0. More...
|
|
| LumiverseOrientation (LumiverseOrientation *other) |
| Constructs an orientation with the contents of a different orientation. More...
|
|
| LumiverseOrientation (LumiverseType *other) |
| Constructs an orientation by copying from a generic LumiverseType. More...
|
|
| ~LumiverseOrientation () |
| Destroys the orientation.
|
|
virtual string | getTypeName () |
| Says that this object is an orientation. More...
|
|
void | operator= (float val) |
|
void | operator= (LumiverseOrientation val) |
|
LumiverseOrientation & | operator+= (float val) |
|
LumiverseOrientation & | operator+= (LumiverseOrientation &val) |
|
LumiverseOrientation & | operator-= (float val) |
|
LumiverseOrientation & | operator-= (LumiverseOrientation &val) |
|
LumiverseOrientation & | operator*= (float val) |
|
LumiverseOrientation & | operator*= (LumiverseOrientation &val) |
|
LumiverseOrientation & | operator/= (float val) |
|
LumiverseOrientation & | operator/= (LumiverseOrientation &val) |
|
float | getVal () |
| Gets the value of the orientation. More...
|
|
void | setVal (float val, ORIENTATION_UNIT unit=DEGREE) |
| Sets the value of the orientation. More...
|
|
void | setVals (float val, float def, float min, float max) |
| Sets the value of all orientation values except the unit.
|
|
void | setUnit (ORIENTATION_UNIT unit) |
| Set unit. More...
|
|
ORIENTATION_UNIT | getUnit () |
| Get the unit. More...
|
|
void | setMax (float val, ORIENTATION_UNIT unit=DEGREE) |
| Set maximum value. More...
|
|
float | getMax () |
| Get the maximum value. More...
|
|
void | setMin (float val, ORIENTATION_UNIT unit=DEGREE) |
| Set miniumum value. More...
|
|
float | getMin () |
| Get the minimum value. More...
|
|
void | setDefault (float val, ORIENTATION_UNIT unit=DEGREE) |
| Set the default value for the orientation. More...
|
|
float | getDefault () |
| Gets the default value for the orientation. More...
|
|
virtual void | reset () |
| Resets the value to the default value.
|
|
void | setValAsPercent (float val) |
| Sets the value of the LumiverseOrientation proportionally.
|
|
float | asPercent () |
| Returns the value of this orientation as a percentage. More...
|
|
float | valAsUnit (ORIENTATION_UNIT unit) |
| Returns the value of this orientation with the specified units.
|
|
float | maxAsUnit (ORIENTATION_UNIT unit) |
| Returns the max value of the orientation with the specified units.
|
|
float | minAsUnit (ORIENTATION_UNIT unit) |
| Returns the min value of the orientation with the specified units.
|
|
float | defaultAsUnit (ORIENTATION_UNIT unit) |
| Returns the default value of the orientation with the specified units.
|
|
virtual JSONNode | toJSON (string name) |
| Converts the type to a JSON object with the specified name. More...
|
|
virtual string | asString () |
| Returns the value of the LumiverseOrientation as a string. More...
|
|
virtual bool | isDefault () |
| Returns true if the value is equal to the default value for the type.
|
|
virtual | ~LumiverseType () |
| Destroys the object.
|
|
Defines an orientation in Lumiverse.
This class allows limits to be set on the minimum and maximum values for the variable in question. Overloads for comparison ops and arithmetic ops are located in Lumiverse namespace. Orientations are essentially special LumiverseFloat objects that have a few built in functions for getting rotation specfic data.
- See also
- Lumiverse