man SoTexture2Transform () - 2D texture transformation node

NAME

SoTexture2Transform - 2D texture transformation node

INHERITS FROM

SoBase > SoFieldContainer > SoNode > SoTexture2Transform

SYNOPSIS

#include <Inventor/nodes/SoTexture2Transform.h> Fields from class SoTexture2Transform: c } c } translation

c } c } rotation

c } c } scaleFactor

c } c } center Methods from class SoTexture2Transform: c } c } SoTexture2Transform()

c } c } getClassTypeId() Methods from class SoNode: c } c } setOverride(SbBool state)

c } c } isOverride() const

c } c } copy(SbBool copyConnections = FALSE) const

c } c } affectsState() const

c } c } getByName(const SbName &name)

c } c } getByName(const SbName &name, SoNodeList &list) Methods from class SoFieldContainer: c } c } setToDefaults()

c } c } hasDefaultValues() const

c } c } fieldsAreEqual(const SoFieldContainer *fc) const

c } c } copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)

c } c } set(const char *fieldDataString)

c } c } get(SbString &fieldDataString)

c } c } getFields(SoFieldList &resultList) const

c } c } getField(const SbName &fieldName) const

c } c } getFieldName(const SoField *field, SbName &fieldName) const

c } c } isNotifyEnabled() const

c } c } enableNotify(SbBool flag) Methods from class SoBase: c } c } ref()

c } c } unref() const

c } c } unrefNoDelete() const

c } c } touch()

c } c } getTypeId() const

c } c } isOfType(SoType type) const

c } c } setName(const SbName &name)

c } c } getName() const

DESCRIPTION

This node defines a 2D transformation applied to texture coordinates. This 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.

FIELDS

c } c } translation

Translation in S and T. c } c } rotation

Counter-clockwise rotation of the coordinate space, in radians. This results in a clockwise rotation of the texture on the object. c } c } scaleFactor

Scaling factors in S and T. c } c } center

Center point used for scaling and rotation.

METHODS

c } c } SoTexture2Transform()

Creates a texture transformation node with default settings. c } c } getClassTypeId()

Returns type identifier for this class.

ACTION BEHAVIOR

SoGLRenderAction, SoCallbackAction

Concatenates transformation with the current texture transformation.

FILE FORMAT/DEFAULTS

Texture2Transform {
translation	0 0
rotation	0
scaleFactor	1 1
center	0 0
}

SEE ALSO

SoTexture2, SoTextureCoordinate2, SoTextureCoordinateFunction