public class SoTexture2Transform extends SoNode
SoTextureUnit
). This transformation 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.
File format/default:
Texture2Transform {
translation | 0 0 |
rotation | 0 |
scaleFactor | 1 1 |
center | 0 0 |
Action behavior:
SoGLRenderAction
, SoCallbackAction
Concatenates transformation with the current texture transformation. Sets: SoTextureMatrixElement
See also:
SoTexture2
, SoTextureCoordinate2
, SoTextureCoordinateFunction
, SoTextureUnit
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFVec2f |
center
Center point used for scaling and rotation.
|
SoSFFloat |
rotation
Counterclockwise rotation of the coordinate space, in radians.
|
SoSFVec2f |
scaleFactor
Scaling factors in S and T.
|
SoSFVec2f |
translation
Translation in S and T.
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoTexture2Transform()
Creates a texture transformation node with default settings.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFVec2f translation
public final SoSFFloat rotation
public final SoSFVec2f scaleFactor
public final SoSFVec2f center
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com