vrsode::SphereShape Class Reference

Represents a Sphere Shape. More...

#include <SphereShape.h>

Inheritance diagram for vrsode::SphereShape:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 SphereShape (VRS::Bounds)
 ctor.
virtual ~SphereShape ()
 dtor.
void setRadius (double)
double radius ()
void setBounds (VRS::Bounds)
VRS::Bounds bounds ()

Protected Member Functions

virtual void createGeometry ()
 create an ode geometry.
virtual void createDebugNode ()
 create a debug geometry.

Private Attributes

VRS::Bounds m_bounds

Detailed Description

Represents a Sphere Shape.

Create a Sphere geom of the given Bounds. The point of reference for a sphere is its center.

Definition at line 16 of file SphereShape.h.


Constructor & Destructor Documentation

vrsode::SphereShape::SphereShape ( VRS::Bounds   ) 

ctor.

Definition at line 15 of file SphereShape.cpp.

References createDebugNode(), createGeometry(), vrsode::CS_Sphere, m_bounds, vrsode::Shape::setCollisionShape(), and vrsode::Shape::setOffsetCenter().

Here is the call graph for this function:

vrsode::SphereShape::~SphereShape (  )  [virtual]

dtor.

Definition at line 26 of file SphereShape.cpp.


Member Function Documentation

void vrsode::SphereShape::setRadius ( double   ) 

Definition at line 53 of file SphereShape.cpp.

References createDebugNode(), vrsode::Shape::geomId(), and m_bounds.

Here is the call graph for this function:

double vrsode::SphereShape::radius (  ) 

Definition at line 63 of file SphereShape.cpp.

References m_bounds.

Referenced by createDebugNode(), createGeometry(), and setBounds().

Here is the caller graph for this function:

void vrsode::SphereShape::setBounds ( VRS::Bounds   ) 

Definition at line 72 of file SphereShape.cpp.

References createDebugNode(), vrsode::Shape::geomId(), m_bounds, and radius().

Here is the call graph for this function:

VRS::Bounds vrsode::SphereShape::bounds (  ) 

Definition at line 81 of file SphereShape.cpp.

References m_bounds.

void vrsode::SphereShape::createGeometry (  )  [protected, virtual]

create an ode geometry.

Implements vrsode::Shape.

Definition at line 32 of file SphereShape.cpp.

References radius(), and vrsode::Shape::setGeomId().

Referenced by SphereShape().

Here is the call graph for this function:

Here is the caller graph for this function:

void vrsode::SphereShape::createDebugNode (  )  [protected, virtual]

create a debug geometry.

Implements vrsode::Shape.

Definition at line 39 of file SphereShape.cpp.

References vrsode::Shape::debugNode(), vrsode::Shape::debugNodeActive(), vrsode::Shape::offsetCenter(), and radius().

Referenced by setBounds(), setRadius(), and SphereShape().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

VRS::Bounds vrsode::SphereShape::m_bounds [private]

Definition at line 18 of file SphereShape.h.

Referenced by bounds(), radius(), setBounds(), setRadius(), and SphereShape().


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:19 2007 for Random Racer by  doxygen 1.5.1