Class vxlCameraManager

The camera manager is responsible for controlling the cameras associated with a view

Constructor

vxlCameraManager(vw)

Parameters:

vxlView vw

the view

See:
vxlCamera
vxlView

Methods

.create(type)
Creates a camera

Parameters:

Type Name Description
vxl.def.camera.type type

the type of camera to create

.get(idx)
Returns the camera with index idx

Parameters:

Type Name Description
Number idx

the index of the camera to return

.remove(idx)
Removes a camera from the camera manager. Please notice that this operationwill cause reindexing. So, if the camera manager has cameras 0, 1, 2 and camera 1is removed then camera 2 will be now camera 1 so the index is maintained.

Parameters:

Type Name Description
Number idx

the index of the camera to be removed

.reset(type)
Resets the camera manager and creates one camera

Parameters:

Type Name Description
vxl.def.camera.type type

the type of amera

.switchTo(idx)
Changes the active camera to the camera with index idx

Parameters:

Type Name Description
Number idx

the index of the camera to make active