Package RenderMultipoints
Class clsRenderer
java.lang.Object
RenderMultipoints.clsRenderer
Rendering class
- Author:
- Michael Deutch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ArmyC2.C2SD.Utilities.MilStdSymbolcreateMilStdSymboFromTGLight(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter) Create MilStdSymbol from tactical graphicstatic TGLightcreateTGLightFromMilStdSymbol(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter) Build a tactical graphic object from the client MilStdSymbolstatic TGLightcreateTGLightFromMilStdSymbol(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter, Boolean computeChannelPt) Deprecated.@param milStdstatic intsets tactical graphic line type for rev D and belowprotected static doubleCalculates the scale using the converter and the clipbounds and sets overhead wire type based on the scalestatic booleanintersectsClipArea(TGLight tg, ArmyC2.C2SD.Utilities.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 voidrender(ArmyC2.C2SD.Utilities.MilStdSymbol symbol, ArmyC2.C2SD.Utilities.IPointConversion converter) Deprecated.Render the symbol and set ShapeInfo data in the client symolstatic voidrender(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipBounds) public render function transferred from JavaLineArrayCPOF project.static voidrender(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, Object clipBounds) Generic tester button says Tiger or use JavaRendererSample.static voidrender(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, Rectangle2D clipBounds) Deprecated.public render function added primarily for METOCs because at the time cannot instantiate a MilStdSymbol from a METOC symbol code other than that it is identical to the same named function that takes mss as the 1st parameterstatic voidrender_GE(TGLight tg, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipArea) Generic Tester says Tiger but use right mouse down.static voidrender_Shape(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion ipc, Object clipArea, int shapeType, Color lineColor, Color fillColor, int hatch) creates a shape for known symbols.static voidrender_TG(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos) Deprecated.Added this public interface so that TestJavaLineArray can test the general clientstatic voidrenderWithPolylines(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipArea) GoogleEarth renderer uses polylines for renderingstatic voidRev D symbols
-
Constructor Details
-
clsRenderer
public clsRenderer()
-
-
Method Details
-
createMilStdSymboFromTGLight
public static ArmyC2.C2SD.Utilities.MilStdSymbol createMilStdSymboFromTGLight(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter) Create MilStdSymbol from tactical graphic- Parameters:
tg- tactical graphicconverter- geographic to pixels to converter- Returns:
- MilstdSymbol object
-
getRevDLinetype
sets tactical graphic line type for rev D and below- Parameters:
tg-
-
createTGLightFromMilStdSymbol
public static TGLight createTGLightFromMilStdSymbol(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.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(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.IPointConversion converter, Boolean computeChannelPt) Deprecated.@param milStd- Parameters:
converter-computeChannelPt-- Returns:
-
render
public static void render(ArmyC2.C2SD.Utilities.MilStdSymbol symbol, ArmyC2.C2SD.Utilities.IPointConversion converter) Deprecated.Render the symbol and set ShapeInfo data in the client symol- Parameters:
symbol-converter-
-
render_TG
public static void render_TG(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos) Deprecated.Added this public interface so that TestJavaLineArray can test the general client- Parameters:
tg- tactical graphicconverter- geographic to pixels converter
-
intersectsClipArea
public static boolean intersectsClipArea(TGLight tg, ArmyC2.C2SD.Utilities.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.- Parameters:
tg-converter-clipArea-- Returns:
-
renderWithPolylines
public static void renderWithPolylines(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.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<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipArea) Generic Tester says Tiger but use right mouse down. Refresh button says SECRenderer or GE. Google Earth renderer tester: Called by TestJavaLineArray thru SECRenderer 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
-
render_Shape
public static void render_Shape(ArmyC2.C2SD.Utilities.MilStdSymbol milStd, ArmyC2.C2SD.Utilities.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-
-
getScale
protected static double getScale(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipBounds) Calculates the scale using the converter and the clipbounds and sets overhead wire type based on the scale- Parameters:
tg-converter-clipBounds-- Returns:
-
render
public static void render(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, Object clipBounds) 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(ArmyC2.C2SD.Utilities.MilStdSymbol mss, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.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:
converter- geographic to pixels convertershapeInfos- ShapeInfo arraymodifierShapeInfos- modifier ShapeInfo arrayclipBounds- clip boundstg- tactical graphic
-
render
public static void render(TGLight tg, ArmyC2.C2SD.Utilities.IPointConversion converter, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> shapeInfos, ArrayList<ArmyC2.C2SD.Utilities.ShapeInfo> modifierShapeInfos, Rectangle2D clipBounds) Deprecated.public render function added primarily for METOCs because at the time cannot instantiate a MilStdSymbol from a METOC symbol code other than that it is identical to the same named function that takes mss as the 1st parameter- Parameters:
tg-converter-shapeInfos-modifierShapeInfos-clipBounds-
-
setTGProperties
Rev D symbols- Parameters:
tg-setA-setB-
-