askalon.graph.threedim
Class Szene3d

java.lang.Object
  |
  +--askalon.graph.threedim.Szene3d

public class Szene3d
extends java.lang.Object

Szene3d is a container for instances of Object3d.


Field Summary
protected  Object3d[] objectsLeftView
          The array containing the Object3d.
protected  Object3d[] objectsRightView
           
 double xmax
           
 double xmin
           
 double xTmax
           
 double xTmin
           
 double ymax
           
 double ymin
           
 double yTmax
           
 double yTmaxBoundingBox
           
 double yTmin
           
 double zmax
           
 double zmin
           
 
Constructor Summary
Szene3d()
          Creates a new world with default initial capacity.
Szene3d(int capacity)
          Creates a new world with given capacity.
 
Method Summary
 void addSorted(CoordinateGrid coord)
           
 void addSorted(Object3d obj)
          Adds the specified object to this world.
 void addUnsorted(Object3d obj)
          Adds the specified object to this world.
 void applyTransformation()
           
 boolean contains(java.lang.Object obj)
           
 java.awt.Point getLastRenderedCenter()
           
 int getLastRenderedCenterX()
           
 int getLastRenderedCenterY()
           
 Object3d[] getObjects()
           
 int getSize()
           
 boolean isDirty()
           
 void removeSorted(CoordinateGrid coord)
          removeFromWorld
 void removeSorted(Object3d obj)
           
 void removeUnsorted(Object3d obj)
           
 void setDirty(boolean dirty)
           
 void setLastRenderedCenter(int x, int y)
           
 void setLastRenderedCenter(java.awt.Point lastRenderedCenter)
           
 void sortOjects()
           
 void transform(Transformation3d t)
          Transforms this world by the specified transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectsLeftView

protected Object3d[] objectsLeftView
The array containing the Object3d.

objectsRightView

protected Object3d[] objectsRightView

xTmin

public double xTmin

xTmax

public double xTmax

yTmin

public double yTmin

yTmax

public double yTmax

xmin

public double xmin

xmax

public double xmax

ymin

public double ymin

ymax

public double ymax

zmin

public double zmin

zmax

public double zmax

yTmaxBoundingBox

public double yTmaxBoundingBox
Constructor Detail

Szene3d

public Szene3d()
Creates a new world with default initial capacity.

Szene3d

public Szene3d(int capacity)
Creates a new world with given capacity.
Parameters:
capacity - the initial capacity for Object3d
Method Detail

addSorted

public void addSorted(Object3d obj)
Adds the specified object to this world.
Parameters:
obj - the object to be added

contains

public boolean contains(java.lang.Object obj)

addUnsorted

public void addUnsorted(Object3d obj)
Adds the specified object to this world.
Parameters:
obj - the object to be added

addSorted

public void addSorted(CoordinateGrid coord)

removeSorted

public void removeSorted(CoordinateGrid coord)
removeFromWorld
Parameters:
world - the world this grid is added

getSize

public int getSize()

applyTransformation

public void applyTransformation()

sortOjects

public void sortOjects()

removeSorted

public void removeSorted(Object3d obj)

removeUnsorted

public void removeUnsorted(Object3d obj)

getObjects

public Object3d[] getObjects()

transform

public void transform(Transformation3d t)
Transforms this world by the specified transformation. This methods simply calls Transformation#transform(World3d) for the specified transformation and this world.
Parameters:
t - the transformation by that this world is to be transformed

setLastRenderedCenter

public void setLastRenderedCenter(java.awt.Point lastRenderedCenter)

setLastRenderedCenter

public void setLastRenderedCenter(int x,
                                  int y)

getLastRenderedCenter

public java.awt.Point getLastRenderedCenter()

getLastRenderedCenterX

public int getLastRenderedCenterX()

getLastRenderedCenterY

public int getLastRenderedCenterY()

setDirty

public void setDirty(boolean dirty)

isDirty

public boolean isDirty()