java.lang.Object
com.xerox.VTM.engine.CameraManager
- class CameraManager
- extends java.lang.Object
The Camera Manager is in charge of all cameras of a virtual space (there is one camera manager per virtual space)
when a camera is destroyed, its index is not reused for another one - so if camera number #3 is removed and then a new camera is added it will be assigned number #4 even though there is no camera at index #3 any longer
|
Method Summary |
(package private) Camera |
addCamera()
add a camera to the owning virtual space |
(package private) Camera |
getCamera(int i)
return i-th camera in this virtual space |
(package private) void |
removeCamera(int i)
remove a camera from owning virtual space |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parentSpace
VirtualSpace parentSpace
- owning virtual space
nextcIndex
private int nextcIndex
- next camera will have index ... in this virtual space - a camera can only belong to one virtual space
cameraList
Camera[] cameraList
- list of cameras in this virtual space
CameraManager
public CameraManager(VirtualSpace vs)
getCamera
Camera getCamera(int i)
- return i-th camera in this virtual space
addCamera
Camera addCamera()
- add a camera to the owning virtual space
removeCamera
void removeCamera(int i)
- remove a camera from owning virtual space