Package armyc2.c5isr.RenderMultipoints
Class clsRenderer
java.lang.Object
armyc2.c5isr.RenderMultipoints.clsRenderer
Rendering class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MilStdSymbol
createMilStdSymboFromTGLight
(TGLight tg, IPointConversion converter) Deprecated.static TGLight
createTGLightFromMilStdSymbol
(MilStdSymbol milStd, IPointConversion converter) Build a tactical graphic object from the client MilStdSymbolstatic TGLight
createTGLightFromMilStdSymbol
(MilStdSymbol milStd, IPointConversion converter, Boolean computeChannelPt) Deprecated.static int
getCMLineType
(int version, int entityCode) static boolean
intersectsClipArea
(TGLight tg, IPointConversion converter, Object clipArea) Added function to handle when coords or display area spans IDL but not both, it prevents the symbol from rendering if the bounding rectangles don't intersect.static void
render
(MilStdSymbol mss, IPointConversion converter, Object clipBounds) public render function transferred from JavaLineArrayCPOF project.static void
render
(MilStdSymbol mss, IPointConversion converter, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, Object clipBounds) Generic tester button says Tiger or use JavaRendererSample.static void
render_GE
(TGLight tg, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, IPointConversion converter, Object clipArea) Google Earth renderer: Called by mapfragment-demo This is the public interface for Google Earth renderer assumes tg.Pixels is filled assumes the caller instantiated the ShapeInfo arraysstatic void
render_GE
(TGLight tg, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, IPointConversion converter, Object clipArea, Context context) Deprecated.context not usedstatic void
render_Shape
(MilStdSymbol milStd, IPointConversion ipc, Object clipArea, int shapeType, Color lineColor, Color fillColor, int hatch) creates a shape for known symbols.static void
renderWithPolylines
(MilStdSymbol mss, IPointConversion converter, Object clipArea) GoogleEarth renderer uses polylines for renderingstatic void
renderWithPolylines
(MilStdSymbol mss, IPointConversion converter, Object clipArea, Context context) Deprecated.context not used
-
Constructor Details
-
clsRenderer
public clsRenderer()
-
-
Method Details
-
createMilStdSymboFromTGLight
Deprecated.Create MilStdSymbol from tactical graphic- Parameters:
tg
- tactical graphicconverter
- geographic to pixels to converter- Returns:
- MilstdSymbol object
-
createTGLightFromMilStdSymbol
public static TGLight createTGLightFromMilStdSymbol(MilStdSymbol milStd, IPointConversion converter) Build a tactical graphic object from the client MilStdSymbol- Parameters:
milStd
- MilstdSymbol objectconverter
- geographic to pixels converter- Returns:
- tactical graphic
-
createTGLightFromMilStdSymbol
public static TGLight createTGLightFromMilStdSymbol(MilStdSymbol milStd, IPointConversion converter, Boolean computeChannelPt) Deprecated.- Parameters:
milStd
-converter
-computeChannelPt
-- Returns:
-
intersectsClipArea
Added function to handle when coords or display area spans IDL but not both, it prevents the symbol from rendering if the bounding rectangles don't intersect.- Parameters:
tg
-converter
-clipArea
-- Returns:
-
renderWithPolylines
public static void renderWithPolylines(MilStdSymbol mss, IPointConversion converter, Object clipArea, Context context) Deprecated.context not used- Parameters:
mss
-converter
-clipArea
-context
-
-
renderWithPolylines
public static void renderWithPolylines(MilStdSymbol mss, IPointConversion converter, Object clipArea) GoogleEarth renderer uses polylines for rendering- Parameters:
mss
- MilStdSymbol objectconverter
- the geographic to pixels coordinate converterclipArea
- the clip bounds
-
render_GE
public static void render_GE(TGLight tg, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, IPointConversion converter, Object clipArea, Context context) Deprecated.context not usedSee render_GE below for comments- Parameters:
tg
-shapeInfos
-modifierShapeInfos
-converter
-clipArea
-context
- test android-gradle
-
render_GE
public static void render_GE(TGLight tg, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, IPointConversion converter, Object clipArea) Google Earth renderer: Called by mapfragment-demo This is the public interface for Google Earth renderer assumes tg.Pixels is filled assumes the caller instantiated the ShapeInfo arrays- Parameters:
tg
- tactical graphicshapeInfos
- symbol ShapeInfo arraymodifierShapeInfos
- modifier ShapeInfo arrayconverter
- geographic to pixels coordinate converterclipArea
- clipping bounds in pixels
-
render_Shape
public static void render_Shape(MilStdSymbol milStd, IPointConversion ipc, Object clipArea, int shapeType, Color lineColor, Color fillColor, int hatch) creates a shape for known symbols. The intent is to use client points for the shape and is intended for use with ellipse. If hatch > 1 it creates 2 shapes one for the hatch pattern, the second one is for the outline.- Parameters:
milStd
-ipc
-clipArea
-shapeType
-lineColor
-fillColor
-hatch
-
-
render
public render function transferred from JavaLineArrayCPOF project. Use this function to replicate CPOF renderer functionality.- Parameters:
mss
- the milStdSymbol objectconverter
- the geographic to pixels coordinate converterclipBounds
- the pixels based clip bounds
-
render
public static void render(MilStdSymbol mss, IPointConversion converter, ArrayList<ShapeInfo> shapeInfos, ArrayList<ShapeInfo> modifierShapeInfos, Object clipBounds) Generic tester button says Tiger or use JavaRendererSample. Generic renderer testers: called by JavaRendererSample and TestJavaLineArray public render function transferred from JavaLineArrayCPOF project. Use this function to replicate CPOF renderer functionality.- Parameters:
mss
-converter
- geographic to pixels convertershapeInfos
- ShapeInfo arraymodifierShapeInfos
- modifier ShapeInfo arrayclipBounds
- clip bounds
-
getCMLineType
-