Optional
camera?: PerspectiveCamera | OrthographicCameraGets 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.
Fire an event type.
Computes a PointOfView for the given object.
The object to compute the point of view, or a world space bounding box.
Optional
options: { Optional parameters.
Optional
camera?: 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.
Optional
options: { The options.
Optional
allowAllow 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.
Return the position in the requested CRS, or in camera's CRS if undefined.
Optional
crs: stringif defined (e.g 'EPSG:4236') the camera position will be returned in this CRS
Coordinates object holding camera's position
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).
Adds geospatial capabilities to three.js cameras.