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
.
Constructor Summary |
Szene3d()
Creates a new world with default initial capacity. |
Szene3d(int capacity)
Creates a new world with given capacity. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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()