Drag[en]gine Game Engine
1.21
|
Analytical Shape. More...
#include <decShape.h>
Public Member Functions | |
Constructors and Destructors | |
decShape () | |
Create shape with position (0,0,0) and orientation (0,0,0,1). More... | |
decShape (const decVector &position) | |
Create shape with the given position and orientation (0,0,0,1). More... | |
decShape (const decVector &position, const decQuaternion &orientation) | |
Create shape with the given position and orientation. More... | |
virtual | ~decShape () |
Clean up shape. More... | |
Management | |
const decVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decVector &position) |
Set position. More... | |
const decQuaternion & | GetOrientation () const |
Orientation. More... | |
void | SetOrientation (const decQuaternion &orientation) |
Set orientation. More... | |
virtual decShape * | Copy () const |
Create copy of shape. More... | |
Visiting | |
virtual void | Visit (decShapeVisitor &visitor) |
Visit shape. More... | |
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 | ( | ) |
Create shape with position (0,0,0) and orientation (0,0,0,1).
decShape::decShape | ( | const decVector & | position | ) |
Create shape with the given position and orientation (0,0,0,1).
decShape::decShape | ( | const decVector & | position, |
const decQuaternion & | orientation | ||
) |
Create shape with the given position and orientation.
|
virtual |
Clean up shape.
|
virtual |
Create copy of shape.
Reimplemented in decShapeSphere, decShapeHull, decShapeCylinder, decShapeCapsule, and decShapeBox.
|
inline |
Orientation.
|
inline |
Position.
void decShape::SetOrientation | ( | const decQuaternion & | orientation | ) |
Set orientation.
void decShape::SetPosition | ( | const decVector & | position | ) |
Set position.
|
virtual |
Visit shape.
Reimplemented in decShapeSphere, decShapeHull, decShapeCylinder, decShapeCapsule, and decShapeBox.