Package com.openinventor.inventor.nodes
Class SoTexture3Transform
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.misc.SoBase
-
- com.openinventor.inventor.fields.SoFieldContainer
-
- com.openinventor.inventor.nodes.SoNode
-
- com.openinventor.inventor.nodes.SoTexture3Transform
-
- All Implemented Interfaces:
SafeDisposable
public class SoTexture3Transform extends SoNode
3D texture transformation node. This node defines a 3D 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.File format/default:
Texture3Transform {
translation 0 0 0 rotation 0 scaleFactor 1 1 1 center 0 0 0 Action behavior:
SoGLRenderAction
,SoCallbackAction
Concatenates transformation with the current texture transformation. Sets:SoTextureMatrixElement
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModes
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
Fields Modifier and Type Field Description SoSFVec3f
center
Center point used for scaling and rotation.SoSFFloat
rotation
Counterclockwise rotation of the coordinate space, in radians.SoSFVec3f
scaleFactor
Scaling factors in S, T, and R.SoSFVec3f
translation
Translation in S, T, and R.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoTexture3Transform()
Creates a texture transformation node with default settings.
-
Method Summary
-
Methods inherited from class com.openinventor.inventor.nodes.SoNode
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
-
Methods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
-
Methods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
-
Methods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
-
-
-
Field Detail
-
translation
public final SoSFVec3f translation
Translation in S, T, and R.
-
rotation
public final SoSFFloat rotation
Counterclockwise rotation of the coordinate space, in radians. This results in a clockwise rotation of the texture on the object.
-
scaleFactor
public final SoSFVec3f scaleFactor
Scaling factors in S, T, and R.
-
center
public final SoSFVec3f center
Center point used for scaling and rotation.
-
-