new DocumentCreationWindow(contributeService, itownsView, cameraControls, documentVisualizer, parentElementVisualizer)
Creates a new document creation window.
Name | Type | Description |
---|---|---|
contributeService | ContributeService | The contribute service to perform requests. |
itownsView | module:itowns~PlanarView | The iTowns view. |
cameraControls | module:itowns~PlanarControls | The planar camera controls. |
documentVisualizer | DocumentVisualizerWindow | The document image orienter module. |
parentElementVisualizer | HTMLElement | element to add visualizer to |
Classes
Members
accurateControlsSettings :Object
The settings for an accurate movement of the camera. These settings should be used in the PlanarControls
class.
- Object
cameraPosition :THREE.Vector3
The registered camera position for the document visualization.
- THREE.
Vector3
cameraQuaternion :THREE.Quaternion
The registered camera orientation for the document visualization.
- THREE.
Quaternion
contributeService :ContributeService
The contribute service to perform requests.
controls :*
The camera controls
- *
documentVisualizer :DocumentVisualizerWindow
The document image orienter module.
positioner :CameraPositioner
- CameraPositioner
savedControlsSettings :Object
The saved state of the planar controls settings. This is used to restore the default settings when needed.
- 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.
Name | Type | Description |
---|---|---|
cameraState | Object | Position and orientation of the camera. |