Class dnx.ice.Model
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.ice.Model

java.lang.Object
   |
   +----dnx.ice.Model

public class Model
extends Object
A model is a group of rendering primitives of the same type--either polygons, lines, or points. Models are constructe from ModelSources; all non-static methods of the Model class should only be called from the sendModelData method of a ModelSource.

Variable Index

 o BINDING_NONE
Normal, color, and texture coordinate binding types
 o BINDING_PER_FACE
 o BINDING_PER_FACE_GENERATE
 o BINDING_PER_VERTEX
 o BINDING_PER_VERTEX_GENERATE
 o LINES
 o POINTS
 o POLYGONS

Method Index

 o component(int, int[], int[], int[], int[])
 o isValidColorBinding(int)
 o isValidComponentType(int)
 o isValidNormalBinding(int)
 o isValidTextureCoordBinding(int)
 o normal(float, float, float)
 o normal(int, float[])
 o normal(int, Vector3[])
 o normal(Vector3)
 o setColorBinding(int)
Set the binding of colors to components of the model.
 o setComponentType(int)
Set the component type which this model is built from.
 o setCreaseAngle(float)
Set the crease angle.
 o setNormalBinding(int)
Set the binding of normals to components of the model.
 o setTextureCoordBinding(int)
Set the binding of texture coordinates to components of the model.
 o textureCoord(float, float)
 o textureCoord(int, float[])
 o textureCoord(int, Point2[])
 o textureCoord(Point2)
 o vertex(float, float, float)
 o vertex(int, float[])
 o vertex(int, Point3[])
 o vertex(Point3)

Variables

 o BINDING_NONE
  public final static int BINDING_NONE
Normal, color, and texture coordinate binding types
 o BINDING_PER_FACE
  public final static int BINDING_PER_FACE
 o BINDING_PER_VERTEX
  public final static int BINDING_PER_VERTEX
 o BINDING_PER_FACE_GENERATE
  public final static int BINDING_PER_FACE_GENERATE
 o BINDING_PER_VERTEX_GENERATE
  public final static int BINDING_PER_VERTEX_GENERATE
 o POLYGONS
  public final static int POLYGONS
 o LINES
  public final static int LINES
 o POINTS
  public final static int POINTS

Methods

 o isValidComponentType
  public final static boolean isValidComponentType(int type)
 o isValidNormalBinding
  public final static boolean isValidNormalBinding(int binding)
 o isValidTextureCoordBinding
  public final static boolean isValidTextureCoordBinding(int binding)
 o isValidColorBinding
  public final static boolean isValidColorBinding(int binding)
 o setComponentType
  public abstract void setComponentType(int componentType)
Set the component type which this model is built from. This must be the first method called from a ModelSource's sendModelData() method.
 o setNormalBinding
  public abstract void setNormalBinding(int binding)
Set the binding of normals to components of the model. Th setBindingXXX methods must be called after setComponentType() and before any other Model methods.
 o setTextureCoordBinding
  public abstract void setTextureCoordBinding(int binding)
Set the binding of texture coordinates to components of the model. The setBindingXXX methods must be called after setComponentType() and before any other Model methods.
 o setColorBinding
  public abstract void setColorBinding(int binding)
Set the binding of colors to components of the model. The setBindingXXX methods must be called after setComponentType() and before any other Model methods.
 o setCreaseAngle
  public void setCreaseAngle(float creaseAngle)
Set the crease angle. This is used in vertex normal generation for polygon-based models. It defines the maximum angle between faces that represent a smooth surface. If this method is called from the sendModelData method of a ModelSource, it must be called before any calls to vertex(), normal(), textureCoord(), or component() are made.
 o vertex
  public abstract void vertex(float x,
                              float y,
                              float z)
 o vertex
  public void vertex(Point3 p)
 o vertex
  public void vertex(int count,
                     float vertices[])
 o vertex
  public void vertex(int count,
                     Point3 vertices[])
 o normal
  public abstract void normal(float x,
                              float y,
                              float z)
 o normal
  public void normal(Vector3 v)
 o normal
  public void normal(int count,
                     float normals[])
 o normal
  public void normal(int count,
                     Vector3 normals[])
 o textureCoord
  public abstract void textureCoord(float u,
                                    float v)
 o textureCoord
  public void textureCoord(Point2 p)
 o textureCoord
  public void textureCoord(int count,
                           float textureCoords[])
 o textureCoord
  public void textureCoord(int count,
                           Point2 textureCoords[])
 o component
  public abstract void component(int nVertices,
                                 int vi[],
                                 int ni[],
                                 int ti[],
                                 int colors[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index