DocumentVisualizerWindow

Represents the document visualizer, under the form of an oriented image. It is a window without its default style, centered in the view with an opacity control.

Constructor

new DocumentVisualizerWindow(itownsView, provider)

Creates a new document image orienter.

Parameters:
NameTypeDescription
itownsView*

The iTowns view.

provider*

document provider

Classes

DocumentVisualizerWindow

Members

itownsView :any

The iTowns view.

Type:
  • any

position :THREE.Vector3

The visualization camera position.

Type:
  • THREE.Vector3

quaternion :THREE.Quaternion

The visualization camera orientation.

Type:
  • THREE.Quaternion

Methods

setImageSrc(newSrc)

Sets the image source.

Parameters:
NameTypeDescription
newSrcstring

The image source.

setTargetPosition(position)

Sets the orientation for the camera. startTravel should be called after this method to apply the new position.

Parameters:
NameTypeDescription
positionTHREE.Vector3

The visualization camera position.

setTargetQuaternion(quaternion)

Sets the orientation for the camera. startTravel should be called after this method to apply the new orientation.

Parameters:
NameTypeDescription
quaternionTHREE.Quaternion

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.