Interface SurfaceAppearance

All Superinterfaces:
Appearance

public interface SurfaceAppearance extends Appearance
Author:
gvSIG team
  • Method Details

    • addNormal

      void addNormal(Point p)
      Add a normal vector to the normal array of the surface
      Parameters:
      p -
    • setNormalAt

      void setNormalAt(int position, Point p)
      Sets normal vector in a concrete position.
      Parameters:
      position - the array position to set the normal vector
      p - the normal vector to set (dimension 3)
    • getNormalAt

      Point getNormalAt(int position)
      Gets the normal vector in a concrete position
      Parameters:
      position - the direct position
      Returns:
      the normal vector
    • getNumNormals

      int getNumNormals()
      Get the number of normals in the surface
      Returns:
      an integer representing the number of normals
    • removeNormal

      void removeNormal(int position)
      Remove normal vector in a concrete position
      Parameters:
      position - the direct position
    • setNormalBinding

      void setNormalBinding(SurfaceAppearance.AttributeBinding binding)
      Sets the binding of normal array to Surface Geometry.
      Parameters:
      binding - Value of the binding
    • getNormalBinding

      Gets the binding of normal array
      Returns:
      Value representing attributeBinding
    • addTextureCoord

      void addTextureCoord(Point p)
      Adds a texture coordinate to TexCoord array in Surface
      Parameters:
      p - the texture coordinate (dimension 2)
    • setTextureCoordAt

      void setTextureCoordAt(int position, Point p)
      Set texture coordinate at concrete position
      Parameters:
      position - the concrete position
      p - the texture coordinate value
    • getTextureCoordAt

      Point getTextureCoordAt(int position)
      Get texture coordinate at concrete position
      Parameters:
      position - the concrete position
      Returns:
      the texure coordinate (dimension 2)
    • getNumTextureCoords

      int getNumTextureCoords()
      Gets the number of texture coordinates in the texcoord array of the surface
      Returns:
      the number of texture coordinates
    • removeTextureCoord

      void removeTextureCoord(int position)
      Remove texture coordinate at concrete position
      Parameters:
      position -
    • addIndex

      void addIndex(int element)
      Add a index in the index array of the surface
      Parameters:
      element - the index to add
    • getIndexAt

      int getIndexAt(int position)
      Get the index element at concrete position
      Parameters:
      position - the concrete position
      Returns:
      teh index element
    • setIndexAt

      void setIndexAt(int position, int element)
      Set an index element in a concrete position
      Parameters:
      position - the concrete position
      element - the index element
    • removeIndex

      void removeIndex(int position)
      Remove index element at concrete position
      Parameters:
      position - the concrete position
    • getNumIndices

      int getNumIndices()
      Get number of indices in the index array of the surface
      Returns:
      the number of indices
    • getPrimitiveMode

      Get the primitive mode of the surface
      Returns:
      the primitive mode
    • setPrimitiveMode

      void setPrimitiveMode(SurfaceAppearance.PrimitiveMode mode)
      Sets the primitive mode of the surface
      Parameters:
      mode - the primitive mode
    • getPrimitiveType

      Get the primitive type of the surface
      Returns:
      the primitive type
    • setPrimitiveType

      void setPrimitiveType(SurfaceAppearance.PrimitiveType type)
      Set the primitive type of the surface
      Parameters:
      type - the primitive type
    • addColor

      void addColor(Point p)
      Add a color to teh color array of the surface
      Parameters:
      p - the color(dimension 4 rgba)
    • setColorAt

      void setColorAt(int position, Point p)
      Set a color in a concrete position of the color array
      Parameters:
      position - the concrete position
      p - the color(dimension 4 rgba)
    • getColorAt

      Point getColorAt(int position)
      Get the color at concrete position
      Parameters:
      position - the concrete position
      Returns:
      the color
    • removeColor

      void removeColor(int position)
      Remove color in a concrete position
      Parameters:
      position - the concrete position
    • getNumColors

      int getNumColors()
      Get the number of colors in the color array of the surface
      Returns:
    • setColorBinding

      void setColorBinding(SurfaceAppearance.AttributeBinding binding)
      Sets the colorbinding of the color array of the surface
      Parameters:
      binding - attribute binding representing color binding
    • getColorBinding

      Get the color binding of the color array of the surface
      Returns:
      Attribute binding representing color binding