Package com.esri.core.geometry
Class OperatorGeneralizeCursor
- java.lang.Object
-
- com.esri.core.geometry.GeometryCursor
-
- com.esri.core.geometry.OperatorGeneralizeCursor
-
final class OperatorGeneralizeCursor extends GeometryCursor
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
m_bRemoveDegenerateParts
(package private) GeometryCursor
m_geoms
(package private) double
m_maxDeviation
(package private) ProgressTracker
m_progressTracker
-
Constructor Summary
Constructors Constructor Description OperatorGeneralizeCursor(GeometryCursor geoms, double maxDeviation, boolean bRemoveDegenerateParts, ProgressTracker progressTracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
FindGreatestDistance(Line line, Point2D ptHelper, AttributeStreamOfDbl xy, int start, int end, int pathEnd)
private Geometry
Generalize(Geometry geom)
private void
GeneralizePath(MultiPathImpl mpsrc, int ipath, MultiPathImpl mpdst, Line lineHelper)
int
getGeometryID()
Returns the ID of the current geometry.Geometry
next()
Moves the cursor to the next Geometry.-
Methods inherited from class com.esri.core.geometry.GeometryCursor
tock
-
-
-
-
Field Detail
-
m_progressTracker
ProgressTracker m_progressTracker
-
m_geoms
GeometryCursor m_geoms
-
m_maxDeviation
double m_maxDeviation
-
m_bRemoveDegenerateParts
boolean m_bRemoveDegenerateParts
-
-
Constructor Detail
-
OperatorGeneralizeCursor
public OperatorGeneralizeCursor(GeometryCursor geoms, double maxDeviation, boolean bRemoveDegenerateParts, ProgressTracker progressTracker)
-
-
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
-
GeneralizePath
private void GeneralizePath(MultiPathImpl mpsrc, int ipath, MultiPathImpl mpdst, Line lineHelper)
-
FindGreatestDistance
private int FindGreatestDistance(Line line, Point2D ptHelper, AttributeStreamOfDbl xy, int start, int end, int pathEnd)
-
-