Package com.esri.core.geometry
Class PointInPolygonHelper
- java.lang.Object
-
- com.esri.core.geometry.PointInPolygonHelper
-
final class PointInPolygonHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private booleanm_bAlternateprivate booleanm_bBreakprivate booleanm_bPointInAnyOuterRingTestprivate booleanm_bTestBorderprivate Point2Dm_inputPointprivate doublem_maxyprivate doublem_minyprivate SegmentBuffer[]m_monotonePartsprivate doublem_toleranceprivate doublem_toleranceSqrprivate intm_windnumprivate double[]m_xOrds
-
Constructor Summary
Constructors Constructor Description PointInPolygonHelper(boolean bFillRule_Alternate, Point2D inputPoint, double tolerance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int_isPointInPolygonInternal(Polygon inputPolygon, Point2D inputPoint, double tolerance)private static int_isPointInPolygonInternalWithQuadTree(Polygon inputPolygon, QuadTreeImpl quadTree, Point2D inputPoint, double tolerance)(package private) static boolean_isRingInRing2D(MultiPath polygon, int iRing1, int iRing2, double tolerance, QuadTree quadTree)private boolean_testBorder(Segment seg)private voiddoOne(Segment seg)static intisPointInAnyOuterRing(Polygon inputPolygon, Point2D inputPoint, double tolerance)(package private) static intisPointInPolygon(Polygon inputPolygon, double inputPointXVal, double inputPointYVal, double tolerance)static intisPointInPolygon(Polygon inputPolygon, Point2D inputPoint, double tolerance)static intisPointInPolygon(Polygon inputPolygon, Point inputPoint, double tolerance)static intisPointInRing(MultiPathImpl inputPolygonImpl, int iRing, Point2D inputPoint, double tolerance, QuadTree quadTree)private booleanprocessSegment(Segment segment)(package private) static booleanquadTreeWillHelp(Polygon polygon, int c_queries)private intresult()
-
-
-
Field Detail
-
m_inputPoint
private Point2D m_inputPoint
-
m_windnum
private int m_windnum
-
m_monotoneParts
private SegmentBuffer[] m_monotoneParts
-
m_xOrds
private double[] m_xOrds
-
m_tolerance
private double m_tolerance
-
m_toleranceSqr
private double m_toleranceSqr
-
m_miny
private double m_miny
-
m_maxy
private double m_maxy
-
m_bAlternate
private boolean m_bAlternate
-
m_bTestBorder
private boolean m_bTestBorder
-
m_bBreak
private boolean m_bBreak
-
m_bPointInAnyOuterRingTest
private boolean m_bPointInAnyOuterRingTest
-
-
Constructor Detail
-
PointInPolygonHelper
public PointInPolygonHelper(boolean bFillRule_Alternate, Point2D inputPoint, double tolerance)
-
-
Method Detail
-
result
private int result()
-
_testBorder
private boolean _testBorder(Segment seg)
-
doOne
private void doOne(Segment seg)
-
processSegment
private boolean processSegment(Segment segment)
-
_isPointInPolygonInternal
private static int _isPointInPolygonInternal(Polygon inputPolygon, Point2D inputPoint, double tolerance)
-
_isPointInPolygonInternalWithQuadTree
private static int _isPointInPolygonInternalWithQuadTree(Polygon inputPolygon, QuadTreeImpl quadTree, Point2D inputPoint, double tolerance)
-
isPointInPolygon
public static int isPointInPolygon(Polygon inputPolygon, Point2D inputPoint, double tolerance)
-
isPointInPolygon
static int isPointInPolygon(Polygon inputPolygon, double inputPointXVal, double inputPointYVal, double tolerance)
-
isPointInRing
public static int isPointInRing(MultiPathImpl inputPolygonImpl, int iRing, Point2D inputPoint, double tolerance, QuadTree quadTree)
-
isPointInPolygon
public static int isPointInPolygon(Polygon inputPolygon, Point inputPoint, double tolerance)
-
isPointInAnyOuterRing
public static int isPointInAnyOuterRing(Polygon inputPolygon, Point2D inputPoint, double tolerance)
-
_isRingInRing2D
static boolean _isRingInRing2D(MultiPath polygon, int iRing1, int iRing2, double tolerance, QuadTree quadTree)
-
quadTreeWillHelp
static boolean quadTreeWillHelp(Polygon polygon, int c_queries)
-
-