Drag[en]gine Game Engine  1.0
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.

Author
Pl├╝ss Roland
Version
1.0
Date
2015

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 decShapeCapsule, decShapeCylinder, decShapeHull, decShapeBox, and decShapeSphere.

Referenced by GetOrientation().

◆ GetOrientation()

const decQuaternion& decShape::GetOrientation ( ) const
inline

Orientation.

References Copy(), SetOrientation(), and Visit().

◆ GetPosition()

const decVector& decShape::GetPosition ( ) const
inline

Position.

References SetPosition().

◆ SetOrientation()

void decShape::SetOrientation ( const decQuaternion orientation)

Set orientation.

Referenced by GetOrientation().

◆ SetPosition()

void decShape::SetPosition ( const decVector position)

Set position.

Referenced by GetPosition().

◆ Visit()

virtual void decShape::Visit ( decShapeVisitor visitor)
virtual

Visit shape.

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

Referenced by GetOrientation().


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