|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodel.ComplexObject
public class ComplexObject
| Constructor Summary | |
|---|---|
ComplexObject(Model model)
|
|
| Method Summary | |
|---|---|
void |
clearTexturePath()
Clears all texture info from this object. |
ComplexObject |
copy(Model m)
Creates a deep copy of this complex object. |
void |
draw(boolean forceRender)
|
java.lang.String |
getAlias()
|
float[] |
getFillColor()
Returns a deep copy of this fill color. |
boolean |
getGlCalculated()
|
int |
getID()
|
IDList |
getObjectIDList()
Added by Debbie. |
java.util.ArrayList<ComplexObject> |
getObjectList()
Added by Debbie. |
ObjectType |
getObjectType()
|
boolean |
getOverwriteChildColors()
|
int |
getPriority()
|
java.lang.String |
getTexPath(int i)
|
int |
getTexSize()
|
Transformation |
getTransformation()
Added by Debbie. |
float[] |
getTransMatrixFloat()
Added by Debbie. |
void |
load(ModelFile mf)
|
void |
rotateBy(float rotX,
float rotY,
float rotZ)
|
void |
rotateTo(float rotX,
float rotY,
float rotZ)
|
void |
scaleBy(float scaleX,
float scaleY,
float scaleZ)
|
void |
scaleTo(float scaleX,
float scaleY,
float scaleZ)
|
void |
setAlias(java.lang.String alias)
|
void |
setComplexType(java.lang.String type)
|
void |
setFillColor(float[] color)
|
void |
setFillColor(float red,
float green,
float blue,
float alpha)
|
void |
setID(int id)
|
void |
setObjectIDList(IDList objectIDList)
Added by Debbie. |
void |
setObjectList(java.util.ArrayList<ComplexObject> list)
Added by Debbie. |
void |
setObjectType(ObjectType objectType)
|
void |
setOverwriteChildColors(boolean o)
|
void |
setPriority(int priority)
|
void |
setTexture(java.lang.String texture)
|
void |
setTexturePath(int i,
java.lang.String s)
Store the filename of the texture for the specified face |
void |
setTexturesOn(boolean b)
Just a stub, since we're not allowing textures on ComplexObjects, just Primitives. |
void |
setTexturesToNumbers()
Sets the textures for this object to numbered panels. |
void |
setTransform(float[] m)
|
void |
setTransform(Matrix4x4f m)
|
void |
setTransform(Transformation t)
|
void |
transformBy(float[] m)
|
void |
transformBy(float[] trans,
float[] rot,
float[] scale)
|
void |
transformBy(Matrix4x4f m)
|
void |
transformTo(float[] trans,
float[] rot,
float[] scale)
|
void |
translateBy(float transX,
float transY,
float transZ)
|
void |
translateTo(float transX,
float transY,
float transZ)
|
void |
updateTexture(int face,
java.lang.String filename)
Sets the texture of the specified face to the specified image |
void |
write(java.io.PrintWriter writer,
ModelFile mf)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ComplexObject(Model model)
| Method Detail |
|---|
public ComplexObject copy(Model m)
m - The Model assignment for the new ComplexObject
public boolean getGlCalculated()
public int getID()
public void setID(int id)
public boolean getOverwriteChildColors()
public void setOverwriteChildColors(boolean o)
public java.lang.String getAlias()
public void setAlias(java.lang.String alias)
public ObjectType getObjectType()
public void setObjectType(ObjectType objectType)
public void setComplexType(java.lang.String type)
public float[] getFillColor()
public void setFillColor(float red,
float green,
float blue,
float alpha)
public void setFillColor(float[] color)
public void setTexturesOn(boolean b)
public java.util.ArrayList<ComplexObject> getObjectList()
public void setObjectList(java.util.ArrayList<ComplexObject> list)
list - New list of interior objectspublic IDList getObjectIDList()
public void setObjectIDList(IDList objectIDList)
public Transformation getTransformation()
public float[] getTransMatrixFloat()
public int getPriority()
public void setPriority(int priority)
public void load(ModelFile mf)
public void write(java.io.PrintWriter writer,
ModelFile mf)
public void draw(boolean forceRender)
public void transformBy(Matrix4x4f m)
public void transformBy(float[] m)
public void setTransform(Matrix4x4f m)
public void setTransform(float[] m)
public void setTransform(Transformation t)
public void translateBy(float transX,
float transY,
float transZ)
public void scaleBy(float scaleX,
float scaleY,
float scaleZ)
public void rotateBy(float rotX,
float rotY,
float rotZ)
public void transformBy(float[] trans,
float[] rot,
float[] scale)
public void translateTo(float transX,
float transY,
float transZ)
public void scaleTo(float scaleX,
float scaleY,
float scaleZ)
public void rotateTo(float rotX,
float rotY,
float rotZ)
public void transformTo(float[] trans,
float[] rot,
float[] scale)
public void setTexturePath(int i,
java.lang.String s)
i - face #s - filename of texturepublic void clearTexturePath()
public void updateTexture(int face,
java.lang.String filename)
face - number corresponding to facefilename - filename of texture to be mapped to that facepublic int getTexSize()
public java.lang.String getTexPath(int i)
public void setTexturesToNumbers()
public void setTexture(java.lang.String texture)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||