Class Model

java.lang.Object
javaforce.gl.Model
All Implemented Interfaces:
Cloneable

public class Model extends Object implements Cloneable
Model is a set of Object3's that all share the same base orientation (rotation, translation, scale) Each object can also have its own orientation. See javaforce.gl.model for import/export classes.
  • Field Details

    • ol

      public ArrayList<Object3> ol
    • textures

      public ArrayList<String> textures
    • m

      public Matrix m
    • visible

      public boolean visible
    • refcnt

      public int refcnt
    • debug

      public static boolean debug
  • Constructor Details

    • Model

      public Model()
  • Method Details

    • clone

      public Object clone()
      Clones deep enough so that the cloned object will include seperate GLObjects, but share vertex, vertex point, and animation data (except for the frame position).
      Overrides:
      clone in class Object
    • setVisible

      public void setVisible(boolean state)
    • addObject

      public void addObject(Object3 obj)
    • getObject

      public Object3 getObject(String name)
    • setIdentity

      public void setIdentity()
    • rotate

      public void rotate(float angle, float x, float y, float z)
    • translate

      public void translate(float x, float y, float z)
    • scale

      public void scale(float x, float y, float z)
    • nextFrame

      public void nextFrame()
    • setFrame

      public void setFrame(int idx)
    • addTexture

      public int addTexture(String fn)
      Adds a texture filename and returns index.
    • getTexture

      public String getTexture(int idx)
    • print

      public void print()