SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
SmAxisDisplayKit Class Reference

The SmAxisDisplayKit is used to draw colored and annotated axes in the lower right corner of the display. More...

#include <SmAxisDisplayKit.h>

Inheritance diagram for SmAxisDisplayKit:

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)
 

Detailed Description

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).

Constructor & Destructor Documentation

◆ SmAxisDisplayKit()

SmAxisDisplayKit::SmAxisDisplayKit ( void )

Constructor.

◆ ~SmAxisDisplayKit()

SmAxisDisplayKit::~SmAxisDisplayKit ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ GLRender()

void SmAxisDisplayKit::GLRender ( SoGLRenderAction * action)
virtual

Overloaded to perform delayed rendering and to force solid rendering mode.

◆ initClass()

void SmAxisDisplayKit::initClass ( void )
static

Initializes this class. Call before using it.

◆ notify()

void SmAxisDisplayKit::notify ( SoNotList * l)
protectedvirtual

Overloaded to detect when fields change in order to correctly regenerate the private scene graph.

◆ setDefaultOnNonWritingFields()

void SmAxisDisplayKit::setDefaultOnNonWritingFields ( void )
protectedvirtual

Overloaded to set most node fields to default. The parts in this nodekit are mostly internal.

Member Data Documentation

◆ annotations

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.

◆ axes

SoMFVec3f SmAxisDisplayKit::axes

Specifies which axes to display. The given axes are displayed as vectors originating in origo.

Default value is empty.

◆ colors

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).

◆ drawAsLines

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.

◆ enableArrows

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.

◆ orientation

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.


The documentation for this class was generated from the following files: