MilStd2525

actual object MilStd2525

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

See also

actual object MilStd2525

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

See also

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).

See also

Properties

Link copied to clipboard

Functions

applyTextAttributes
Link copied to clipboard
fun applyTextAttributes(textAttributes: TextAttributes): TextAttributes
fun applyTextAttributes(textAttributes: TextAttributes): TextAttributes
fun applyTextAttributes(textAttributes: TextAttributes)

Apply the renderer's current label-font settings to textAttributes.

Link copied to clipboard
expect fun getUnfilledAttributes(symbolID: String): Map<String, String>
actual fun getUnfilledAttributes(symbolID: String): Map<String, String>
Link copied to clipboard

Initializes the static MIL-STD-2525 symbol renderer. This method must be called one time before calling renderImage().

Link copied to clipboard
actual fun isTacticalGraphic(symbolID: String): Boolean
actual fun isTacticalGraphic(symbolID: String): Boolean
expect fun isTacticalGraphic(symbolID: String): Boolean
actual fun isTacticalGraphic(symbolID: String): Boolean
renderImage
Link copied to clipboard
fun renderImage(symbolCode: String, modifiers: Map<String, String>? = null, attributes: Map<String, String>? = null): ImageInfo?

Creates an MIL-STD-2525 symbol from the specified symbol code, modifiers and attributes.

fun renderImage(symbolCode: String, modifiers: Map<String, String>? = null, attributes: Map<String, String>? = null): ImageInfo?

Creates an MIL-STD-2525 symbol from the specified symbol code, modifiers and attributes.

Link copied to clipboard
fun renderSymbol(symbolCode: String, modifiers: Map<String, String>? = null, attributes: Map<String, String>? = null): MilStd2525Symbol?

Render symbolCode to a canvas + offset geometry (MilStd2525Symbol), or null if nothing was produced.

Link copied to clipboard
fun renderTacticalGraphic(symbolID: String, controlPoints: List<Location>, pointULLon: Double, pointULLat: Double, scale: Double, densityFactor: Float, modifiers: Map<String, String>? = null, attributes: Map<String, String>? = null): List<MilStd2525Shape>

Render a multipoint tactical graphic to a list of target-agnostic MilStd2525Shapes.