Class SoTextureCoordinateElement
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.elements.SoElement
-
- com.openinventor.inventor.elements.SoReplacedTextureElement
-
- com.openinventor.inventor.elements.SoTextureCoordinateElement
-
public class SoTextureCoordinateElement extends SoReplacedTextureElement
Stores the current texture coordinates. This element stores the current texture coordinates.- See Also:
SoTextureCoordinate2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SoTextureCoordinateElement.CoordTypes
The choice of values is for compatibility with Open Inventor 2.0 binary format files.-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SbVec4f
get(SbVec3f point, SbVec3f normal)
Calls get(point, normal, (int)0).SbVec4f
get(SbVec3f point, SbVec3f normal, int unit)
Given point and normal, returns texture coordinate.SbVec2f
get2(int index)
Calls get2(index, (int)0).SbVec2f
get2(int index, int unit)
Returns the indexed coordinate from an element as a 2- or 4-vector, converting if necessary.SbVec4f
get4(int index)
Calls get4(index, (int)0).SbVec4f
get4(int index, int unit)
static int
getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0.static SoTextureCoordinateElement
getInstance(SoState state)
Returns the top (current) instance of the element in the state.int
getNum()
Calls getNum((int)0).int
getNum(int unit)
Returns the number of coordinate points in an instance.SoTextureCoordinateElement.CoordTypes
getType()
Calls getType((int)0).SoTextureCoordinateElement.CoordTypes
getType(int unit)
static SoTextureCoordinateElement.CoordTypes
getType(SoState state)
Calls getType(state, (int)0).static SoTextureCoordinateElement.CoordTypes
getType(SoState state, int unit)
Returns code indicating what has been set in state/element.boolean
is2D()
Calls is2D((int)0).boolean
is2D(int unit)
boolean
isForceSending()
Calls isForceSending((int)0).boolean
isForceSending(int unit)
void
push(SoState name_22884)
Overridespush()
method to copy values from next instance in the stack.static void
set2(SoState state, SoNode node, SbVec2f[] coords)
Calls set2(state, node, coords, false).static void
set2(SoState state, SoNode node, SbVec2f[] coords, boolean frcSend)
static void
set4(SoState state, SoNode node, SbVec4f[] coords)
Calls set4(state, node, coords, false).static void
set4(SoState state, SoNode node, SbVec4f[] coords, boolean frcSend)
static void
setDefault(SoState state, SoNode node)
Sets the current texture coordinates, in any of several ways: EXPLICIT, no coordinates (shapes will generate).-
Methods inherited from class com.openinventor.inventor.elements.SoElement
getClassStackIndex, pop
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Method Detail
-
isForceSending
public boolean isForceSending()
Calls isForceSending((int)0).
-
set4
public static void set4(SoState state, SoNode node, SbVec4f[] coords)
Calls set4(state, node, coords, false).
-
get2
public SbVec2f get2(int index)
Calls get2(index, (int)0).
-
is2D
public boolean is2D()
Calls is2D((int)0).
-
getType
public static SoTextureCoordinateElement.CoordTypes getType(SoState state)
Calls getType(state, (int)0).
-
set2
public static void set2(SoState state, SoNode node, SbVec2f[] coords)
Calls set2(state, node, coords, false).
-
getType
public SoTextureCoordinateElement.CoordTypes getType()
Calls getType((int)0).
-
getNum
public int getNum()
Calls getNum((int)0).
-
get4
public SbVec4f get4(int index)
Calls get4(index, (int)0).
-
getType
public static SoTextureCoordinateElement.CoordTypes getType(SoState state, int unit)
Returns code indicating what has been set in state/element.
-
getType
public SoTextureCoordinateElement.CoordTypes getType(int unit)
-
setDefault
public static void setDefault(SoState state, SoNode node)
Sets the current texture coordinates, in any of several ways: EXPLICIT, no coordinates (shapes will generate).
-
getClassStackIndex
@Deprecated(since="9.3.0.0") public static int getClassStackIndex()
Deprecated.As of Open Inventor 9.3.0.0. replaced by SoElement.getClassStackIndex(Class)Returns the stack id for this element. ] *
-
getInstance
public static SoTextureCoordinateElement getInstance(SoState state)
Returns the top (current) instance of the element in the state. The get routines are called on an instance because it is more efficient than calling a static method that looks up the element in the state for every coordinate.
-
push
public void push(SoState name_22884)
Overridespush()
method to copy values from next instance in the stack.- Overrides:
push
in classSoReplacedTextureElement
-
isForceSending
public boolean isForceSending(int unit)
-
get2
public SbVec2f get2(int index, int unit)
Returns the indexed coordinate from an element as a 2- or 4-vector, converting if necessary.
-
is2D
public boolean is2D(int unit)
-
get4
public SbVec4f get4(int index, int unit)
-
get
public SbVec4f get(SbVec3f point, SbVec3f normal, int unit)
Given point and normal, returns texture coordinate. (The r coordinate will be 0.0 and the q will be 1.0 until we get 3D texture coordinate functions.)
-
getNum
public int getNum(int unit)
Returns the number of coordinate points in an instance.
-
-