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) booleanm_bRemoveDegenerateParts(package private) GeometryCursorm_geoms(package private) doublem_maxDeviation(package private) ProgressTrackerm_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 intFindGreatestDistance(Line line, Point2D ptHelper, AttributeStreamOfDbl xy, int start, int end, int pathEnd)private GeometryGeneralize(Geometry geom)private voidGeneralizePath(MultiPathImpl mpsrc, int ipath, MultiPathImpl mpdst, Line lineHelper)intgetGeometryID()Returns the ID of the current geometry.Geometrynext()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: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
-
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)
-
-