Analytical Shape. More...
#include <decShape.h>
Public Member Functions | |
Constructors and Destructors | |
| decShape () | |
| Creates a new analytical shape with position (0,0,0) and orientation (0,0,0,1). | |
| decShape (const decVector &position) | |
| Creates a new analytical shape with the given position and orientation (0,0,0,1). | |
| decShape (const decVector &position, const decQuaternion &orientation) | |
| Creates a new analytical shape with the given position and orientation. | |
| virtual | ~decShape () |
| Cleans up the analytical shape. | |
Management | |
| const decVector & | GetPosition () const |
| Retrieves the position. | |
| void | SetPosition (const decVector &position) |
| Sets the position. | |
| const decQuaternion & | GetOrientation () const |
| Retrieves the orientation. | |
| void | SetOrientation (const decQuaternion &orientation) |
| Sets the orientation. | |
Visiting | |
| virtual void | Visit (decShapeVisitor *visitor) |
| Visits the analytic shape. | |
Analytical Shape.
Defines an analytical shape. Exposes a visitor to determine the type of shape. Subclass to define a new shape. The shape class provides the basic parameters of a shape being the position and the orientation.
| decShape::decShape | ( | ) |
Creates a new analytical shape with position (0,0,0) and orientation (0,0,0,1).
| decShape::decShape | ( | const decVector & | position ) |
Creates a new analytical shape with the given position and orientation (0,0,0,1).
| decShape::decShape | ( | const decVector & | position, |
| const decQuaternion & | orientation | ||
| ) |
Creates a new analytical shape with the given position and orientation.
| virtual decShape::~decShape | ( | ) | [virtual] |
Cleans up the analytical shape.
| const decQuaternion& decShape::GetOrientation | ( | ) | const [inline] |
Retrieves the orientation.
| const decVector& decShape::GetPosition | ( | ) | const [inline] |
Retrieves the position.
| void decShape::SetOrientation | ( | const decQuaternion & | orientation ) |
Sets the orientation.
| void decShape::SetPosition | ( | const decVector & | position ) |
Sets the position.
| virtual void decShape::Visit | ( | decShapeVisitor * | visitor ) | [virtual] |
Visits the analytic shape.
Reimplemented in decShapeBox, decShapeCapsule, decShapeCylinder, and decShapeSphere.
1.7.2