com.supermap.ar.areffect.preset

Class ARDynamicGeometry

  • java.lang.Object
    • com.supermap.ar.areffect.preset.ARDynamicGeometry


  • public class ARDynamicGeometry
    extends java.lang.Object
    Dynamic geometry object
    • Constructor Detail

      • ARDynamicGeometry

        public ARDynamicGeometry(AREffectElement parent)
        The constructor
        Parameters:
        parent - Parent element
    • Method Detail

      • setOnPointUpdateListener

        public void setOnPointUpdateListener(ARDynamicGeometry.OnPointUpdateListener onPointUpdateListener)
        Setting point adds listening events
        Parameters:
        onPointUpdateListener - Listen for an event
      • clearAll

        public void clearAll()
        clear All
      • getObj

        public ARGeometry getObj(int index,
                                 ARGeometry.ARGeometryType type)
        Gets an object of the specified type and the specified index
        Parameters:
        index - The index
        type - type
        Returns:
        object
      • getCurrentCount

        public int getCurrentCount()
        Gets the number of vertices for the current object
        Returns:
        Vertex set (note: non-end to end closure)
      • saveCurrentObj

        public boolean saveCurrentObj()
        Save the current object
        Returns:
      • clearCurrentObj

        public void clearCurrentObj()
        Clears the currently drawn object
      • addPoint

        public void addPoint(Point3D p)
        add Point
        Parameters:
        p -
      • delLastPoint

        public boolean delLastPoint()
        Clears the last node added
        Returns:
      • getPointStyle

        public ShapeStyle getPointStyle()
      • getPolygonStyle

        public ShapeStyle getPolygonStyle()
      • getCurrentClockwisePoints

        public java.util.ArrayList<Point3D> getCurrentClockwisePoints()
        Gets the current set of points that are always clockwise
        Returns:
      • refresh

        public void refresh()
        refresh