SoVRMLTextureTransform - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin
NAMESoVRMLTextureTransform − The SoVRMLTextureTransform class defines a transformation applied to texture coordinates.
SYNOPSIS
#include <Inventor/VRMLnodes/SoVRMLTextureTransform.h> Inherits SoNode.
Public Member Functionsvirtual SoType getTypeId (void) const
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 Member Functionsstatic SoType getClassTypeId (void)
static void initClass (void)
Public AttributesSoSFVec2f translation
SoSFFloat rotation
SoSFVec2f scale
SoSFVec2f center
Protected Member Functionsvirtual const SoFieldData * getFieldData (void) const
virtual ~SoVRMLTextureTransform ()
Static Protected Member Functionsstatic const SoFieldData ** getFieldDataPtr (void)
Additional Inherited Members
Detailed DescriptionThe SoVRMLTextureTransform class defines a transformation applied to texture coordinates. 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): • a translation; • a rotation about the centre point; • a non-uniform scale about the centre point. These parameters support changes to the size, orientation, and position of textures on shapes. Note that these operations appear reversed when viewed on the surface of geometry. For example, a scale value of (2 2) will scale the texture coordinates and have the net effect of shrinking the texture size by a factor of 2 (texture coordinates are twice as large and thus cause the texture to repeat). A translation of (0.5 0.0) translates the texture coordinates +.5 units along the S-axis and has the net effect of translating the texture -0.5 along the S-axis on the geometry's surface. A rotation of pi/2 of the texture coordinates results in a -pi/2 rotation of the texture on the geometry. 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 × TcNote 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 Documentation
SoVRMLTextureTransform::SoVRMLTextureTransform (void)Constructor. References center, rotation, scale, and translation.
SoVRMLTextureTransform::~SoVRMLTextureTransform () [protected], [virtual]Destructor.
Member Function Documentation
SoType SoVRMLTextureTransform::getTypeId (void) const [virtual]Returns the type identification of an object derived from a class inheriting SoBase. This is used for run-time type checking and 'downward' casting. Usage example: void foo(SoNode * node)
{
if (node->getTypeId() == SoFile::getClassTypeId()) {
SoFile * filenode = (SoFile *)node; // safe downward cast, knows the type
}
else if (node->getTypeId().isOfType(SoGroup::getClassTypeId())) {
SoGroup * group = (SoGroup *)node; // safe downward cast, knows the type
}
}For application programmers wanting to extend the library with new nodes, engines, nodekits, draggers or others: this method needs to be overridden in all subclasses. This is typically done as part of setting up the full type system for extension classes, which is usually accomplished by using the pre-defined macros available through for instance Inventor/nodes/SoSubNode.h (SO_NODE_INIT_CLASS and SO_NODE_CONSTRUCTOR for node classes), Inventor/engines/SoSubEngine.h (for engine classes) and so on. For more information on writing Coin extensions, see the class documentation of the toplevel superclasses for the various class groups. Implements SoBase.
const SoFieldData * SoVRMLTextureTransform::getFieldData (void) const [protected], [virtual]Returns a pointer to the class-wide field data storage object for this instance. If no fields are present, returns NULL. Reimplemented from SoFieldContainer.
void SoVRMLTextureTransform::doAction (SoAction * action) [virtual]This function performs the typical operation of a node for any action. Reimplemented from SoNode. References SoAction::getState(). Referenced by callback(), GLRender(), and pick().
void SoVRMLTextureTransform::callback (SoCallbackAction * action) [virtual]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. References doAction().
void SoVRMLTextureTransform::GLRender (SoGLRenderAction * action) [virtual]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. References doAction().
void SoVRMLTextureTransform::getMatrix (SoGetMatrixAction * action) [virtual]Action method for SoGetMatrixAction. Updates action by accumulating with the transformation matrix of this node (if any). Reimplemented from SoNode. References SoGetMatrixAction::getTextureInverse(), SoGetMatrixAction::getTextureMatrix(), SbMatrix::inverse(), SbMatrix::multLeft(), and SbMatrix::multRight().
void SoVRMLTextureTransform::pick (SoPickAction * action) [virtual]Action method for SoPickAction. Does common processing for SoPickAction action instances. Reimplemented from SoNode. References doAction().
Member Data Documentation
SoSFVec2f SoVRMLTextureTransform::translationTranslation value. Default values is (0, 0, 0). Referenced by SoVRMLTextureTransform().
SoSFFloat SoVRMLTextureTransform::rotationRotation, in radians, around the centre points. Default value is 0. Referenced by SoVRMLTextureTransform().
SoSFVec2f SoVRMLTextureTransform::scaleScale vector about the centre point. Default value is (1, 1). Referenced by SoVRMLTextureTransform().
SoSFVec2f SoVRMLTextureTransform::centerTexture centre. Default value is (0.0, 0.0). Referenced by SoVRMLTextureTransform().
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 33,778 byte
man-SoVRMLTextureTransform.3coin2Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 184,017
Visitor ID : :
Visitor IP : 3.139.86.74 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.