public class Contour extends Object
构造器 | 说明 |
---|---|
Contour() |
限定符和类型 | 方法 | 说明 |
---|---|---|
static List<Polygon> |
clipPolygons(List<Polygon> polygons,
List<PointD> clipPList) |
Clip polygons with a border polygon
|
static List<PolyLine> |
clipPolylines(List<PolyLine> polylines,
List<PointD> clipPList) |
Clip polylines with a border polygon
|
static List<Polygon> |
createCutContourPolygons(List<PolyLine> LineList,
List<PointD> polyList,
Extent aBound,
double[] contour) |
Create polygons from cutted contour lines
|
static List<PolyLine> |
cutContourLines(List<PolyLine> alinelist,
Border aBorder) |
Cut contour lines with a polygon.
|
static List<PolyLine> |
cutContourWithPolygon(List<PolyLine> alinelist,
List<PointD> polyList) |
Cut contour lines with a polygon.
|
static PointF |
getCrossPoint(PointF aP1,
PointF aP2,
PointF bP1,
PointF bP2) |
Get cross point of two line segments
|
static String |
getVersion() |
Get version
|
static boolean |
isClockwise(List<PointD> pointList) |
Determine if the point list is clockwise
|
static boolean |
pointInPolygon(List<PointD> poly,
PointD aPoint) |
Judge if a point is in a polygon
|
static boolean |
pointInPolygon(Polygon aPolygon,
PointD aPoint) |
Judge if a point is in a polygon
|
static List<PolyLine> |
smoothLines(List<PolyLine> aLineList) |
Smooth polylines
|
static List<PointD> |
smoothPoints(List<PointD> pointList) |
Smooth points
|
static List<Border> |
tracingBorders(double[][] S0,
double[] X,
double[] Y,
int[][] S1,
double undefData) |
Tracing contour borders of the grid data with undefined data.
|
static List<PolyLine> |
tracingContourLines(double[][] S0,
double[] X,
double[] Y,
int nc,
double[] contour,
double undefData,
List<Border> borders,
int[][] S1) |
Tracing contour lines from the grid data with undefine data
|
static List<Polygon> |
tracingPolygons(double[][] S0,
List<PolyLine> cLineList,
List<Border> borderList,
double[] contour) |
Tracing polygons from contour lines and borders
|
static List<PolyLine> |
tracingStreamline(double[][] U,
double[][] V,
double[] X,
double[] Y,
double UNDEF,
int density) |
Tracing stream lines
|
public static String getVersion()
public static List<PolyLine> tracingContourLines(double[][] S0, double[] X, double[] Y, int nc, double[] contour, double undefData, List<Border> borders, int[][] S1)
S0
- input grid dataX
- X coordinate arrayY
- Y coordinate arraync
- number of contour valuescontour
- contour value arrayundefData
- Undefine databorders
- bordersS1
- data flag arraypublic static List<Border> tracingBorders(double[][] S0, double[] X, double[] Y, int[][] S1, double undefData)
S0
- input grid dataX
- x coordinate arrayY
- y coordinate arrayS1
- data flag arrayundefData
- undefine datapublic static List<PolyLine> cutContourWithPolygon(List<PolyLine> alinelist, List<PointD> polyList)
alinelist
- polyline listpolyList
- border points of the cut polygonpublic static List<PolyLine> cutContourLines(List<PolyLine> alinelist, Border aBorder)
alinelist
- polyline listaBorder
- border for clippingpublic static List<PolyLine> smoothLines(List<PolyLine> aLineList)
aLineList
- polyline listpublic static List<PointD> smoothPoints(List<PointD> pointList)
pointList
- point listpublic static List<Polygon> tracingPolygons(double[][] S0, List<PolyLine> cLineList, List<Border> borderList, double[] contour)
S0
- input grid datacLineList
- contour linesborderList
- borderscontour
- contour valuespublic static List<Polygon> createCutContourPolygons(List<PolyLine> LineList, List<PointD> polyList, Extent aBound, double[] contour)
LineList
- polylinespolyList
- border point listaBound
- extentcontour
- contour valuespublic static boolean pointInPolygon(List<PointD> poly, PointD aPoint)
poly
- polygon borderaPoint
- pointpublic static boolean pointInPolygon(Polygon aPolygon, PointD aPoint)
aPolygon
- polygonaPoint
- pointpublic static List<PolyLine> clipPolylines(List<PolyLine> polylines, List<PointD> clipPList)
polylines
- polyline listclipPList
- clipping border point listpublic static List<Polygon> clipPolygons(List<Polygon> polygons, List<PointD> clipPList)
polygons
- polygon listclipPList
- clipping border point listpublic static List<PolyLine> tracingStreamline(double[][] U, double[][] V, double[] X, double[] Y, double UNDEF, int density)
U
- U component arrayV
- V component arrayX
- X coordinate arrayY
- Y coordinate arrayUNDEF
- undefine datadensity
- stream line densitypublic static boolean isClockwise(List<PointD> pointList)
pointList
- point listCopyright © 2019. All rights reserved.