Package RenderMultipoints
Class clsUtilityGE
java.lang.Object
RenderMultipoints.clsUtilityGE
Utilities require for GoogleEarth functionality
- Author:
- Michael Deutch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Shape2buildHatchFill(TGLight tg, ArmyC2.C2SD.Utilities.ShapeInfo shape, int hatch) protected static voidbuildHatchFills(TGLight tg, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapes) expandPolygon(ArrayList<Point2D> pts, double expand) Assumes a convex polygon for the clipping area.expandPolygon2(ArrayList<Point2D> pts, double expandX, double expandY) Deprecated.use cheap algorithm to expand polygons, works best on regular 4+ sided convex polygons used primarily for expanding the original clipping areas.protected static doublegetZoomFactor(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 voidremoveTrailingPoints(TGLight tg, Object clipArea) removes leading or trailing segments after the points were clippedprotected static booleanreturns true if segment data set for MSR, ASR, Boundaryprotected static voidSetShapeInfosPolylines(TGLight tg, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, Object clipBounds) protected static void
-
Constructor Details
-
clsUtilityGE
public clsUtilityGE()
-
-
Method Details
-
setSplineLinetype
-
SetShapeInfosPolylines
-
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) Deprecated.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-
-
buildHatchFills
-
buildHatchFill
-
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:
-