#include <SoCollisionShapeCylinder.h>
Public Member Functions | |
virtual SoCollisionShape * | copy (SbBool copyConnections) const |
SoCollisionShapeCylinder (const SbString &nodeName="") | |
Static Public Member Functions | |
static void | initClass () |
Public Attributes | |
SoSFFloat | height |
SoSFFloat | radius |
Protected Member Functions | |
virtual dGeomID | cGeom (const SbMatrix &mm) |
virtual void | updateVisualisationAndOdeProperties () |
Private Member Functions | |
SO_KIT_HEADER (SoCollisionShapeCylinder) |
This cylinder is used for collision handling.
A cylinder
Definition at line 32 of file SoCollisionShapeCylinder.h.
SoCollisionShapeCylinder::SoCollisionShapeCylinder | ( | const SbString & | nodeName = "" |
) |
The constructor of SoCollisionShapeCylinder. It changes the type of SoCollisionShape::visualisation to SoCylinder, creates all necessary sensors and calls SoCollisionShapeCylinder::setUpConnections().
nodeName | name of the node in the Inventor scenegraph |
Definition at line 62 of file SoCollisionShapeCylinder.cpp.
References height, radius, and SoCollisionShape::updateOdePropertiesTrigger.
dGeomID SoCollisionShapeCylinder::cGeom | ( | const SbMatrix & | mm | ) | [protected, virtual] |
Creates a cylinder geom object. This method creates a cylinder geom using the values from the variables height and radius, and return its ID.
The cylinder's height is given by height. The radius of the cylinder is given by radius.
mm | the model matrix of the current node |
Reimplemented from SoCollisionShape.
Definition at line 123 of file SoCollisionShapeCylinder.cpp.
References height, radius, and SoCollisionShape::space.
SoCollisionShape * SoCollisionShapeCylinder::copy | ( | SbBool | copyConnections | ) | const [virtual] |
The overwritten copy() method
copyConnections | copy connections if true |
Reimplemented from SoCollisionShape.
Definition at line 84 of file SoCollisionShapeCylinder.cpp.
References SoCollisionShape::setUpConnections().
void SoCollisionShapeCylinder::initClass | ( | ) | [static] |
Initialises the class and it's type id variables.
Reimplemented from SoCollisionShape.
Definition at line 50 of file SoCollisionShapeCylinder.cpp.
SoCollisionShapeCylinder::SO_KIT_HEADER | ( | SoCollisionShapeCylinder | ) | [private] |
void SoCollisionShapeCylinder::updateVisualisationAndOdeProperties | ( | ) | [protected, virtual] |
ATTENTION: SoCylinder is aligned with Z-Axis so you might have to rotate the visualisation !
Reimplemented from SoCollisionShape.
Definition at line 100 of file SoCollisionShapeCylinder.cpp.
References SoCollisionShape::geometry, height, and radius.
The height of the SoCollisionShapeCylinder (default = 1.0f).
Definition at line 45 of file SoCollisionShapeCylinder.h.
Referenced by cGeom(), SoCollisionShapeCylinder(), SoPhysicsCylinder::updateDependentObjects(), and updateVisualisationAndOdeProperties().
The radius of the SoCollisionShapeCylinder (default = 1.0f).
Definition at line 44 of file SoCollisionShapeCylinder.h.
Referenced by cGeom(), SoCollisionShapeCylinder(), SoPhysicsCylinder::updateDependentObjects(), and updateVisualisationAndOdeProperties().
Generated on Sat Mar 10 20:00:20 2012 for IPSA by 1.5.8 |