Collections of data converters for the current viewer
| Name | Type | Description |
|---|---|---|
psv |
PSV.Viewer |
Extends
Members
-
config PSV.Options readonly inherited overrides
Configuration holder
-
-
Properties holder
-
-
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
Methods
-
cleanPanoramaPose (panoData)PSV.SphereCorrection
Parse the pose angles of the pano data
-
Name Type Description panoDataPSV.PanoData Returns:
Type Description PSV.SphereCorrection -
cleanPosition (position)PSV.Position
Converts x/y to latitude/longitude if present and ensure boundaries
-
Name Type Description positionPSV.ExtendedPosition Returns:
Type Description PSV.Position -
cleanSphereCorrection (sphereCorrection)PSV.SphereCorrection
Ensure a SphereCorrection object is valid
-
Name Type Description sphereCorrectionPSV.SphereCorrection Returns:
Type Description PSV.SphereCorrection -
Destroys the service
-
-
Converts vertical FOV to zoom level
-
Name Type Description fovnumber Returns:
Type Description number -
Returns intersections with objects in the scene
-
Name Type Description viewerPointPSV.Point Returns:
Type Description Array.<external:THREE.Intersection> -
Converts a speed into a duration from current position to a new position
-
Name Type Description valuestring | number anglenumber Returns:
Type Description number -
sphericalCoordsToTextureCoords (position)PSV.Point
Converts spherical radians coordinates to pixel texture coordinates
-
Name Type Description positionPSV.Position Throws:
-
when the current adapter does not support texture coordinates
- Type
- PSV.PSVError
Returns:
Type Description PSV.Point -
-
sphericalCoordsToVector3 (position, vector)external:THREE.Vector3
Converts spherical radians coordinates to a THREE.Vector3
-
Name Type Description positionPSV.Position vectorexternal:THREE.Vector3 optional Returns:
Type Description external:THREE.Vector3 -
sphericalCoordsToViewerCoords (position)PSV.Point
Converts spherical radians coordinates to position on the viewer
-
Name Type Description positionPSV.Position Returns:
Type Description PSV.Point -
textureCoordsToSphericalCoords (point)PSV.Position
Converts pixel texture coordinates to spherical radians coordinates
-
Name Type Description pointPSV.Point Throws:
-
when the current adapter does not support texture coordinates
- Type
- PSV.PSVError
Returns:
Type Description PSV.Position -
-
vector3ToSphericalCoords (vector)PSV.Position
Converts a THREE.Vector3 to spherical radians coordinates
-
Name Type Description vectorexternal:THREE.Vector3 Returns:
Type Description PSV.Position -
vector3ToViewerCoords (vector)PSV.Point
Converts a THREE.Vector3 to position on the viewer
-
Name Type Description vectorexternal:THREE.Vector3 Returns:
Type Description PSV.Point -
Convert vertical FOV to horizontal FOV
-
Name Type Description vFovnumber Returns:
Type Description number -
viewerCoordsToVector3 (viewerPoint)external:THREE.Vector3
Converts position on the viewer to a THREE.Vector3
-
Name Type Description viewerPointPSV.Point Returns:
Type Description external:THREE.Vector3 -
Converts zoom level to vertical FOV
-
Name Type Description levelnumber Returns:
Type Description number