Constructor
new DocumentVisualizerWindow(itownsView, provider)
Creates a new document image orienter.
Name | Type | Description |
---|---|---|
itownsView | * | The iTowns view. |
provider | * | document provider |
Classes
Members
itownsView :any
The iTowns view.
- any
position :THREE.Vector3
The visualization camera position.
- THREE.
Vector3
quaternion :THREE.Quaternion
The visualization camera orientation.
- THREE.
Quaternion
Methods
setImageSrc(newSrc)
Sets the image source.
Name | Type | Description |
---|---|---|
newSrc | string | The image source. |
setTargetPosition(position)
Sets the orientation for the camera. startTravel
should be called after this method to apply the new position.
Name | Type | Description |
---|---|---|
position | THREE. | The visualization camera position. |
setTargetQuaternion(quaternion)
Sets the orientation for the camera. startTravel
should be called after this method to apply the new orientation.
Name | Type | Description |
---|---|---|
quaternion | THREE. | The visualization camera orientation. |
(async) startTravel()
Starts the document orientation. The processes first assign the correct src to the image, then sets the opacity to 0. After the travel is finished, the opacity is gradually restored. To call this function, the position
, quaternion
and imageSrc
attributes must all have been set beforehand.
(async) startTravelToDisplayedDocument()
Retrieve the displayed document and start a travel to its visualization location.