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 boolean
m_b_done
private boolean
m_b_merge
(package private) ConvexHull
m_hull
private int
m_index
private GeometryCursor
m_inputGeometryCursor
private ProgressTracker
m_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 Geometry
calculateConvexHull_(Geometry geom, ProgressTracker progress_tracker)
private Geometry
calculateConvexHullMerging_(GeometryCursor geoms, ProgressTracker progress_tracker)
int
getGeometryID()
Returns the ID of the current geometry.(package private) static boolean
isConvex_(Geometry geom, ProgressTracker progress_tracker)
Geometry
next()
Moves the cursor to the next Geometry.boolean
tock()
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: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_
static Geometry calculateConvexHull_(Geometry geom, ProgressTracker progress_tracker)
-
isConvex_
static boolean isConvex_(Geometry geom, ProgressTracker progress_tracker)
-
-