#include <SoCollisionShapeSphere.h>
Public Member Functions | |
virtual SoCollisionShape * | copy (SbBool copyConnections) const |
SoCollisionShapeSphere (const SbString &nodeName="") | |
Static Public Member Functions | |
static void | initClass () |
Public Attributes | |
SoSFFloat | radius |
Protected Member Functions | |
virtual dGeomID | cGeom (const SbMatrix &mm) |
virtual void | updateVisualisationAndOdeProperties () |
Private Member Functions | |
SO_KIT_HEADER (SoCollisionShapeSphere) |
A sphere
Definition at line 32 of file SoCollisionShapeSphere.h.
SoCollisionShapeSphere::SoCollisionShapeSphere | ( | const SbString & | nodeName = "" |
) |
The constructor of SoCollisionShapeSphere. It changes the type of SoCollisionShape::visualisation to SoSphere creates all necessary sensors and calls SoCollisionShapeSphere::setUpConnections().
nodeName | name of the node in the Inventor scenegraph |
Definition at line 57 of file SoCollisionShapeSphere.cpp.
References radius, and SoCollisionShape::updateOdePropertiesTrigger.
dGeomID SoCollisionShapeSphere::cGeom | ( | const SbMatrix & | mm | ) | [protected, virtual] |
Creates a sphere geom object. This method creates a sphere geom using the value from SoCollisionShapeSphere::radius, and returns its ID.
mm | the model matrix of the current node |
Reimplemented from SoCollisionShape.
Definition at line 112 of file SoCollisionShapeSphere.cpp.
References radius, and SoCollisionShape::space.
SoCollisionShape * SoCollisionShapeSphere::copy | ( | SbBool | copyConnections | ) | const [virtual] |
The overwritten copy() method
copyConnections | copy connections if true |
Reimplemented from SoCollisionShape.
Definition at line 77 of file SoCollisionShapeSphere.cpp.
References SoCollisionShape::setUpConnections().
void SoCollisionShapeSphere::initClass | ( | ) | [static] |
Initialises the class and it's type id variables.
Reimplemented from SoCollisionShape.
Definition at line 45 of file SoCollisionShapeSphere.cpp.
SoCollisionShapeSphere::SO_KIT_HEADER | ( | SoCollisionShapeSphere | ) | [private] |
void SoCollisionShapeSphere::updateVisualisationAndOdeProperties | ( | ) | [protected, virtual] |
This method updates the parameters of the visualisation shape to match those of its parent object. If no visualisation shape is found a default one is created.
Reimplemented from SoCollisionShape.
Definition at line 90 of file SoCollisionShapeSphere.cpp.
References SoCollisionShape::geometry, and radius.
The radius of the SoCollisionShapeSphere (default = 1.0f).
Definition at line 44 of file SoCollisionShapeSphere.h.
Referenced by cGeom(), SoCollisionShapeSphere(), SoPhysicsSphere::updateDependentObjects(), and updateVisualisationAndOdeProperties().
Generated on Sat Mar 10 20:00:20 2012 for IPSA by 1.5.8 |