SoTorquePointer Class Reference

A ComplexShape node for Inventor/Coin that defines an torque pointer. More...

#include <SoTorquePointer.h>

Inheritance diagram for SoTorquePointer:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Member Data Documentation

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.

Defines the width of the shaft.

Definition at line 52 of file SoTorquePointer.h.

Defines the height of the shaft.

Definition at line 55 of file SoTorquePointer.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:25 2012