com.supermap.realspace

Class Tracking3DEvent

  • java.lang.Object
    • java.util.EventObject
      • com.supermap.realspace.Tracking3DEvent
  • All Implemented Interfaces:
    java.io.Serializable


    public class Tracking3DEvent
    extends java.util.EventObject
    Tracking3DEvent class

    This class is mainly used to provide data for Tracking event from SceneControl class.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Tracking3DEvent(java.lang.Object source, double x, double y, double z, double length, double angle, double totalarea, double totalLength, double height, Geometry3D geometry)
      Constructs Tracking3DEvent instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getCurrentAngle()
      Gets the angle of the current line segment being drawn, and the unit is meter.
      double getCurrentHeight()
      Gets the height of the current line segment being drawn, and the unit is meter.
      double getCurrentLength()
      Gets the length of the current line segment being drawn, and the unit is meter.
      Geometry3D getGeometry()
      Gets the object tracked.
      double getTotalArea()
      Gets the area of the object tracked.
      double getTotalLength()
      Gets the length of the current line being drawn, and the unit is meter.
      double getX()
      Gets the current x coordinate.
      double getY()
      Gets the current y coordinate.
      double getZ()
      Gets the current z coordinate.
      void setZ(double Z)
      Sets the current z coordinate.
      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

      • Tracking3DEvent

        public Tracking3DEvent(java.lang.Object source,
                               double x,
                               double y,
                               double z,
                               double length,
                               double angle,
                               double totalarea,
                               double totalLength,
                               double height,
                               Geometry3D geometry)
        Constructs Tracking3DEvent instance.
        Parameters:
        source - Geometry object.
        x - x coordinate.
        y - y coordinate.
        z - z coordinate.
        length - Length.
        angle - Angle.
        totalarea - Sum area.
        totalLength - Sum length.
        height - Height.
        geometry - Geometry object.
    • Method Detail

      • getX

        public double getX()
        Gets the current x coordinate.
        Returns:
        X coordinate drawing currently.
      • getY

        public double getY()
        Gets the current y coordinate.
        Returns:
        Y coordinate drawing currently.
      • getZ

        public double getZ()
        Gets the current z coordinate.
        Returns:
        Z coordinate drawing currently.
      • setZ

        public void setZ(double Z)
        Sets the current z coordinate.
        Parameters:
        Z - Z coordinate drawing currently.
      • getCurrentLength

        public double getCurrentLength()
        Gets the length of the current line segment being drawn, and the unit is meter.
        Returns:
        Length of segment drawing currently.
      • getCurrentHeight

        public double getCurrentHeight()
        Gets the height of the current line segment being drawn, and the unit is meter.
        Returns:
        Height of segment drawing currently..
      • getCurrentAngle

        public double getCurrentAngle()
        Gets the angle of the current line segment being drawn, and the unit is meter.
        Returns:
        Angle of segment drawing currently.
      • getTotalArea

        public double getTotalArea()
        Gets the area of the object tracked. The unit is square meter.
        Returns:
        Sum area of region drawing currently.
      • getTotalLength

        public double getTotalLength()
        Gets the length of the current line being drawn, and the unit is meter.
        Returns:
        Sum length of line drawing currently.
      • getGeometry

        public Geometry3D getGeometry()
        Gets the object tracked.
        Returns:
        Geometry object drawing currently.
      • toString

        public java.lang.String toString()
        Returns the character string describing the Tracking3DEventArgs object. The format of the character string is like {CurrentLength=,TotalArea=,TotalLength=,X=0.0,Y=0.0,Z=0.0}.
        Overrides:
        toString in class java.util.EventObject
        Returns:
        String of object of Tracking3DEventArgs class