Open Inventor Reference
SoScale Class Reference

Node representing a 3D geometric scaling. More...

#include <Inventor/nodes/SoScale.h>

Inheritance diagram for SoScale:
SoTransformation SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoScale ()
 Creates a scale node with default settings.
virtual void doAction (SoAction *action)
 This method performs the "typical" operation of a node for any action.
virtual void callback (SoCallbackAction *action)
virtual void GLRender (SoGLRenderAction *action)
 These virtual functions implement all of the actions for nodes, Most of the default implementations do nothing.
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
virtual void getMatrix (SoGetMatrixAction *action)
virtual void pick (SoPickAction *action)

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFVec3f scaleFactor
 The scaling factors in the x, y, and z dimensions.

Protected Member Functions

virtual ~SoScale ()

Detailed Description

This node defines a 3D scaling about the origin. If the components of the scaling vector are not all the same, this produces a non-uniform scale.

File Format/Default
Scale {
  scaleFactor 1 1 1
}
Action Behavior
SoGLRenderAction, SoCallbackAction, SoGetBoundingBoxAction, SoRayPickAction
Accumulates scaling transformation into the current transformation.
SoGetMatrixAction
Returns the matrix corresponding to the scaling.
See Also
SoTransform, SoUnits

Definition at line 93 of file SoScale.h.


Constructor & Destructor Documentation

SoScale::SoScale ( )
virtual SoScale::~SoScale ( ) [protected, virtual]

Member Function Documentation

virtual void SoScale::callback ( SoCallbackAction action) [virtual]

Reimplemented from SoNode.

virtual void SoScale::doAction ( SoAction action) [virtual]

The default implementation does nothing.

Reimplemented from SoNode.

virtual void SoScale::getBoundingBox ( SoGetBoundingBoxAction action) [virtual]

Reimplemented from SoNode.

virtual void SoScale::getMatrix ( SoGetMatrixAction action) [virtual]

Reimplemented from SoNode.

virtual void SoScale::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoNode.

static void SoScale::initClass ( ) [static]

Reimplemented from SoTransformation.

virtual void SoScale::pick ( SoPickAction action) [virtual]

Reimplemented from SoNode.


Member Data Documentation

Non-positive values may cause undesirable results.

Definition at line 103 of file SoScale.h.


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