程序包 wcontour
类 Contour
- java.lang.Object
-
- wcontour.Contour
-
public class Contour extends java.lang.ObjectContour class - including the functions of contour- 版本:
- $Revision: 1.6.1 $
- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 Contour()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.util.List<Polygon>clipPolygons(java.util.List<Polygon> polygons, java.util.List<PointD> clipPList)Clip polygons with a border polygonstatic java.util.List<PolyLine>clipPolylines(java.util.List<PolyLine> polylines, java.util.List<PointD> clipPList)Clip polylines with a border polygonstatic java.util.List<Polygon>createCutContourPolygons(java.util.List<PolyLine> LineList, java.util.List<PointD> polyList, Extent aBound, double[] contour)Create polygons from cutted contour linesstatic java.util.List<PolyLine>cutContourLines(java.util.List<PolyLine> alinelist, Border aBorder)Cut contour lines with a polygon.static java.util.List<PolyLine>cutContourWithPolygon(java.util.List<PolyLine> alinelist, java.util.List<PointD> polyList)Cut contour lines with a polygon.static PointFgetCrossPoint(PointF aP1, PointF aP2, PointF bP1, PointF bP2)Get cross point of two line segmentsstatic java.lang.StringgetVersion()Get versionstatic booleanisClockwise(java.util.List<PointD> pointList)Determine if the point list is clockwisestatic booleanpointInPolygon(java.util.List<PointD> poly, PointD aPoint)Judge if a point is in a polygonstatic booleanpointInPolygon(Polygon aPolygon, PointD aPoint)Judge if a point is in a polygonstatic java.util.List<PolyLine>smoothLines(java.util.List<PolyLine> aLineList)Smooth polylinesstatic java.util.List<PointD>smoothPoints(java.util.List<PointD> pointList)Smooth pointsstatic java.util.List<Border>tracingBorders(double[][] S0, double[] X, double[] Y, int[][] S1, double undefData)Tracing contour borders of the grid data with undefined data.static java.util.List<PolyLine>tracingContourLines(double[][] S0, double[] X, double[] Y, int nc, double[] contour, double undefData, java.util.List<Border> borders, int[][] S1)Tracing contour lines from the grid data with undefine datastatic java.util.List<Polygon>tracingPolygons(double[][] S0, java.util.List<PolyLine> cLineList, java.util.List<Border> borderList, double[] contour)Tracing polygons from contour lines and bordersstatic java.util.List<PolyLine>tracingStreamline(double[][] U, double[][] V, double[] X, double[] Y, double UNDEF, int density)Tracing stream lines
-
-
-
方法详细资料
-
getVersion
public static java.lang.String getVersion()
Get version- 返回:
- Version
-
tracingContourLines
public static java.util.List<PolyLine> tracingContourLines(double[][] S0, double[] X, double[] Y, int nc, double[] contour, double undefData, java.util.List<Border> borders, int[][] S1)
Tracing contour lines from the grid data with undefine data- 参数:
S0- input grid dataX- X coordinate arrayY- Y coordinate arraync- number of contour valuescontour- contour value arrayundefData- Undefine databorders- bordersS1- data flag array- 返回:
- Contour line list
-
tracingBorders
public static java.util.List<Border> tracingBorders(double[][] S0, double[] X, double[] Y, int[][] S1, double undefData)
Tracing contour borders of the grid data with undefined data. Grid data are from left to right and from bottom to top. Grid data array: first dimention is Y, second dimention is X.- 参数:
S0- input grid dataX- x coordinate arrayY- y coordinate arrayS1- data flag arrayundefData- undefine data- 返回:
- borderline list
-
cutContourWithPolygon
public static java.util.List<PolyLine> cutContourWithPolygon(java.util.List<PolyLine> alinelist, java.util.List<PointD> polyList)
Cut contour lines with a polygon. Return the polylines inside of the polygon- 参数:
alinelist- polyline listpolyList- border points of the cut polygon- 返回:
- Inside Polylines after cut
-
cutContourLines
public static java.util.List<PolyLine> cutContourLines(java.util.List<PolyLine> alinelist, Border aBorder)
Cut contour lines with a polygon. Return the polylines inside of the polygon- 参数:
alinelist- polyline listaBorder- border for clipping- 返回:
- inside plylines after clipping
-
smoothLines
public static java.util.List<PolyLine> smoothLines(java.util.List<PolyLine> aLineList)
Smooth polylines- 参数:
aLineList- polyline list- 返回:
- polyline list after smoothing
-
smoothPoints
public static java.util.List<PointD> smoothPoints(java.util.List<PointD> pointList)
Smooth points- 参数:
pointList- point list- 返回:
- smoothed point list
-
tracingPolygons
public static java.util.List<Polygon> tracingPolygons(double[][] S0, java.util.List<PolyLine> cLineList, java.util.List<Border> borderList, double[] contour)
Tracing polygons from contour lines and borders- 参数:
S0- input grid datacLineList- contour linesborderList- borderscontour- contour values- 返回:
- traced contour polygons
-
createCutContourPolygons
public static java.util.List<Polygon> createCutContourPolygons(java.util.List<PolyLine> LineList, java.util.List<PointD> polyList, Extent aBound, double[] contour)
Create polygons from cutted contour lines- 参数:
LineList- polylinespolyList- border point listaBound- extentcontour- contour values- 返回:
- contour polygons
-
pointInPolygon
public static boolean pointInPolygon(java.util.List<PointD> poly, PointD aPoint)
Judge if a point is in a polygon- 参数:
poly- polygon borderaPoint- point- 返回:
- if the point is in the polygon
-
pointInPolygon
public static boolean pointInPolygon(Polygon aPolygon, PointD aPoint)
Judge if a point is in a polygon- 参数:
aPolygon- polygonaPoint- point- 返回:
- if the point is in the polygon
-
clipPolylines
public static java.util.List<PolyLine> clipPolylines(java.util.List<PolyLine> polylines, java.util.List<PointD> clipPList)
Clip polylines with a border polygon- 参数:
polylines- polyline listclipPList- clipping border point list- 返回:
- clipped polylines
-
clipPolygons
public static java.util.List<Polygon> clipPolygons(java.util.List<Polygon> polygons, java.util.List<PointD> clipPList)
Clip polygons with a border polygon- 参数:
polygons- polygon listclipPList- clipping border point list- 返回:
- clipped polygons
-
tracingStreamline
public static java.util.List<PolyLine> tracingStreamline(double[][] U, double[][] V, double[] X, double[] Y, double UNDEF, int density)
Tracing stream lines- 参数:
U- U component arrayV- V component arrayX- X coordinate arrayY- Y coordinate arrayUNDEF- undefine datadensity- stream line density- 返回:
- streamlines
-
isClockwise
public static boolean isClockwise(java.util.List<PointD> pointList)
Determine if the point list is clockwise- 参数:
pointList- point list- 返回:
- is or not clockwise
-
-