|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.model.Model
public class Model
| Constructor Summary | |
|---|---|
Model(ModelData theModelData,
Mesh theModelView)
|
|
| Method Summary | |
|---|---|
void |
add(Drawable theDrawable)
this method is commonly used to store children of a drawable. |
void |
calculateBoundingBox()
|
void |
draw(GLContext theRenderContext)
this method is used to draw the drawable, when the context is ready. |
java.util.Vector<ModelAnimation> |
getAnimations()
|
BoundingBoxData |
getBoundingBoxData()
|
int |
getNumberOfFrames()
|
int |
getNumberOfVerticesPerFrame()
|
float[] |
getSortData()
returns the data upon which a sort value is calculated. |
float |
getSortValue()
returns the last sort value. |
Mesh |
getView()
Deprecated. |
boolean |
isActive()
returns whether the drawable is active. |
boolean |
isSortable()
returns true if the 'drawable' should be sorted before drawing. |
Mesh |
mesh()
|
java.lang.String |
name()
|
void |
removeBoundingBoxView()
|
void |
setActive(boolean theActiveState)
|
void |
setAnimations(java.util.Vector<ModelAnimation> theAnimations)
|
void |
setBoundingBoxView(BoundingBoxView theBoundingBoxView)
|
void |
setSortValue(float theSortValue)
caches the current sort value. |
void |
setViewLength(int theLength)
|
void |
setViewStart(int theStart)
|
void |
showAllFrames(boolean theShowAllFrames)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model(ModelData theModelData,
Mesh theModelView)
| Method Detail |
|---|
public void showAllFrames(boolean theShowAllFrames)
public int getNumberOfFrames()
public int getNumberOfVerticesPerFrame()
public java.lang.String name()
public void setAnimations(java.util.Vector<ModelAnimation> theAnimations)
public java.util.Vector<ModelAnimation> getAnimations()
public void setViewStart(int theStart)
public void setViewLength(int theLength)
public void setBoundingBoxView(BoundingBoxView theBoundingBoxView)
public void removeBoundingBoxView()
public void calculateBoundingBox()
public void draw(GLContext theRenderContext)
Drawable
draw in interface DrawabletheRenderContext - GLContextpublic Mesh getView()
public Mesh mesh()
public BoundingBoxData getBoundingBoxData()
public void setActive(boolean theActiveState)
public void add(Drawable theDrawable)
Drawable
add in interface DrawabletheDrawable - Drawablepublic boolean isActive()
Drawable
isActive in interface Drawablepublic float getSortValue()
Drawable
getSortValue in interface Drawablepublic void setSortValue(float theSortValue)
Drawable
setSortValue in interface DrawabletheSortValue - floatpublic float[] getSortData()
Drawable
getSortData in interface Drawablepublic boolean isSortable()
Drawable
isSortable in interface Drawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||