|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmr3d.debug.ErrorHandling
mr3d.ObjectArray
The class ObjectArray is a collection
of all 3D-objects needed for the scene. It gives the SceneManager
an interface to access all the objects in a 3D scene.
ObjectArray is a Singleton.
| Field Summary | |
private static ObjectArray |
instance
Reference to the only instance of the class. |
private static int |
nrOfInstances
Stores the numbers of instances of ObjectArray. |
private java.util.Vector |
objects
Contains all objects of a scene. |
| Fields inherited from class mr3d.debug.ErrorHandling |
|
| Constructor Summary | |
private |
ObjectArray()
Creates a new object array. |
| Method Summary | |
int |
addObject(TriangleBased3DObject newObject)
Adds a new 3D-object to the object array. |
void |
clearObjectArray()
Delete all content from the object array. |
static ObjectArray |
createInstance()
Creates one instance of the ObjectArray. |
TriangleBased3DObject |
getObject(int index)
Returns the 3D-object at the specified position. |
void |
recalculate()
Starts a recalculation process for all objects. |
int |
size()
Returns the number of 3D-bjects in
objects. |
void |
toConsole()
|
void |
toConsole(java.lang.String msgString)
|
| Methods inherited from class mr3d.debug.ErrorHandling |
getErrMsg, notifyError |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static ObjectArray instance
private static int nrOfInstances
private java.util.Vector objects
| Constructor Detail |
private ObjectArray()
| Method Detail |
public int addObject(TriangleBased3DObject newObject)
newObject - the new 3D object to be added to the scene
public void clearObjectArray()
public static ObjectArray createInstance()
public TriangleBased3DObject getObject(int index)
index - object array index
public void recalculate()
public int size()
objects.
public void toConsole()
public void toConsole(java.lang.String msgString)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||