SoTexture2Transform Class Reference
[Textures]

2D texture transformation node. More...

#include <Inventor/nodes/SoTexture2Transform.h>

Inheritance diagram for SoTexture2Transform:
SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoTexture2Transform ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoSFVec2f translation
SoSFFloat rotation
SoSFVec2f scaleFactor
SoSFVec2f center

Detailed Description

2D texture transformation node.

This node defines a 2D transformation applied to texture coordinates. If you are using multiple textures, note that this transformation is applied to the texture coordinates of the current texture unit (SoTextureUnit). This transformation affects the way textures are applied to the surfaces of subsequent shapes. The transformation consists of (in order) a non-uniform scale about an arbitrary center point, a rotation about that same point, and a translation. (Note: while the transformations can be thought of as being applied in that order, the GL matrices are actually premultiplied in the opposite order. Therefore, the operations are listed in the reverse order throughout this reference page.) This allows a user to change the size and position of the textures on objects.

FILE FORMAT/DEFAULT

ACTION BEHAVIOR

SEE ALSO

SoTexture2, SoTextureCoordinate2, SoTextureCoordinateFunction, SoTextureUnit

See related examples:

MultiTexture


Constructor & Destructor Documentation

SoTexture2Transform::SoTexture2Transform (  ) 

Creates a texture transformation node with default settings.


Member Function Documentation

static SoType SoTexture2Transform::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNode.

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

Returns the type identifier for this specific instance.

Reimplemented from SoNode.


Member Data Documentation

Center point used for scaling and rotation.

Counterclockwise rotation of the coordinate space, in radians.

This results in a clockwise rotation of the texture on the object.

Scaling factors in S and T.

Translation in S and T.


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

Open Inventor Toolkit reference manual, generated on 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/