SoCollisionShapeCylinder Class Reference
[libipsa classesCollisionShape classes]

Defines a CollisionShape of type Cylinder. More...

#include <SoCollisionShapeCylinder.h>

Inheritance diagram for SoCollisionShapeCylinder:

Inheritance graph
[legend]
Collaboration diagram for SoCollisionShapeCylinder:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual SoCollisionShapecopy (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)


Detailed Description

Defines a CollisionShape of type Cylinder.

This cylinder is used for collision handling.

Cylinder.png

A cylinder

Definition at line 32 of file SoCollisionShapeCylinder.h.


Constructor & Destructor Documentation

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().

Parameters:
nodeName name of the node in the Inventor scenegraph

Definition at line 62 of file SoCollisionShapeCylinder.cpp.

References height, radius, and SoCollisionShape::updateOdePropertiesTrigger.


Member Function Documentation

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.

Parameters:
mm the model matrix of the current node
Returns:
dGeomID: The dGeomID of the box geom.

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

Parameters:
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.


Member Data Documentation


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

Get IPSA - Inventor Physics Simulation API at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Sat Mar 10 20:00:20 2012 for IPSA by  doxygen 1.5.8