decShape Class Reference

Analytical Shape. More...

#include <decShape.h>

Inheritance diagram for decShape:
decShapeBox decShapeCapsule decShapeCylinder decShapeSphere

List of all members.

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 decVectorGetPosition () const
 Retrieves the position.
void SetPosition (const decVector &position)
 Sets the position.
const decQuaternionGetOrientation () const
 Retrieves the orientation.
void SetOrientation (const decQuaternion &orientation)
 Sets the orientation.
Visiting
virtual void Visit (decShapeVisitor *visitor)
 Visits the analytic shape.

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:
2008

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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