Package com.esri.core.geometry
Class OperatorConvexHullCursor
- java.lang.Object
-
- com.esri.core.geometry.GeometryCursor
-
- com.esri.core.geometry.OperatorConvexHullCursor
-
class OperatorConvexHullCursor extends GeometryCursor
-
-
Field Summary
Fields Modifier and Type Field Description private booleanm_b_doneprivate booleanm_b_merge(package private) ConvexHullm_hullprivate intm_indexprivate GeometryCursorm_inputGeometryCursorprivate ProgressTrackerm_progress_tracker
-
Constructor Summary
Constructors Constructor Description OperatorConvexHullCursor(boolean b_merge, GeometryCursor geoms, ProgressTracker progress_tracker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static GeometrycalculateConvexHull_(Geometry geom, ProgressTracker progress_tracker)private GeometrycalculateConvexHullMerging_(GeometryCursor geoms, ProgressTracker progress_tracker)intgetGeometryID()Returns the ID of the current geometry.(package private) static booleanisConvex_(Geometry geom, ProgressTracker progress_tracker)Geometrynext()Moves the cursor to the next Geometry.booleantock()Executes a unit of work on the cursor.
-
-
-
Field Detail
-
m_progress_tracker
private ProgressTracker m_progress_tracker
-
m_b_merge
private boolean m_b_merge
-
m_b_done
private boolean m_b_done
-
m_inputGeometryCursor
private GeometryCursor m_inputGeometryCursor
-
m_index
private int m_index
-
m_hull
ConvexHull m_hull
-
-
Constructor Detail
-
OperatorConvexHullCursor
OperatorConvexHullCursor(boolean b_merge, GeometryCursor geoms, ProgressTracker progress_tracker)
-
-
Method Detail
-
next
public Geometry next()
Description copied from class:GeometryCursorMoves the cursor to the next Geometry. Returns null when reached the end. The behavior of the cursor is undefined after the method returns null.- Specified by:
nextin classGeometryCursor
-
getGeometryID
public int getGeometryID()
Description copied from class:GeometryCursorReturns the ID of the current geometry. The ID is propagated across the operations (when possible). Returns an ID associated with the current Geometry. The ID is passed along and is returned by some operators to preserve relationship between the input and output geometry classes. It is not always possible to preserve an ID during an operation.- Specified by:
getGeometryIDin classGeometryCursor
-
calculateConvexHullMerging_
private Geometry calculateConvexHullMerging_(GeometryCursor geoms, ProgressTracker progress_tracker)
-
tock
public boolean tock()
Description copied from class:GeometryCursorExecutes a unit of work on the cursor.- Overrides:
tockin classGeometryCursor- Returns:
- Returns true, if there is a geometry ready to be pulled using next(). This method is to be used together with the tick() method on the ListeningGeometryCursor. Call tock() for each tick() on the ListeningGeometryCursor.
-
calculateConvexHull_
static Geometry calculateConvexHull_(Geometry geom, ProgressTracker progress_tracker)
-
isConvex_
static boolean isConvex_(Geometry geom, ProgressTracker progress_tracker)
-
-