#include <Inventor/VRMLnodes/SoVRMLTextureTransform.h>
Inheritance diagram for SoVRMLTextureTransform:
Public Methods | |
SoVRMLTextureTransform (void) | |
virtual void | doAction (SoAction *action) |
virtual void | callback (SoCallbackAction *action) |
virtual void | GLRender (SoGLRenderAction *action) |
virtual void | getMatrix (SoGetMatrixAction *action) |
virtual void | pick (SoPickAction *action) |
Static Public Methods | |
void | initClass (void) |
Public Attributes | |
SoSFVec2f | translation |
SoSFFloat | rotation |
SoSFVec2f | scale |
SoSFVec2f | center |
Protected Methods | |
virtual | ~SoVRMLTextureTransform () |
The detailed class documentation is taken verbatim from the VRML97 standard (ISO/IEC 14772-1:1997). It is copyright The Web3D Consortium, and is used by permission of the Consortium:
TextureTransform { exposedField SFVec2f center 0 0 # (-inf, inf) exposedField SFFloat rotation 0 # (-inf, inf) exposedField SFVec2f scale 1 1 # (-inf, inf) exposedField SFVec2f translation 0 0 # (-inf, inf) }
The TextureTransform node defines a 2D transformation that is applied to texture coordinates (see SoVRMLTextureCoordinate). This node affects the way textures coordinates are applied to the geometric surface. The transformation consists of (in order):
The center field specifies a translation offset in texture coordinate space about which the rotation and scale fields are applied. The scale field specifies a scaling factor in S and T of the texture coordinates about the center point. scale values shall be in the range (-pi, pi). The rotation field specifies a rotation in radians of the texture coordinates about the center point after the scale has been applied. A positive rotation value makes the texture coordinates rotate counterclockwise about the centre, thereby rotating the appearance of the texture itself clockwise. The translation field specifies a translation of the texture coordinates.
In matrix transformation notation, where Tc is the untransformed texture coordinate, Tc' is the transformed texture coordinate, C (center), T (translation), R (rotation), and S (scale) are the intermediate transformation matrices,
Tc' = -C × S × R × C × T × Tc
Note that this transformation order is the reverse of the Transform node transformation order since the texture coordinates, not the texture, are being transformed (i.e., the texture coordinate system).
|
Constructor. |
|
Destructor. |
|
Sets up initialization for data common to all instances of this class, like submitting necessary information to the Coin type system. Reimplemented from SoNode. |
|
This function performs the typical operation of a node for any action. Reimplemented from SoNode. |
|
Action method for SoCallbackAction. Simply updates the state according to how the node behaves for the render action, so the application programmer can use the SoCallbackAction for extracting information about the scene graph. Reimplemented from SoNode. |
|
Action method for the SoGLRenderAction. This is called during rendering traversals. Nodes influencing the rendering state in any way or who wants to throw geometry primitives at OpenGL overrides this method. Reimplemented from SoNode. |
|
Action method for SoGetMatrixAction. Updates action by accumulating with the transformation matrix of this node (if any). Reimplemented from SoNode. |
|
Action method for SoPickAction. Does common processing for SoPickAction action instances. Reimplemented from SoNode. |
|
Translation value. Default values is (0, 0, 0). |
|
Rotation, in radians, around the centre points. Default value is 0. |
|
Scale vector about the centre point. Default value is (1, 1). |
|
Texture centre. Default value is (0.0, 0.0). |