The constructor parameters.
Optionalcamera?: PerspectiveCamera | OrthographicCameraThe three.js camera to use. If unspecified, a default perspective camera is created.
The coordinate system of the view.
The height in pixels of the camera viewport
The width in pixels of the camera viewport
Gets or sets the current camera.
Gets the currently registered controls, if any.
Note: To register controls, use setControls.
Gets or sets the distance to the far plane. The distance will be clamped to be within the bounds defined by minNearPlane and maxFarPlane.
The height, in pixels, of this view.
Gets or sets the maximum distance allowed for the camera far plane.
Gets or sets the minimum distance allowed for the camera near plane.
Gets or sets the distance to the near plane. The distance will be clamped to be within the bounds defined by minNearPlane and maxFarPlane.
The width, in pixels, of this view.
Releases unmanaged resources from this object.
Computes a PointOfView for the given object.
The object to compute the point of view, or a world space bounding box.
Optionaloptions: { camera?: Camera }Optional parameters.
Optionalcamera?: CameraThe optional camera to compute this point of view. If unspecified, the currently active camera on this view is used.
The readonly point of view if it could be computed, null otherwise.
Setup the camera to match the specified object or point of view.
Important note: this method does not update any camera controls that are controlling the camera. Those controls have to be updated manually so they do not override the new camera position. For example, controls that have a target must be updated so that the target position matches the one returned by this method.
The object to go to.
Optionaloptions: { allowTranslation?: boolean }The options.
OptionalallowTranslation?: booleanAllow moving the camera. If false, the camera is only rotated to look at the object.
The immutable PointOfView that was used to setup the camera, or null if it couldn't be computed.
OptionalmatrixWorld: Matrix4OptionalmatrixWorld: Matrix4Return the position in the requested CRS, or in camera's CRS if undefined.
Optionalcrs: CoordinateSystemif defined (e.g 'EPSG:4236') the camera position will be returned in this CRS
Coordinates object holding camera's position
Resets the near and far planes to their default value.
Registers external controls that must be udpated periodically.
Note: this is the case of simple controls in the examples/{js,jsm}/controls folder
of THREE.js (e.g MapControls):
'change' events when the controls' state has changed and the view must be rendered,update() method to update the controls' state.For more complex controls, such as the package camera-controls,
a more complex logic is required. Please refer to the appropriate examples for a detailed
documentation on how to bind Giro3D and those controls.
The controls to register. If null, currently registered controls
are unregistered (they are not disabled however).
Optionalwidth: numberOptionalheight: number
Represent the users's point of view. Internally this encapsulate a three.js camera.