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 class

    This 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.
      • Methods inherited from class java.util.EventObject

        getSource
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 class java.util.EventObject
        Returns:
        String of object of Tracking3DEventArgs class