Constructor
new MeasurePath(parentMeasureObject, itownsView, pointMaterial, lineMaterial)
Parameters:
Name | Type | Description |
---|---|---|
parentMeasureObject | Group | Group that contains the path. |
itownsView | PlanarView | iTowns view instance. |
pointMaterial | MeshBasicMaterial | Material for the sphere meshes. |
lineMaterial | LineBasicMaterial | Material for the lines. |
- Source
Members
labelDomElements :Array.<Label3D>
Type:
- Array.<Label3D>
- Source
lineMaterial :LineBasicMaterial
Type:
- LineBasicMaterial
- Source
object3D :Object3D
Type:
- Object3D
- Source
pointMaterial :MeshBasicMaterial
Type:
- MeshBasicMaterial
- Source
points :Array.<Vector3>
Type:
- Array.<Vector3>
- Source
sphereMesh :Array.<Mesh>
Type:
- Array.<Mesh>
- Source
Methods
addPoint(vector, itownsView)
Adds a new point to the measurement path.
Parameters:
Name | Type | Description |
---|---|---|
vector | Vector3 | position of the point. |
itownsView | PlanarView | iTowns view instance. |
- Source
update(itownsView)
Updates the 3D objects representing the measurement path, including spheres and lines.
Parameters:
Name | Type | Description |
---|---|---|
itownsView | PlanarView | iTowns view instance. |
- Source
updateTransform(itownsView)
Updates the transform (scale) of spheres and labels based on camera distance.
Parameters:
Name | Type | Description |
---|---|---|
itownsView | PlanarView | iTowns view instance. |
- Source