#include <SoPhysicsTorus.h>
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) |
This physics object is not scaleable.
A torus
Definition at line 31 of file SoPhysicsTorus.h.
SoPhysicsTorus::SoPhysicsTorus | ( | const SbString & | nodeName = "" |
) |
The constructor of SoPhysicsTorus.
nodeName | name of the node in the Inventor scenegraph |
Definition at line 60 of file SoPhysicsTorus.cpp.
References radius, tuberadius, and SoPhysics::updateDependentObjectsTrigger.
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.
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] |
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().
Generated on Sat Mar 10 20:00:21 2012 for IPSA by 1.5.8 |