Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions

SoShapeScale Class Reference

The SoShapeScale class is used for scaling and rotating and translating a shape based on projected size. More...

List of all members.

Public Member Functions

 SoShapeScale (void)

Static Public Member Functions

static void initClass (void)

Public Attributes

SoSFBool restoreProportions
SoSFBool dorotate
SoSFFloat screenSize
SoSFFloat minScale
SoSFFloat maxScale

Protected Member Functions

virtual void callback (SoCallbackAction *action)
virtual void GLRender (SoGLRenderAction *action)
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
virtual void pick (SoPickAction *)
virtual void rayPick (SoRayPickAction *)
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *)
virtual void doAction (SoAction *)
virtual ~SoShapeScale ()

Protected Attributes

SbVec3f scaleby
char changescale

Private Member Functions

 SO_NODE_HEADER (SoShapeScale)

Detailed Description

The SoShapeScale class is used for scaling and rotating and translating a shape based on projected size.

The marker shape should be behind this node in the scene, and should be approximately of unit size, and with a center position in (0, 0, 0).


Constructor & Destructor Documentation

SoShapeScale::SoShapeScale ( void   ) 
virtual SoShapeScale::~SoShapeScale (  )  [protected, virtual]

Member Function Documentation

virtual void SoShapeScale::callback ( SoCallbackAction *  action  )  [protected, virtual]
virtual void SoShapeScale::doAction ( SoAction *   )  [protected, virtual]
virtual void SoShapeScale::getBoundingBox ( SoGetBoundingBoxAction *  action  )  [protected, virtual]
virtual void SoShapeScale::getPrimitiveCount ( SoGetPrimitiveCountAction *   )  [protected, virtual]
virtual void SoShapeScale::GLRender ( SoGLRenderAction *  action  )  [protected, virtual]
static void SoShapeScale::initClass ( void   )  [static]
virtual void SoShapeScale::pick ( SoPickAction *   )  [protected, virtual]
virtual void SoShapeScale::rayPick ( SoRayPickAction *   )  [protected, virtual]
SoShapeScale::SO_NODE_HEADER ( SoShapeScale   )  [private]

Member Data Documentation

char SoShapeScale::changescale [protected]

If true, the scale will be reset to (1,1,1), wich will make the shape's proportions equal in all dimensions

SbVec3f SoShapeScale::scaleby [protected]

The desired width on screen. Default is 5 pixels. If screenSize is equal to zero, the equal- screen-size-scaling is turned off.