SmallChange
1.0.0
A collection of extensions to Coin3D
|
The SmAxisDisplayKit is used to draw colored and annotated axes in the lower right corner of the display. More...
#include <SmAxisDisplayKit.h>
Public Member Functions | |
SmAxisDisplayKit (void) | |
virtual void | audioRender (SoAudioRenderAction *action) |
virtual void | callback (SoCallbackAction *action) |
virtual void | getBoundingBox (SoGetBoundingBoxAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
virtual void | getPrimitiveCount (SoGetPrimitiveCountAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | handleEvent (SoHandleEventAction *action) |
virtual void | pick (SoPickAction *action) |
virtual void | rayPick (SoRayPickAction *action) |
virtual void | search (SoSearchAction *action) |
Static Public Member Functions | |
static void | initClass (void) |
Public Attributes | |
SoMFString | annotations |
SoMFVec3f | axes |
SoMFColor | colors |
SoSFBool | drawAsLines |
SoMFBool | enableArrows |
SoSFBool | headlight |
SoSFRotation | orientation |
Protected Member Functions | |
virtual | ~SmAxisDisplayKit () |
virtual SbBool | affectsState (void) const |
virtual void | notify (SoNotList *l) |
virtual void | setDefaultOnNonWritingFields (void) |
The SmAxisDisplayKit is used to draw colored and annotated axes in the lower right corner of the display.
This class is organized as a nodekit, but should be used as a normal node (i.e. use public fields).
SmAxisDisplayKit::SmAxisDisplayKit | ( | void | ) |
Constructor.
|
protectedvirtual |
Destructor.
|
virtual |
Overloaded to perform delayed rendering and to force solid rendering mode.
Overloaded to detect when fields change in order to correctly regenerate the private scene graph.
Overloaded to set most node fields to default. The parts in this nodekit are mostly internal.
SoMFString SmAxisDisplayKit::annotations |
Specifies annotation for each axis. The annotation will be rendered as a SoText2 node. If not enough values are given, no annotations will be displayed for the remaining axes.
Default value is empty.
SoMFVec3f SmAxisDisplayKit::axes |
Specifies which axes to display. The given axes are displayed as vectors originating in origo.
Default value is empty.
SoMFColor SmAxisDisplayKit::colors |
Specifies which colors the axes should be drawn with. If not enough values are given, the last value will be reused for the remaining axes.
Default value is white - SbColor(1.0f, 1.0f, 1.0f).
SoMFBool SmAxisDisplayKit::drawAsLines |
Specifies whether arrows should be drawn as lines or as cylinders. Cylinders may look better but lines are always drawn with the same width You can use the drawestyle (SoDrawStyle) catalog entry to change the width of the lines.
Default value is FALSE.
SoMFBool SmAxisDisplayKit::enableArrows |
Specifies whether arrows should be displayed at the end of each axis. If not enough values are given, the last value will be reused for the remaining axes.
Default value is TRUE.
SoSFRotation SmAxisDisplayKit::orientation |
Specifies the orientation of the axes. This field should normally be connected to the current camera's orientation field.
Default value is as for SoCamera::orientation.