DocumentCreationWindow

new DocumentCreationWindow(contributeService, itownsView, cameraControls, documentVisualizer, parentElementVisualizer)

Creates a new document creation window.

Parameters:
NameTypeDescription
contributeServiceContributeService

The contribute service to perform requests.

itownsViewmodule:itowns~PlanarView

The iTowns view.

cameraControlsmodule:itowns~PlanarControls

The planar camera controls.

documentVisualizerDocumentVisualizerWindow

The document image orienter module.

parentElementVisualizerHTMLElement

element to add visualizer to

Classes

DocumentCreationWindow

Members

accurateControlsSettings :Object

The settings for an accurate movement of the camera. These settings should be used in the PlanarControls class.

Type:
  • Object

cameraPosition :THREE.Vector3

The registered camera position for the document visualization.

Type:
  • THREE.Vector3

cameraQuaternion :THREE.Quaternion

The registered camera orientation for the document visualization.

Type:
  • THREE.Quaternion

contributeService :ContributeService

The contribute service to perform requests.

controls :*

The camera controls

Type:
  • *

documentVisualizer :DocumentVisualizerWindow

The document image orienter module.

positioner :CameraPositioner

Type:
  • CameraPositioner

savedControlsSettings :Object

The saved state of the planar controls settings. This is used to restore the default settings when needed.

Type:
  • Object

Methods

_enterEditMode()

Change the controls settings to 'edit mode', ie. the camera moves, zooms and rotates slower. This allows the user to place a document with more accuracy.

_exitEditMode()

Resets the controls settings to their default value.

_registerPositionAndQuaternion(cameraState)

Registers the camera position and orientation.

Parameters:
NameTypeDescription
cameraStateObject

Position and orientation of the camera.