#include <ConstraintArea.h>
Class representing a constraint area; any ConstraintArea can function as binding, offer or dual
APConstrainedMovement::ConstraintArea::ConstraintArea |
( |
| ) |
|
Creates a constraint area with no bounding points
APConstrainedMovement::ConstraintArea::~ConstraintArea |
( |
| ) |
|
|
virtual |
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 | ) |
|
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: