Package com.openinventor.inventor.nodes
Class SoTextureCoordinatePlane
- 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.SoTextureCoordinateFunction
-
- com.openinventor.inventor.nodes.SoTextureCoordinatePlane
-
- All Implemented Interfaces:
SafeDisposable
public class SoTextureCoordinatePlane extends SoTextureCoordinateFunction
Node that specifies texture coordinates by projection from a plane. This node creates texture coordinates for points on an object's surface by projecting them onto a plane. ThedirectionS
anddirectionT
fields define the plane. The S coordinate is computed as the distance from the object-space origin along the vector specified in thedirectionS
field. The T coordinate is computed similarly, using thedirectionT
field.The length of the direction vector is also taken into account. For example, assume
directionS
is (0.5, 0, 0) anddirectionT
is (0, 1, 0). The square defined by the (x, y, z) vertices:
will be assigned the (s, t) texture coordinates:(-1, -1, 0) (1, -1, 0) (1, 1, 0) (-1, 1, 0) (-2, -1) (2, -1) (2, 1) (-2, 1) File format/default:
TextureCoordinatePlane {
directionS 1 0 0 directionT 0 1 0 Action behavior:
SoGLRenderAction
,SoCallbackAction
,SoRayPickAction
Sets the current texture function in the state.
-
-
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
directionS
SoSFVec3f
directionT
Directions of projection for S and T coordinates.-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description SoTextureCoordinatePlane()
Creates a texture function 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
-
-