Package-level declarations

Types

Link copied to clipboard
abstract class AbstractMilStd2525Placemark(symbolID: String, position: Position, symbolModifiers: Map<String, String>?, symbolAttributes: Map<String, String>?, lodSelector: Placemark.LevelOfDetailSelector) : Placemark

Constructs a MIL-STD-2525 Placemark with an appropriate level of detail for the current distance from the camera. Shared low-fidelity images are used when far away from the camera, whereas unique high-fidelity images are used when near the camera. The high-fidelity images that are no longer in view are automatically freed, if necessary, to release memory resources.

Link copied to clipboard
abstract class AbstractMilStd2525TacticalGraphic(symbolID: String, boundingSector: Sector, modifiers: Map<String, String>?, attributes: Map<String, String>?) : AbstractSurfaceRenderable, Highlightable
Link copied to clipboard
external object AffiliationColors : JsAny

Default Affiliation Colors for the symbols

Link copied to clipboard
external class AffineTransform : JsAny
Link copied to clipboard
external class BasicStroke : Stroke
Canvg
Link copied to clipboard
external class Canvg

SVG renderer on canvas.

external class Canvg : JsAny

SVG renderer on canvas.

Link copied to clipboard
external class clsRenderer : JsAny

Rendering class

Link copied to clipboard
external class Color : JsAny

Integer based Color class with utility functions

Link copied to clipboard
external class DistanceUnit : JsAny
Link copied to clipboard
typealias double = Number
typealias double = Double
Link copied to clipboard
external class DrawRules : JsAny

Draw Rules for Control Measures

Link copied to clipboard
external class ErrorLogger : JsAny

Error Logging class for Renderer

Link copied to clipboard
typealias float = Number
typealias float = Double
Link copied to clipboard
external class Font : JsAny
Link copied to clipboard
external class FontMetrics : JsAny
Link copied to clipboard
external class FontRenderContext : JsAny
Link copied to clipboard
external class GENCLookup : JsAny

Utility class that takes the 3 digit country code from the symbol ID and returns the 3 character string representation of that country. For example, 840 turns into "USA" for the United States.

Link copied to clipboard
external class Graphics2D : JsAny
Link copied to clipboard
typealias int = Number
typealias int = Double
Link copied to clipboard
external interface IPointConversion : JsAny

Interface for Point Conversion objects. Recommend using the functions that take and return Point2D objects.

Link copied to clipboard
external interface JsMap : JsAny
Link copied to clipboard
external class Line2D : JsAny
Link copied to clipboard
external class LogLevel : JsAny

Port of java.util.logging.Level class

Link copied to clipboard
actual object MilStd2525

This utility class generates MIL-STD-2525 symbols and tactical graphics using the MIL-STD-2525 Symbol Rendering Library

actual object MilStd2525

This utility class generates MIL-STD-2525 symbols and tactical graphics using the MIL-STD-2525 Symbol Rendering Library

expect object MilStd2525
actual object MilStd2525

Generates MIL-STD-2525 point symbols using the MIL-STD-2525 Symbol Rendering Library, reached through the per-target MilStd2525Renderer seam (so this class lives in webMain while the generated mil-sym-ts / canvg bindings stay per-target).

Link copied to clipboard

The MilStd2525LevelOfDetailSelector determines which set of PlacemarkAttributes to use for a MilStd2525Placemark. A MilStd2525Placemark creates an instance of this class in its constructor, and calls Placemark.LevelOfDetailSelector.selectLevelOfDetail in its Placemark.doRender method.

Link copied to clipboard
class MilStd2525ModifierImage(val position: Position, val canvas: HTMLCanvasElement, val text: String?, val angle: Angle) : MilStd2525Shape

A modifier rendered as a rasterized image (e.g. a fill glyph) anchored at position.

Link copied to clipboard
class MilStd2525ModifierLabel(val position: Position, val text: String?, val angle: Angle, val textColor: Color?, val idealOutlineColor: Color?, val mpLabelFont: Font) : MilStd2525Shape

A modifier rendered as a text label anchored at position, styled with the MP-label font.

Link copied to clipboard
actual open class MilStd2525Placemark(symbolID: String, position: Position, symbolModifiers: Map<String, String>?, symbolAttributes: Map<String, String>?, lodSelector: Placemark.LevelOfDetailSelector) : AbstractMilStd2525Placemark

Constructs a MIL-STD-2525 Placemark with an appropriate level of detail for the current distance from the camera. Shared low-fidelity images are used when far away from the camera, whereas unique high-fidelity images are used when near the camera. The high-fidelity images that are no longer in view are automatically freed, if necessary, to release memory resources. The Placemark's symbol is lazily created (and recreated if necessary) via an ImageSource.ImageFactory. See the MilStd2525Placemark.getPlacemarkAttributes for more information about resource caching/sharing and the bitmap factory.

