|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.object.Object3D
artofillusion.object.ObjectCollection
public abstract class ObjectCollection
This abstract class represents an Object3D which is actually composed of other objects. Typically, these objects are procedurally generated, such as by a script.
| Field Summary |
|---|
| Fields inherited from class artofillusion.object.Object3D |
|---|
APPROXIMATELY, CANT_CONVERT, EXACTLY |
| Constructor Summary | |
|---|---|
ObjectCollection()
|
|
ObjectCollection(java.io.DataInputStream in,
Scene theScene)
|
|
| Method Summary | |
|---|---|
int |
canConvertToTriangleMesh()
For simplicity, just assume that the object can be converted approximately. |
boolean |
canSetMaterial()
Assume that a material can be set for the object collection (though actually setting one may or may not have any effect). |
TriangleMesh |
convertToTriangleMesh(double tol)
Create a triangle mesh which is the union of all the objects in this collection. |
BoundingBox |
getBounds()
Get a BoundingBox which just encloses the object. |
java.util.Enumeration |
getObjects(ObjectInfo info,
boolean interactive,
Scene scene)
Get an enumeration of ObjectInfos listing the objects which this object is composed of. |
RenderingMesh |
getRenderingMesh(double tol,
boolean interactive,
ObjectInfo info)
Get a mesh representing the union of all objects in the collection. |
WireframeMesh |
getWireframeMesh()
An object collection is never drawn directly. |
boolean |
isClosed()
Determine whether the object is closed. |
void |
renderObject(ObjectInfo obj,
ViewerCanvas canvas,
Vec3 viewDir)
RenderObject is overridden to render each component object individually. |
void |
sceneChanged(ObjectInfo info,
Scene scene)
If this object explicitly references time or position, the cached objects and bounding box may need to be reevaluated. |
void |
setUsesCoords(boolean b)
Since object collections are generally procedurally generated, they may depend explicitly on position. |
void |
setUsesTime(boolean b)
Since object collections are generally procedurally generated, they may depend explicitly on time. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectCollection()
public ObjectCollection(java.io.DataInputStream in,
Scene theScene)
throws java.io.IOException,
java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException| Method Detail |
|---|
public java.util.Enumeration getObjects(ObjectInfo info,
boolean interactive,
Scene scene)
public BoundingBox getBounds()
Object3D
getBounds in class Object3Dpublic void setUsesTime(boolean b)
public void setUsesCoords(boolean b)
public boolean isClosed()
isClosed in class Object3Dpublic boolean canSetMaterial()
canSetMaterial in class Object3D
public RenderingMesh getRenderingMesh(double tol,
boolean interactive,
ObjectInfo info)
getRenderingMesh in class Object3Dpublic WireframeMesh getWireframeMesh()
getWireframeMesh in class Object3D
public void renderObject(ObjectInfo obj,
ViewerCanvas canvas,
Vec3 viewDir)
renderObject in class Object3Dobj - the ObjectInfo for this objectcanvas - the canvas in which to render this objectviewDir - the direction from which this object is being viewedpublic int canConvertToTriangleMesh()
canConvertToTriangleMesh in class Object3Dpublic TriangleMesh convertToTriangleMesh(double tol)
convertToTriangleMesh in class Object3D
public void sceneChanged(ObjectInfo info,
Scene scene)
sceneChanged in class Object3D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||