A ComplexShape node for Inventor/Coin that defines an torque pointer. More...
#include <SoTorquePointer.h>
Public Member Functions | |
SoTorquePointer () | |
Static Public Member Functions | |
static void | initClass () |
Public Attributes | |
SoSFFloat | cylRadius |
Defines the width of the shaft. | |
SoSFFloat | height |
Defines the height of the shaft. | |
Private Member Functions | |
void | generateChildren () |
SO_NODE_HEADER (SoTorquePointer) | |
virtual | ~SoTorquePointer () |
Static Private Attributes | |
static SoSeparator * | curvedArrow |
A pointer to the geometry of the curved arrow. |
A ComplexShape node for Inventor/Coin that defines an torque pointer.
This class combines a cylinder with a circular arrow that points in a counter clockwise direction at the end of the cylinder. This indicates a torque axis and the direction of the torque. The length of the axis indiciates the magnitude of the torque. This node makes it easy to add these pointers to an Inventor scene without defining the pieces separately. The geometry for the circular arrow has been precomputed and the binary Inventor data is included directly as a header file.
Definition at line 44 of file SoTorquePointer.h.
SoTorquePointer::SoTorquePointer | ( | ) |
Sets up default field values.
Definition at line 71 of file SoTorquePointer.cpp.
SoTorquePointer::~SoTorquePointer | ( | ) | [private, virtual] |
Deletes the child nodes that make up this node.
Definition at line 83 of file SoTorquePointer.cpp.
void SoTorquePointer::generateChildren | ( | ) | [private, virtual] |
This is called once to generate the child nodes that make up this complex shape. The child nodes consist of a cylinder, transforms, and cones. A calculator node caluculates the height of the cylinder from the total height field and the height of any present arrowheads.
Reimplemented from SoComplexShape.
Definition at line 95 of file SoTorquePointer.cpp.
void SoTorquePointer::initClass | ( | ) | [static] |
Initializes the SoArrow class. This is a one-time thing that is done after database initialization and before any instance of this class is constructed. It reads the binary geometry data in curvedArrow.dat and stores a pointer to it.
Reimplemented from SoComplexShape.
Definition at line 56 of file SoTorquePointer.cpp.
SoTorquePointer::SO_NODE_HEADER | ( | SoTorquePointer | ) | [private] |
SoSeparator * SoTorquePointer::curvedArrow [static, private] |
A pointer to the geometry of the curved arrow.
A pointer to the curved arrow geometry data.
Definition at line 62 of file SoTorquePointer.h.
SoSFFloat SoTorquePointer::cylRadius |
Defines the width of the shaft.
Definition at line 52 of file SoTorquePointer.h.
SoSFFloat SoTorquePointer::height |
Defines the height of the shaft.
Definition at line 55 of file SoTorquePointer.h.