Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.xerox.VTM.engine
Class CameraManager  view CameraManager download CameraManager.java

java.lang.Object
  extended bycom.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


Field Summary
(package private)  Camera[] cameraList
          list of cameras in this virtual space
private  int nextcIndex
          next camera will have index ...
(package private)  VirtualSpace parentSpace
          owning virtual space
 
Constructor Summary
CameraManager(VirtualSpace vs)
           
 
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
 

Field Detail

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

Constructor Detail

CameraManager

public CameraManager(VirtualSpace vs)
Method Detail

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