logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoTexture2Transform — 2D texture transformation node

Action Behavior

SoGLRenderAction,SoCallbackAction
          Concatenates transformation with the current texture transformation.

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

SoSFVec2ftranslation
          Translation in S and T.

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

     SoSFVec2fscaleFactor
          Scaling factors in S and T.

     SoSFVec2fcenter
          Center point used for scaling and rotation.

File Format/Defaults

Texture2Transform{translation00rotation0scaleFactor11center00}

Inherits From

       SoBase > SoFieldContainer > SoNode > SoTexture2Transform

Methods

SoTexture2Transform()
          Creates a texture transformation node with default settings.

     staticSoTypegetClassTypeId()
          Returns type identifier for this class.

Name

       SoTexture2Transform — 2D texture transformation node

See Also

SoTexture2,SoTextureCoordinate2,SoTextureCoordinateFunctionSoTexture2Transform(3IV)()

Synopsis

#include<Inventor/nodes/SoTexture2Transform.h>

          Fields from class SoTexture2Transform:

     SoSFVec2ftranslationSoSFFloatrotationSoSFVec2fscaleFactorSoSFVec2fcenter

          Methods from class SoTexture2Transform:

                         SoTexture2Transform()staticSoTypegetClassTypeId()

          Methods from class SoNode:

     voidsetOverride(SbBoolstate)SbBoolisOverride()constSoNode*copy(SbBoolcopyConnections=FALSE)constvirtualSbBoolaffectsState()conststaticSoNode*getByName(constSbName&name)staticintgetByName(constSbName&name,SoNodeList&list)

          Methods from class SoFieldContainer:

     voidsetToDefaults()SbBoolhasDefaultValues()constSbBoolfieldsAreEqual(constSoFieldContainer*fc)constvoidcopyFieldValues(constSoFieldContainer*fc,SbBoolcopyConnections=FALSE)SbBoolset(constchar*fieldDataString)voidget(SbString&fieldDataString)virtualintgetFields(SoFieldList&resultList)constvirtualSoField*getField(constSbName&fieldName)constSbBoolgetFieldName(constSoField*field,SbName&fieldName)constSbBoolisNotifyEnabled()constSbBoolenableNotify(SbBoolflag)

          Methods from class SoBase:

     voidref()voidunref()constvoidunrefNoDelete()constvoidtouch()virtualSoTypegetTypeId()constSbBoolisOfType(SoTypetype)constvirtualvoidsetName(constSbName&name)virtualSbNamegetName()const

See Also