Drag[en]gine Game Engine  1.21
decShape Class Reference

Analytical Shape. More...

#include <decShape.h>

Inheritance diagram for decShape:
decShapeBox decShapeCapsule decShapeCylinder decShapeHull decShapeSphere

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 decVectorGetPosition () const
 Position. More...
 
void SetPosition (const decVector &position)
 Set position. More...
 
const decQuaternionGetOrientation () const
 Orientation. More...
 
void SetOrientation (const decQuaternion &orientation)
 Set orientation. More...
 
virtual decShapeCopy () const
 Create copy of shape. More...
 
Visiting
virtual void Visit (decShapeVisitor &visitor)
 Visit shape. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ decShape() [1/3]

decShape::decShape ( )

Create shape with position (0,0,0) and orientation (0,0,0,1).

◆ decShape() [2/3]

decShape::decShape ( const decVector position)

Create shape with the given position and orientation (0,0,0,1).

◆ decShape() [3/3]

decShape::decShape ( const decVector position,
const decQuaternion orientation 
)

Create shape with the given position and orientation.

◆ ~decShape()

virtual decShape::~decShape ( )
virtual

Clean up shape.

Member Function Documentation

◆ Copy()

virtual decShape* decShape::Copy ( ) const
virtual

Create copy of shape.

Reimplemented in decShapeSphere, decShapeHull, decShapeCylinder, decShapeCapsule, and decShapeBox.

◆ GetOrientation()

const decQuaternion& decShape::GetOrientation ( ) const
inline

Orientation.

◆ GetPosition()

const decVector& decShape::GetPosition ( ) const
inline

Position.

◆ SetOrientation()

void decShape::SetOrientation ( const decQuaternion orientation)

Set orientation.

◆ SetPosition()

void decShape::SetPosition ( const decVector position)

Set position.

◆ Visit()

virtual void decShape::Visit ( decShapeVisitor visitor)
virtual

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