FCDPASCapsule Class Reference
[COLLADA Document Object Model.]

A COLLADA physics capsule. More...

#include <FCDPhysicsAnalyticalGeometry.h>

Inheritance diagram for FCDPASCapsule:

FCDPhysicsAnalyticalGeometry FCDEntity FCDObjectWithId FCDObject FUParameterizable FUTrackable FUObject FCDPASTaperedCapsule List of all members.

Public Member Functions

 FCDPASCapsule (FCDocument *document)
 Constructor: do not use directly.
virtual ~FCDPASCapsule ()
 Desctructor.
virtual GeomType GetGeomType () const
 Retrieves the analytical geometry type for this class.
virtual float CalculateVolume () const
 Calculates the volume of this analytical geometry.
virtual FCDEntityClone (FCDEntity *clone=NULL, bool cloneChildren=false) const
 Copies the physics capsule into a clone.

Public Attributes

float height
 The height of the capsule.
FMVector2 radius
 The radius in the X direction and Z direction of the capsule.

Detailed Description

A COLLADA physics capsule.


Constructor & Destructor Documentation

FCDPASCapsule::FCDPASCapsule FCDocument document  ) 
 

Constructor: do not use directly.

Create new analytical geometries by using FCDPhysicsShape::CreateAnalyticalGeometry function.

Parameters:
document The COLLADA document that contains this physics capsule.


Member Function Documentation

virtual float FCDPASCapsule::CalculateVolume  )  const [virtual]
 

Calculates the volume of this analytical geometry.

Returns:
The volume.

Implements FCDPhysicsAnalyticalGeometry.

Reimplemented in FCDPASTaperedCapsule.

virtual FCDEntity* FCDPASCapsule::Clone FCDEntity clone = NULL,
bool  cloneChildren = false
const [virtual]
 

Copies the physics capsule into a clone.

Parameters:
clone The empty clone. If this pointer is NULL, a analytical geometry will be created and you will need to release the returned pointer manually.
cloneChildren Whether to recursively clone this entity's children.
Returns:
The clone.

Reimplemented from FCDPhysicsAnalyticalGeometry.

virtual GeomType FCDPASCapsule::GetGeomType  )  const [inline, virtual]
 

Retrieves the analytical geometry type for this class.

Returns:
The analytical geometry type: CAPSULE.

Implements FCDPhysicsAnalyticalGeometry.

Reimplemented in FCDPASTaperedCapsule.


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 16:58:39 2008 for FCollada by  doxygen 1.4.6-NO