actual open class MilStd2525Placemark(symbolID: String, position: Position, symbolModifiers: Map<String, String>?, symbolAttributes: Map<String, String>?, lodSelector: Placemark.LevelOfDetailSelector) : AbstractMilStd2525Placemark

Constructs a MIL-STD-2525 Placemark with an appropriate level of detail for the current distance from the camera. Shared low-fidelity images are used when far away from the camera, whereas unique high-fidelity images are used when near the camera. The high-fidelity images that are no longer in view are automatically freed, if necessary, to release memory resources. See the MilStd2525Placemark.getPlacemarkAttributes for more information about resource caching/sharing.

expect open class MilStd2525Placemark(symbolID: String, position: Position, symbolModifiers: Map<String, String>? = null, symbolAttributes: Map<String, String>? = null, lodSelector: Placemark.LevelOfDetailSelector = MilStd2525LevelOfDetailSelector()) : AbstractMilStd2525Placemark
actual open class MilStd2525Placemark(symbolID: String, position: Position, symbolModifiers: Map<String, String>?, symbolAttributes: Map<String, String>?, lodSelector: Placemark.LevelOfDetailSelector) : AbstractMilStd2525Placemark

Constructs a MIL-STD-2525 Placemark with an appropriate level of detail for the current distance from the camera. Shared low-fidelity images are used when far away from the camera, whereas unique high-fidelity images are used when near the camera. The high-fidelity images that are no longer in view are automatically freed, if necessary, to release memory resources. See the MilStd2525Placemark.getPlacemarkAttributes for more information about resource caching/sharing.

Link copied to clipboard
class MilStd2525Polyline(val polylines: List<List<Position>>, val lineWidth: Float, val lineColor: Color?, val fillColor: Color?, val idealOutlineColor: Color?, val dashFactor: Int?, val patternFillCanvas: HTMLCanvasElement?) : MilStd2525Shape

A poly-line / filled shape: its (geo-converted) poly-lines plus the resolved stroke/fill styling.

Link copied to clipboard

Target-agnostic facade over the per-target mil-sym-ts (C5Ren) + canvg bindings, expressed in plain Kotlin / DOM types only, so the WorldWind-facing point-symbol code (MilStd2525, MilStd2525Placemark) can live in webMain while the generated @JsModule externs (C5Ren / C5RenTypes / Canvg) stay per-target behind this seam.

Link copied to clipboard
sealed interface MilStd2525Shape

Target-agnostic projection of one mil-sym multipoint ShapeInfo, produced by MilStd2525Renderer.renderTacticalGraphic. The per-target adapter does all the C5Ren work — building the MilStdSymbol, running the renderer, converting pixels→geo, colours, and the ideal-outline / MP-label font — and emits these plain-Kotlin shapes so MilStd2525TacticalGraphic can turn them into Renderables in webMain without touching any generated type.

Link copied to clipboard
class MilStd2525Symbol(val canvas: HTMLCanvasElement, val symbolCenterX: Double, val symbolCenterY: Double, val symbolWidth: Double, val symbolHeight: Double)

A rendered point symbol (from MilStd2525Renderer.renderSymbol) — the rasterized canvas plus the renderer's symbol-center offset and symbol-bounds size (already coerced to Double, free of any generated number alias). Not a MilStd2525Shape; co-located here as the other renderer-result DTO.

Link copied to clipboard
actual open class MilStd2525TacticalGraphic @JvmOverloads constructor(symbolID: String, locations: List<Location>, boundingSector: Sector, modifiers: Map<String, String>?, attributes: Map<String, String>?) : AbstractMilStd2525TacticalGraphic
actual open class MilStd2525TacticalGraphic @JvmOverloads constructor(symbolID: String, locations: List<Location>, boundingSector: Sector, modifiers: Map<String, String>?, attributes: Map<String, String>?) : AbstractMilStd2525TacticalGraphic
expect open class MilStd2525TacticalGraphic constructor(symbolID: String, locations: List<Location>, boundingSector: Sector = defaultBoundingSector(locations), modifiers: Map<String, String>? = null, attributes: Map<String, String>? = null) : AbstractMilStd2525TacticalGraphic
actual open class MilStd2525TacticalGraphic constructor(symbolID: String, locations: List<Location>, boundingSector: Sector, modifiers: Map<String, String>?, attributes: Map<String, String>?) : AbstractMilStd2525TacticalGraphic
Link copied to clipboard
external class MilStdAttributes : JsAny

