Osiris Framework  0.3
OStateConstraint Class Reference

Stores motion component minimum or maximum constraints. More...

#include <OsirisSDK/OState.h>

Public Member Functions

 OStateConstraint ()
 Class constructor.
 
virtual ~OStateConstraint ()
 Class destructor.
 
void setValue (OVector3::Axis axis, bool enabled, float value=0.0f)
 Enables/disables constraint and sets its value. More...
 
bool enabled (OVector3::Axis axis) const
 Returns whether the constraint for a given axis is enabled or disabled.
 
float value (OVector3::Axis axis) const
 Returns constraint value.
 
void setAbsoluteValue (bool flag)
 Turns on/off absolute value comparison.
 
bool absoluteValue () const
 Returns if absolute value comparison is turned on.
 
void disableAll ()
 Disable all axis constraints.
 

Detailed Description

Stores motion component minimum or maximum constraints.

Member Function Documentation

void OStateConstraint::setValue ( OVector3::Axis  axis,
bool  enabled,
float  value = 0.0f 
)

Enables/disables constraint and sets its value.

Parameters
axisWhich axis must be changed (x, y and z).
enabledConstraint is enabled or disabled.
valueConstraint value.

The documentation for this class was generated from the following files: