Coin Logo http://www.coin3d.org/
http://www.kongsberg.com/kogt/

SoScale Class Reference
[Node Classes]

The SoScale class is a node type for scaling scene graph geometry.Use nodes of this type to apply scaling operations during scenegraph traversals for e.g. rendering. Scale values are specified in a triple-value vector, with one scale factor for each of the 3 principal axes. More...

#include <Inventor/nodes/SoScale.h>

Inheritance diagram for SoScale:
SoTransformation SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoScale (void)
virtual void doAction (SoAction *action)
virtual void callback (SoCallbackAction *action)
virtual void GLRender (SoGLRenderAction *action)
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
virtual void getMatrix (SoGetMatrixAction *action)
virtual void pick (SoPickAction *action)
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)

Static Public Member Functions

static void initClass (void)
 Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system.

Public Attributes

SoSFVec3f scaleFactor

Protected Member Functions

virtual ~SoScale ()

Detailed Description

The SoScale class is a node type for scaling scene graph geometry.

Use nodes of this type to apply scaling operations during scenegraph traversals for e.g. rendering. Scale values are specified in a triple-value vector, with one scale factor for each of the 3 principal axes.

FILE FORMAT/DEFAULTS:

    Scale {
        scaleFactor 1 1 1
    }

Constructor & Destructor Documentation

SoScale::SoScale ( void   ) 

Constructor.

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

Destructor.


Member Data Documentation

Specifies scaling along the 3 axes.

To get a uniform scale applied to the affected shapes, set the scaleFactor field to a vector with the same value for all components.

A common error when doing non-uniform scaling in a single direction is to set the value for the other two components of the scaleFactor vector to 0. This is obviously wrong, they should be set to 1 to not scale the shape(s) in the other two directions.

Be careful with setting scaleFactor component values to 0 or to negative values. Most shapes should handle those cases somehow, but the results are undefined unless otherwise specified.

The default value of this vector field is [1.0, 1.0, 1.0].


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

Copyright © by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Mon Nov 7 20:02:04 2011 for Coin by Doxygen 1.6.3.