MeasurementAPI#
Interface MeasurementAPI
Hierarchy
- MeasurementAPI
Methods
change Measurement
- change
Measurement(measurementID: number, progress: MeasurementProgress, visible?: boolean, name?: string): void -
Parameters
-
measurementID: number
-
progress: MeasurementProgress
-
Optional
visible: boolean -
Optional
name: string
Returns void
-
create Measurement
- create
Measurement(type: MeasurementType, clickResult1: IClickResult, clickResult2?: IClickResult, name?: string): number -
Creates a new measurement and returns the ID. If no name is given, the measurement will be automatically named (e.g., “Measurement 23”).
Parameters
-
type: MeasurementType
-
clickResult1: IClickResult
-
Optional
clickResult2: IClickResult -
Optional
name: string
Returns number
-
get Measurement Data
- get
Measurement Data(measurementID: number): MeasurementData -
Parameters
-
measurementID: number
The ID of the Measurement.
Returns MeasurementData
The MeasurementData.
-
get Measurements
measure Tangent
- measure
Tangent(measurementDescriptor: MeasurementDescriptor, l3dToShapeInstanceIDMap: Map<number, number[]>): Promise<TangentMeasurementResult> -
Parameters
-
measurementDescriptor: MeasurementDescriptor
-
l3dToShapeInstanceIDMap: Map<number, number[]>
Returns Promise<TangentMeasurementResult>
-
remove Measurement
request Additional Measurement Data
restore Measurement
- restore
Measurement(data: MeasurementData, measurementID?: number): number -
Parameters
-
data: MeasurementData
The MeasurementData that should be restored.
-
Optional
measurementID: numberThe ID of the restored Measurement.
Returns number
-
These functions allow the creation of Measurements. A Measurement describes the distance between two points in the world.