Open Inventor Reference
|
2D texture transformation node. More...
#include <Inventor/nodes/SoTexture2Transform.h>
Public Member Functions | |
SoTexture2Transform () | |
Creates a texture transformation 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 | getMatrix (SoGetMatrixAction *action) |
virtual void | pick (SoPickAction *action) |
Static Public Member Functions | |
static void | initClass () |
Initializes base node class. | |
Public Attributes | |
Fields | |
SoSFVec2f | translation |
Translation in S and T. | |
SoSFFloat | rotation |
Counter-clockwise rotation of the coordinate space, in radians. | |
SoSFVec2f | scaleFactor |
Scaling factors in S and T. | |
SoSFVec2f | center |
Center point used for scaling and rotation. | |
Protected Member Functions | |
virtual | ~SoTexture2Transform () |
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.
Texture2Transform { translation 0 0 rotation 0 scaleFactor 1 1 center 0 0 }
Definition at line 101 of file SoTexture2Transform.h.
SoTexture2Transform::SoTexture2Transform | ( | ) |
virtual SoTexture2Transform::~SoTexture2Transform | ( | ) | [protected, virtual] |
virtual void SoTexture2Transform::callback | ( | SoCallbackAction * | action | ) | [virtual] |
Reimplemented from SoNode.
virtual void SoTexture2Transform::doAction | ( | SoAction * | action | ) | [virtual] |
The default implementation does nothing.
Reimplemented from SoNode.
virtual void SoTexture2Transform::getMatrix | ( | SoGetMatrixAction * | action | ) | [virtual] |
Reimplemented from SoNode.
virtual void SoTexture2Transform::GLRender | ( | SoGLRenderAction * | action | ) | [virtual] |
Reimplemented from SoNode.
static void SoTexture2Transform::initClass | ( | ) | [static] |
Reimplemented from SoNode.
virtual void SoTexture2Transform::pick | ( | SoPickAction * | action | ) | [virtual] |
Reimplemented from SoNode.
Definition at line 120 of file SoTexture2Transform.h.
This results in a clockwise rotation of the texture on the object.
Definition at line 114 of file SoTexture2Transform.h.
Definition at line 117 of file SoTexture2Transform.h.
Definition at line 110 of file SoTexture2Transform.h.