Package armyc2.c5isr.RenderMultipoints
Class clsUtilityGE
java.lang.Object
armyc2.c5isr.RenderMultipoints.clsUtilityGE
Utilities require for GoogleEarth functionality
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpandPolygon
(ArrayList<Point2D> pts, double expand) Assumes a convex polygon for the clipping area.expandPolygon2
(ArrayList<Point2D> pts, double expandX, double expandY) use cheap algorithm to expand polygons, works best on regular 4+ sided convex polygons used primarily for expanding the original clipping areas.protected static double
getZoomFactor
(Rectangle2D rect, ArrayList<Point2D> clipPoints, ArrayList<POINT2> pixels) Use clipping rectangle or clip points to build a zoom factor if the client zoomed in after the initial render.protected static void
removeTrailingPoints
(TGLight tg, Object clipArea) removes leading or trailing segments after the points were clippedprotected static boolean
returns true if segment data set for MSR, ASR, Boundaryprotected static void
SetShapeInfosPolylines
(TGLight tg, ArrayList<ShapeInfo> shapeInfos, Object clipBounds) protected static void
-
Constructor Details
-
clsUtilityGE
public clsUtilityGE()
-
-
Method Details
-
setSplineLinetype
-
SetShapeInfosPolylines
protected static void SetShapeInfosPolylines(TGLight tg, ArrayList<ShapeInfo> shapeInfos, Object clipBounds) -
expandPolygon
Assumes a convex polygon for the clipping area. expand the polygon using pixels and a similar algorithm to what flash renderer does for DEPTH AREA- Parameters:
pts
- clipping area to expandexpand
- pixels expansion- Returns:
-
expandPolygon2
protected static ArrayList<Point2D> expandPolygon2(ArrayList<Point2D> pts, double expandX, double expandY) use cheap algorithm to expand polygons, works best on regular 4+ sided convex polygons used primarily for expanding the original clipping areas. After clipping a tactical line against the expanded clipping area, the original clipping area can be used to drop the clip lines- Parameters:
pts
- points to expand, usually a clipping areaexpandX
- X expansion factor, e.g 10% growth would be 1.1expandY
- Y expansion factor- Returns:
- points for the expanded polygon
-
removeTrailingPoints
removes leading or trailing segments after the points were clipped- Parameters:
tg
-clipArea
-
-
segmentColorsSet
returns true if segment data set for MSR, ASR, Boundary- Parameters:
tg
-- Returns:
-
getZoomFactor
protected static double getZoomFactor(Rectangle2D rect, ArrayList<Point2D> clipPoints, ArrayList<POINT2> pixels) Use clipping rectangle or clip points to build a zoom factor if the client zoomed in after the initial render. Multiply the geo segmenting interval by this factor.- Parameters:
rect
-clipPoints
-pixels
-- Returns:
-