Symbol attribute constants

Link copied to clipboard
external class MilStdIconRenderer : JsAny

This class is used for rendering icons that represent the single point graphics in the MilStd 2525. It can also be used for rendering icon previews for multipoint graphics.

Link copied to clipboard
external class MilStdSymbol : JsAny

Object that holds information on how to draw a multipoint symbol after {@link armyc2.c5isr.web.render.WebRenderer#RenderMultiPointAsMilStdSymbol(String, String, String, String, String, String, double, String, Map, Map)} is called.

Link copied to clipboard
external class Modifier2 : JsAny
Link copied to clipboard
external class Modifiers : JsAny

Modifier Constants to be used as keys in the modifiers map

Link copied to clipboard
external class MODrawRules : JsAny

Draw Rules for METEOROLOGICAL AND OCEANOGRAPHIC SYMBOLOGY

Link copied to clipboard
external class MSInfo : JsAny

This class holds information about the MilStd Symbol. Name, geometry, point count, Draw Rule, etc... Can be retrived from {@link MSLookup}.

Link copied to clipboard
external class MSLookup : JsAny

Class that holds all the objects with symbol information

Link copied to clipboard
external class PathIterator : JsAny
Link copied to clipboard
external class Point : JsAny
Link copied to clipboard
external class POINT2 : JsAny
Link copied to clipboard
external class Point2D : JsAny

The Point2D class defines a point representing a location in

Link copied to clipboard
Link copied to clipboard
external class Polygon : JsAny
Link copied to clipboard
external class Rectangle : Shape
Link copied to clipboard
external class Rectangle2D : JsAny
Link copied to clipboard
external class RendererSettings : JsAny

Static class that holds the setting for the JavaRenderer. Allows different parts of the renderer to know what values are being used.

Link copied to clipboard
external class RendererUtilities : JsAny
Link copied to clipboard
external interface SettingsEventListener : JsAny
Link copied to clipboard
external interface Shape : JsAny
Link copied to clipboard
external class Shape2 : ShapeInfo
Link copied to clipboard
open external class ShapeInfo : JsAny

Holds information on how to draw the pieces of a multipoint symbol. Can be retrieved from {@link MilStdSymbol#getSymbolShapes()} and {@link MilStdSymbol#getModifierShapes()} after {@link armyc2.c5isr.web.render.WebRenderer#RenderMultiPointAsMilStdSymbol(String, String, String, String, String, String, double, String, Map, Map)} is called.

Link copied to clipboard
external interface Stroke : JsAny
Link copied to clipboard
external class SVGInfo : JsAny
Link copied to clipboard
external class SVGLookup : JsAny
Link copied to clipboard
Link copied to clipboard
external interface SymbolDimensionInfo : JsAny
Link copied to clipboard
external class SymbolID : JsAny

Utility class for helping to parse out parts of the symbol ID.

Link copied to clipboard
external class SymbolUtilities : JsAny

Has various utility functions for prcessing the symbol code. See {@link SymbolID} for additional functions related to parsing the symbol code.

Link copied to clipboard
external class TextLayout : JsAny
Link copied to clipboard
external class TexturePaint : JsAny
Link copied to clipboard
external class TGLight : JsAny
Link copied to clipboard
actual external class WeakRef<T : Any>(element: T)

js actual: the native JS WeakRef (object identity, true weak semantics).

actual class WeakRef<T : Any>(element: T)

wasm actual: a JS WeakRef can't reliably hold a Kotlin/Wasm heap object — it must be boxed in a JsReference whose box has no strong holder, so the WeakRef can clear while the boxed object is still in use (premature symbol-cache eviction → re-rasterization). The sole consumer is the bounded MIL-STD-2525 symbol cache, so retain strongly: bounded memory, no premature eviction.

expect class WeakRef<T : Any>(element: T)

A weak reference used by the MIL-STD-2525 symbol cache so unused earth.worldwind.shape.PlacemarkAttributes bundles can be reclaimed. js uses a native JS WeakRef; wasm retains strongly (a JS WeakRef can't reliably hold a Kotlin/Wasm heap object — see the wasm actual), which is sound because the cache is bounded to the finite set of MIL-STD symbol codes.

Link copied to clipboard
external class WebRenderer : JsAny

Main class for rendering multi-point graphics such as Control Measures, Atmospheric, and Oceanographic.

Functions

Link copied to clipboard
external fun initialize(location: String = definedExternally): Promise<JsAny?>

Loads files needed by the renderer and initializes its data. Required call before any rendering. Must wait for the returned promise to resolve before any rendering.

Link copied to clipboard
external fun isReady(): Boolean

Returns true if renderer files are loaded and initialized.