Class SoTextureCoordinate3Element


public class SoTextureCoordinate3Element extends SoReplacedTextureElement
Stores the current 3D texture coordinates. This element stores the current 3D texture coordinates.

See Also:
  • Method Details

    • set3

      public static void set3(SoState state, SoNode node, SbVec3f[] coords)
      Calls set3(state, node, coords, false).
    • get3

      public SbVec3f get3(int index)
      Calls get3(index, (int)0).
    • get4

      public SbVec4f get4(int index)
      Calls get4(index, (int)0).
    • set4

      public static void set4(SoState state, SoNode node, SbVec4f[] coords)
      Calls set4(state, node, coords, false).
    • getNum

      public int getNum()
      Calls getNum((int)0).
    • is3D

      public boolean is3D()
      Calls is3D((int)0).
    • isForceSending

      public boolean isForceSending()
      Calls isForceSending((int)0).
    • getType

      public static SoTextureCoordinate3Element.CoordTypes getType(SoState state)
      Calls getType(state, (int)0).
    • getType

      Calls getType((int)0).
    • get

      public SbVec4f get(SbVec3f point, SbVec3f normal)
      Calls get(point, normal, (int)0).
    • getNum

      public int getNum(int unit)
      Returns the number of coordinate points in an instance.
    • is3D

      public boolean is3D(int unit)
    • getInstance

      public static SoTextureCoordinate3Element 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.
    • getType

      public SoTextureCoordinate3Element.CoordTypes getType(int unit)
    • set3

      public static void set3(SoState state, SoNode node, SbVec3f[] coords, boolean frcSend)
    • 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.)
    • isForceSending

      public boolean isForceSending(int unit)
    • push

      public void push(SoState name_22968)
      Overrides push() method to copy values from next instance in the stack.
      Overrides:
      push in class SoReplacedTextureElement
    • 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. ] *
    • 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):
    • get4

      public SbVec4f get4(int index, int unit)
    • getType

      public static SoTextureCoordinate3Element.CoordTypes getType(SoState state, int unit)
      Returns code indicating what has been set in state/element.
    • get3

      public SbVec3f get3(int index, int unit)
      Returns the indexed coordinate from an element as a 3- or 4-vector, converting if necessary.
    • set4

      public static void set4(SoState state, SoNode node, SbVec4f[] coords, boolean frcSend)