SoPhysicsTorus Class Reference
[libipsa classesPhysic Classes]

Defines a physics object with the properties of a torus. More...

#include <SoPhysicsTorus.h>

Inheritance diagram for SoPhysicsTorus:

Inheritance graph
[legend]
Collaboration diagram for SoPhysicsTorus:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SoPhysicsTorus (const SbString &nodeName="")

Static Public Member Functions

static void initClass ()

Public Attributes

SoSFFloat radius
SoSFFloat tuberadius

Protected Member Functions

virtual dMass getInitialMass ()

Private Member Functions

 SO_KIT_HEADER (SoPhysicsTorus)


Detailed Description

Defines a physics object with the properties of a torus.

This physics object is not scaleable.

Torus.png

A torus

Definition at line 31 of file SoPhysicsTorus.h.


Constructor & Destructor Documentation

SoPhysicsTorus::SoPhysicsTorus ( const SbString &  nodeName = ""  ) 

The constructor of SoPhysicsTorus.

Parameters:
nodeName name of the node in the Inventor scenegraph

Definition at line 60 of file SoPhysicsTorus.cpp.

References radius, tuberadius, and SoPhysics::updateDependentObjectsTrigger.


Member Function Documentation

dMass SoPhysicsTorus::getInitialMass (  )  [protected, virtual]

This method returns the mass of the torus object. The mass of the object that will be returned is calculated by taking care of changes in scaling.

Returns:
mass: the mass of the torus.

Reimplemented from SoPhysics.

Definition at line 81 of file SoPhysicsTorus.cpp.

References SoPhysics::inertia, SoPhysics::mass, radius, SoPhysics::scale, and tuberadius.

void SoPhysicsTorus::initClass (  )  [static]

Initialises the class and it's type id variables.

Reimplemented from SoPhysics.

Definition at line 50 of file SoPhysicsTorus.cpp.

SoPhysicsTorus::SO_KIT_HEADER ( SoPhysicsTorus   )  [private]


Member Data Documentation

The radius of the torus (default = 1.0f).

Definition at line 41 of file SoPhysicsTorus.h.

Referenced by getInitialMass(), and SoPhysicsTorus().

The radius of the tube (default = 0.2f).

Definition at line 42 of file SoPhysicsTorus.h.

Referenced by getInitialMass(), and SoPhysicsTorus().


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:21 2012 for IPSA by  doxygen 1.5.8