Interface: CameraManager
Interface for manager responsible for all manipulations to the camera,
including animations and modification of state. Implementations are responsible for
providing a THREE.PerspectiveCamera
instance to the viewer. Implementations
must trigger the cameraChange
-event when camera is changed.
The default implementation is DefaultCameraManager.
Extended by
Methods
activate()
activate(
cameraManager
?):void
Set this manager as active and enable controls.
Should update CameraManager.enabled to reflect the state of the manager. Note that this is called automatically when a new CameraManager is set on the viewer.
Parameters
• cameraManager?: CameraManager
Previously used camera manager.
Returns
void
Defined in
packages/camera-manager/src/CameraManager.ts:61
deactivate()
deactivate():
void
Deactivate this manager and disable controls.
Should update CameraManager.enabled to reflect the state of the manager. Note that this is called automatically when a new CameraManager is set on the viewer.
Returns
void
Defined in
packages/camera-manager/src/CameraManager.ts:69
dispose()
dispose():
void
Returns
void
Obvious
Defined in
packages/camera-manager/src/CameraManager.ts:109
fitCameraToBoundingBox()
fitCameraToBoundingBox(
boundingBox
,duration
?,radiusFactor
?):void
Moves camera to a place where the content of a bounding box is visible to the camera.
Parameters
• boundingBox: Box3
The bounding box in world space.
• duration?: number
The duration of the animation moving the camera.
• radiusFactor?: number
The ratio of the distance from camera to center of box and radius of the box.
Returns
void
Defined in
packages/camera-manager/src/CameraManager.ts:97
getCamera()
getCamera():
PerspectiveCamera
Returns the camera used for rendering the viewer.
Note that the camera will not be modified directly by Reveal.
Implementations must trigger the cameraChange
-event whenever the
camera changes.
Returns
PerspectiveCamera
Defined in
packages/camera-manager/src/CameraManager.ts:29