vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
APConstrainedMovement::ConstraintArea Class Reference

#include <ConstraintArea.h>

Public Member Functions

 ConstraintArea ()
 
virtual ~ConstraintArea ()
 
ConstraintHierarchyMembergetAreaClass (ConstraintHierarchyMember *constraintHierarchyRoot)
 
string getAreaClassString ()
 
void setAreaClassString (string str)
 
string getRestrictorString ()
 
void setRestrictorString (string str)
 
void addBoundingPoint (osg::Vec3 &coords)
 
Vecs3 getBoundingPoints ()
 
Vecs3 getBoundingPointsWorld ()
 
void shift (osg::Vec3 shiftVector)
 
void setNormalVector (osg::Vec3 &normalVector)
 
osg::Vec3 getNormalVector ()
 
osg::Vec3 getNormalVectorWorld ()
 
void setWorldTransformationFromObject (EnvironmentObject *eo)
 
void applyTransformation (osg::Matrix transformationMatrix)
 
void writeInfo ()
 
bool liesWithinArea (ConstraintArea *area)
 
double ConstraintArea::distanceFactorToArea (ConstraintArea *area)
 
bool getPlaneDistanceFrom (ConstraintArea *area, double &distance)
 

Detailed Description

Class representing a constraint area; any ConstraintArea can function as binding, offer or dual

Constructor & Destructor Documentation

APConstrainedMovement::ConstraintArea::ConstraintArea ( )

Creates a constraint area with no bounding points

APConstrainedMovement::ConstraintArea::~ConstraintArea ( )
virtual

Frees a constraint area

Member Function Documentation

void APConstrainedMovement::ConstraintArea::addBoundingPoint ( osg::Vec3 &  coords)

Adds a new bounding point to the area

void APConstrainedMovement::ConstraintArea::applyTransformation ( osg::Matrix  transformationMatrix)

Applies a transformation to the area

double APConstrainedMovement::ConstraintArea::ConstraintArea::distanceFactorToArea ( ConstraintArea area)
ConstraintHierarchyMember * APConstrainedMovement::ConstraintArea::getAreaClass ( ConstraintHierarchyMember constraintHierarchyRoot)
string APConstrainedMovement::ConstraintArea::getAreaClassString ( )
inline
Vecs3 APConstrainedMovement::ConstraintArea::getBoundingPoints ( )
inline
Vecs3 APConstrainedMovement::ConstraintArea::getBoundingPointsWorld ( )
inline
osg::Vec3 APConstrainedMovement::ConstraintArea::getNormalVector ( )
inline
osg::Vec3 APConstrainedMovement::ConstraintArea::getNormalVectorWorld ( )
inline
bool APConstrainedMovement::ConstraintArea::getPlaneDistanceFrom ( ConstraintArea area,
double &  distance 
)

Returns whether the areas are parallel. If they are parallel, stores their distance in the distance parameter.

string APConstrainedMovement::ConstraintArea::getRestrictorString ( )
inline
bool APConstrainedMovement::ConstraintArea::liesWithinArea ( ConstraintArea area)

Returns whether one area lies completely within another

void APConstrainedMovement::ConstraintArea::setAreaClassString ( string  str)
inline
void APConstrainedMovement::ConstraintArea::setNormalVector ( osg::Vec3 &  normalVector)

Sets the normal vector of the area

void APConstrainedMovement::ConstraintArea::setRestrictorString ( string  str)
inline
void APConstrainedMovement::ConstraintArea::setWorldTransformationFromObject ( EnvironmentObject eo)

Updates area's world coordinates according to the world coordinates of its owner EnvironmentObject

void APConstrainedMovement::ConstraintArea::shift ( osg::Vec3  shiftVector)

Shifts the whole area (i. e. all of its bounding points)

void APConstrainedMovement::ConstraintArea::writeInfo ( )

Writes the area information to standard output


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