Constructor
new Measure(itownsView, layerManager, viewerDiv)
Parameters:
Name | Type | Description |
---|---|---|
itownsView | PlanarView | managing the 3D scene. |
layerManager | LayerManager | handling 3D tiles and intersections. |
viewerDiv | HTMLElement | 3D viewer container. |
- Source
Classes
Members
clearMeasurePathButton :HTMLButtonElement
Type:
- HTMLButtonElement
- Source
currentMeasurePath :MeasurePath
Type:
- Source
group :Group
Type:
- Group
- Source
infoPointCloudClicked :HTMLDivElement
Type:
- HTMLDivElement
- Source
layerManager :LayerManager
Type:
- Source
modeMeasure :boolean
Type:
- boolean
- Source
pathButton :HTMLButtonElement
Type:
- HTMLButtonElement
- Source
Methods
createNewMeasurePath(itownsView) → {MeasurePath}
Creates a new measurement path and adds it to the group.
Parameters:
Name | Type | Description |
---|---|---|
itownsView | PlanarView | iTowns view instance. |
- Source
Returns:
- New instance of the MeasurePath class.
- Type:
- MeasurePath
initCallBack(viewerDiv, itownsView)
Initializes event callbacks for handling user interactions. Handles point selection in the scene, toggling measure mode, and clearing the current path.
Parameters:
Name | Type | Description |
---|---|---|
viewerDiv | HTMLElement | 3D viewer container. |
itownsView | PlanarView | iTowns view instance. |
- Source
leaveMeasureMode(itownsView)
Exits the measurement mode and updates the view accordingly.
Parameters:
Name | Type | Description |
---|---|---|
itownsView | PlanarView | iTowns view instance. |
- Source
update(itownsView)
Updates the UI and behavior based on the current measurement mode.
Parameters:
Name | Type | Description |
---|---|---|
itownsView | PlanarView | iTowns view instance. |
- Source