Companion

object Companion

Functions

Link copied to clipboard

Create MilStdSymbol from tactical graphic

Link copied to clipboard

Build a tactical graphic object from the client MilStdSymbol

fun createTGLightFromMilStdSymbol(milStd: MilStdSymbol, converter: IPointConversion, computeChannelPt: Boolean): TGLight
Link copied to clipboard
fun getCMLineType(version: int, entityCode: int): int
Link copied to clipboard

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.

Link copied to clipboard
fun render(mss: MilStdSymbol, converter: IPointConversion, clipBounds: Rectangle2D?)
fun render(mss: MilStdSymbol, converter: IPointConversion, clipBounds: JsArray<Point2D>?)

public render function transferred from JavaLineArrayCPOF project. Use this function to replicate CPOF renderer functionality.

fun render(mss: MilStdSymbol, converter: IPointConversion, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, clipBounds: Rectangle2D?)
fun render(mss: MilStdSymbol, converter: IPointConversion, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, clipBounds: Rectangle?)
fun render(mss: MilStdSymbol, converter: IPointConversion, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, clipBounds: JsArray<Point2D>?)

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.

Link copied to clipboard
fun render_GE(tg: TGLight, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, converter: IPointConversion, clipArea: Rectangle)
fun render_GE(tg: TGLight, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, converter: IPointConversion, clipArea: Rectangle2D)
fun render_GE(tg: TGLight, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, converter: IPointConversion, clipArea: JsArray<Point2D>)

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

fun render_GE(tg: TGLight, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, converter: IPointConversion, clipArea: Rectangle, g2d: Graphics2D)
fun render_GE(tg: TGLight, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, converter: IPointConversion, clipArea: Rectangle2D, g2d: Graphics2D)
fun render_GE(tg: TGLight, shapeInfos: JsArray<ShapeInfo>, modifierShapeInfos: JsArray<ShapeInfo>, converter: IPointConversion, clipArea: JsArray<Point2D>, g2d: Graphics2D)

See render_GE below for comments

Link copied to clipboard
fun render_Shape(milStd: MilStdSymbol, ipc: IPointConversion, clipArea: Rectangle, shapeType: int, lineColor: Color, fillColor: Color, hatch: int)
fun render_Shape(milStd: MilStdSymbol, ipc: IPointConversion, clipArea: Rectangle2D, shapeType: int, lineColor: Color, fillColor: Color, hatch: int)
fun render_Shape(milStd: MilStdSymbol, ipc: IPointConversion, clipArea: JsArray<Point2D>, shapeType: int, lineColor: Color, fillColor: Color, hatch: int)

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.

Link copied to clipboard

GoogleEarth renderer uses polylines for rendering