com.supermap.realspace
Class Tracked3DEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.supermap.realspace.Tracked3DEvent
-
- All Implemented Interfaces:
- java.io.Serializable
public class Tracked3DEvent extends java.util.EventObject
Tracked3DEvent classThis class is mainly used to provide data for Tracked event from SceneControl class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description Tracked3DEvent(java.lang.Object source, Geometry3D geometry, double length, double area, double height)
Constructs Tracked3DEvent instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double
getArea()
Gets the area of the object tracked .Geometry3D
getGeometry()
Gets the object tracked.double
getHeight()
Gets the height of the object tracked.double
getLength()
Gets the length of the object tracked.java.lang.String
toString()
Returns the character string describing the Tracking3DEventArgs object.
-
-
-
Constructor Detail
-
Tracked3DEvent
public Tracked3DEvent(java.lang.Object source, Geometry3D geometry, double length, double area, double height)
Constructs Tracked3DEvent instance.- Parameters:
source
- The source object.geometry
- The Geometry object.length
- Length.area
- Area.height
- Height.
-
-
Method Detail
-
getHeight
public double getHeight()
Gets the height of the object tracked. The unit is meter.- Returns:
- Height of geometry object.
-
getLength
public double getLength()
Gets the length of the object tracked. The unit is meter.- Returns:
- Length of geometry object.
-
getArea
public double getArea()
Gets the area of the object tracked . The unit is square meter.- Returns:
- area of geometry object.
-
getGeometry
public Geometry3D getGeometry()
Gets the object tracked.- Returns:
- Drawn of geometry object.
-
toString
public java.lang.String toString()
Returns the character string describing the Tracking3DEventArgs object. The format of the character string is like {Length = , Area= ,Height=}.- Overrides:
toString
in classjava.util.EventObject
- Returns:
- String of object of Tracking3DEventArgs class
-
-