SoTransformProjection Class Reference

VSG extension Scale/recenter projection node More...

#include <Inventor/nodes/SoTransformProjection.h>

Inheritance diagram for SoTransformProjection:
SoProjection SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoTransformProjection ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFFloat scaleFactor
SoSFVec3f centerPosition

Detailed Description

VSG extension Scale/recenter projection node

This property node is a specific SoProjection which applies a scale and recenter to a geometry.

The computation is done on the CPU before the transfer to OpenGL. The main purpose of this feature is to transform the vertex coordinates before sending them to OpenGL in order to avoid single precision issues, especially with the depth buffer.

Essentially this is a convenience node that automatically creates an SbTransformProjection and calls the setProjection() method for you.

The result of a bounding box action is the coordinates of the bounding box after the projection because we need this version of the bounding box for rendering/clipping.

See SoProjection for important limitations of projection nodes.



SbTransformProjection, SoProjection, SoGeoProjection

Constructor & Destructor Documentation

SoTransformProjection::SoTransformProjection (  ) 


Member Function Documentation

static SoType SoTransformProjection::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoProjection.

virtual SoType SoTransformProjection::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoProjection.

Member Data Documentation

Translation applied to the geometry.

Note: This value is subtracted from each coordinate.

Scale factor applied to the geometry.

Note: Each coordinate is multiplied by this value.

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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.