Package com.esri.core.geometry
Class OperatorConvexHullCursor
java.lang.Object
com.esri.core.geometry.GeometryCursor
com.esri.core.geometry.OperatorConvexHullCursor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
(package private) ConvexHull
private int
private GeometryCursor
private ProgressTracker
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorConvexHullCursor
(boolean b_merge, GeometryCursor geoms, ProgressTracker progress_tracker) -
Method Summary
Modifier and TypeMethodDescription(package private) static Geometry
calculateConvexHull_
(Geometry geom, ProgressTracker progress_tracker) private Geometry
calculateConvexHullMerging_
(GeometryCursor geoms, ProgressTracker progress_tracker) int
Returns the ID of the current geometry.(package private) static boolean
isConvex_
(Geometry geom, ProgressTracker progress_tracker) next()
Moves the cursor to the next Geometry.boolean
tock()
Executes a unit of work on the cursor.
-
Field Details
-
m_progress_tracker
-
m_b_merge
private boolean m_b_merge -
m_b_done
private boolean m_b_done -
m_inputGeometryCursor
-
m_index
private int m_index -
m_hull
ConvexHull m_hull
-
-
Constructor Details
-
OperatorConvexHullCursor
OperatorConvexHullCursor(boolean b_merge, GeometryCursor geoms, ProgressTracker progress_tracker)
-
-
Method Details
-
next
Description copied from class:GeometryCursor
Moves 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:
next
in classGeometryCursor
-
getGeometryID
public int getGeometryID()Description copied from class:GeometryCursor
Returns 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:
getGeometryID
in classGeometryCursor
-
calculateConvexHullMerging_
private Geometry calculateConvexHullMerging_(GeometryCursor geoms, ProgressTracker progress_tracker) -
tock
public boolean tock()Description copied from class:GeometryCursor
Executes a unit of work on the cursor.- Overrides:
tock
in 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_
-
isConvex_
-