GIScene.Control.Measure Class
The Measure-Control lets you pick two points of an Object by clicking. As a result you get the an Object containing the measured distance in scene units.
The measure-Event content looks like this:
{
distance: {Number in Scene units},
angleToNorth : {Number angle in degrees}
}
Constructor
GIScene.Control.Measure
(
-
camera
-
[config]
Parameters:
-
camera
THREE.Camera -
[config]
Object optionalConfiguration properties. e.g. {color : new THREE.Color(0xff0000)}
Item Index
Methods
Events
Methods
activate
()
Activates this Control
deactivate
()
Deactivates this Control
drawPickResult
(
-
pickResult
Draws a cross symbol to where the user has picked and a connection line.
Parameters:
-
pickResult
ObjectA Raycaster intersect object
setScene
(
-
scene
Sets the scene property. This is automatically called on scene.addControl()
Parameters:
-
scene
Object
Properties
config
Object
The config which is used to initialize the Control. Merged from defaults and passed config Object.
isActive
Boolean
Events
measure
The measure event contains a content property with an result object