@armyc2.c5isr.renderer/mil-sym-ts-web 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/armyc2.c5isr.renderer-mil-sym-ts-web-2.2.0.tgz → armyc2.c5isr.renderer-mil-sym-ts-web-2.2.1.tgz} +0 -0
- package/package.json +15 -39
- package/buildNode.bat +0 -2
- package/buildWeb.bat +0 -2
- package/dist/LICENSE +0 -201
- package/dist/README.md +0 -57
- package/dist/package.json +0 -16
- package/index.ts +0 -169
- package/package.bak +0 -50
- package/package.node.json +0 -43
- package/package.pack.json +0 -19
- package/package.packWeb.json +0 -16
- package/package.web.json +0 -40
- package/src/main/ts/android/graphics/Bitmap.ts +0 -7
- package/src/main/ts/android/graphics/Paint.ts +0 -26
- package/src/main/ts/android/graphics/Path.ts +0 -78
- package/src/main/ts/android/graphics/PointF.ts +0 -14
- package/src/main/ts/android/graphics/Rect.ts +0 -18
- package/src/main/ts/android/graphics/RectF.ts +0 -50
- package/src/main/ts/android/graphics/Region.ts +0 -36
- package/src/main/ts/android/graphics/Typeface.ts +0 -11
- package/src/main/ts/armyc2/c5isr/JavaLineArray/BasicShapes.ts +0 -99
- package/src/main/ts/armyc2/c5isr/JavaLineArray/CChannelPoints2.ts +0 -34
- package/src/main/ts/armyc2/c5isr/JavaLineArray/CELineArray.ts +0 -193
- package/src/main/ts/armyc2/c5isr/JavaLineArray/Channels.ts +0 -2971
- package/src/main/ts/armyc2/c5isr/JavaLineArray/DISMSupport.ts +0 -4008
- package/src/main/ts/armyc2/c5isr/JavaLineArray/POINT2.ts +0 -93
- package/src/main/ts/armyc2/c5isr/JavaLineArray/Shape2.ts +0 -89
- package/src/main/ts/armyc2/c5isr/JavaLineArray/TacticalLines.ts +0 -515
- package/src/main/ts/armyc2/c5isr/JavaLineArray/arraysupport.ts +0 -5403
- package/src/main/ts/armyc2/c5isr/JavaLineArray/countsupport.ts +0 -1084
- package/src/main/ts/armyc2/c5isr/JavaLineArray/flot.ts +0 -2173
- package/src/main/ts/armyc2/c5isr/JavaLineArray/lineutility.ts +0 -4934
- package/src/main/ts/armyc2/c5isr/JavaLineArray/ref.ts +0 -7
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/Modifier2.ts +0 -5601
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/P1.ts +0 -14
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/TGLight.ts +0 -648
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsChannelUtility.ts +0 -647
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsMETOC.ts +0 -2994
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsUtility.ts +0 -2663
- package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/mdlGeodesic.ts +0 -669
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipPolygon2.ts +0 -971
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipQuad.ts +0 -871
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer.ts +0 -3507
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer2.ts +0 -500
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtility.ts +0 -1089
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityCPOF.ts +0 -2656
- package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityGE.ts +0 -1419
- package/src/main/ts/armyc2/c5isr/data/genc.json +0 -1407
- package/src/main/ts/armyc2/c5isr/data/msd.json +0 -17311
- package/src/main/ts/armyc2/c5isr/data/mse.json +0 -18500
- package/src/main/ts/armyc2/c5isr/data/svgd.json +0 -31214
- package/src/main/ts/armyc2/c5isr/data/svge.json +0 -30558
- package/src/main/ts/armyc2/c5isr/graphics2d/AffineTransform.ts +0 -10
- package/src/main/ts/armyc2/c5isr/graphics2d/Area.ts +0 -437
- package/src/main/ts/armyc2/c5isr/graphics2d/BasicStroke.ts +0 -429
- package/src/main/ts/armyc2/c5isr/graphics2d/BasicTypes.ts +0 -7
- package/src/main/ts/armyc2/c5isr/graphics2d/BufferedImage.ts +0 -35
- package/src/main/ts/armyc2/c5isr/graphics2d/Font.ts +0 -111
- package/src/main/ts/armyc2/c5isr/graphics2d/FontMetrics.ts +0 -29
- package/src/main/ts/armyc2/c5isr/graphics2d/FontRenderContext.ts +0 -18
- package/src/main/ts/armyc2/c5isr/graphics2d/GeneralPath.ts +0 -211
- package/src/main/ts/armyc2/c5isr/graphics2d/Graphics2D.ts +0 -80
- package/src/main/ts/armyc2/c5isr/graphics2d/IPathIterator.ts +0 -33
- package/src/main/ts/armyc2/c5isr/graphics2d/ImageIO.ts +0 -16
- package/src/main/ts/armyc2/c5isr/graphics2d/Line2D.ts +0 -726
- package/src/main/ts/armyc2/c5isr/graphics2d/PathIterator.ts +0 -141
- package/src/main/ts/armyc2/c5isr/graphics2d/Point.ts +0 -112
- package/src/main/ts/armyc2/c5isr/graphics2d/Point2D.ts +0 -261
- package/src/main/ts/armyc2/c5isr/graphics2d/Polygon.ts +0 -391
- package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle.ts +0 -567
- package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle2D.ts +0 -445
- package/src/main/ts/armyc2/c5isr/graphics2d/Shape.ts +0 -31
- package/src/main/ts/armyc2/c5isr/graphics2d/Stroke.ts +0 -18
- package/src/main/ts/armyc2/c5isr/graphics2d/TextLayout.ts +0 -45
- package/src/main/ts/armyc2/c5isr/graphics2d/TexturePaint.ts +0 -25
- package/src/main/ts/armyc2/c5isr/renderer/IIconRenderer.ts +0 -15
- package/src/main/ts/armyc2/c5isr/renderer/IconRenderer.ts +0 -22
- package/src/main/ts/armyc2/c5isr/renderer/MilStdIconRenderer.ts +0 -269
- package/src/main/ts/armyc2/c5isr/renderer/ModifierRenderer.ts +0 -9882
- package/src/main/ts/armyc2/c5isr/renderer/PatternFillRenderer.ts +0 -146
- package/src/main/ts/armyc2/c5isr/renderer/SinglePointSVGRenderer.ts +0 -1265
- package/src/main/ts/armyc2/c5isr/renderer/shapes/arc.ts +0 -64
- package/src/main/ts/armyc2/c5isr/renderer/shapes/bcurve.ts +0 -95
- package/src/main/ts/armyc2/c5isr/renderer/shapes/ellipse.ts +0 -93
- package/src/main/ts/armyc2/c5isr/renderer/shapes/line.ts +0 -114
- package/src/main/ts/armyc2/c5isr/renderer/shapes/path.ts +0 -555
- package/src/main/ts/armyc2/c5isr/renderer/shapes/pathiterator.ts +0 -62
- package/src/main/ts/armyc2/c5isr/renderer/shapes/point.ts +0 -120
- package/src/main/ts/armyc2/c5isr/renderer/shapes/rectangle.ts +0 -431
- package/src/main/ts/armyc2/c5isr/renderer/shapes/roundedrectangle.ts +0 -99
- package/src/main/ts/armyc2/c5isr/renderer/shapes/types.ts +0 -25
- package/src/main/ts/armyc2/c5isr/renderer/shapes/utilities.ts +0 -203
- package/src/main/ts/armyc2/c5isr/renderer/utilities/AffiliationColors.ts +0 -104
- package/src/main/ts/armyc2/c5isr/renderer/utilities/Color.ts +0 -481
- package/src/main/ts/armyc2/c5isr/renderer/utilities/DistanceUnit.ts +0 -40
- package/src/main/ts/armyc2/c5isr/renderer/utilities/DrawRules.ts +0 -1323
- package/src/main/ts/armyc2/c5isr/renderer/utilities/EntityCode.ts +0 -51
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ErrorLogger.ts +0 -736
- package/src/main/ts/armyc2/c5isr/renderer/utilities/GENCLookup.ts +0 -106
- package/src/main/ts/armyc2/c5isr/renderer/utilities/GeoPixelConversion3D.ts +0 -84
- package/src/main/ts/armyc2/c5isr/renderer/utilities/IMultiPointRenderer.ts +0 -87
- package/src/main/ts/armyc2/c5isr/renderer/utilities/IPointConversion.ts +0 -34
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ImageInfo.ts +0 -324
- package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUCache.ts +0 -127
- package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUEntry.ts +0 -18
- package/src/main/ts/armyc2/c5isr/renderer/utilities/LogLevel.ts +0 -111
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MODrawRules.ts +0 -219
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MSInfo.ts +0 -1008
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MSLookup.ts +0 -882
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdAttributes.ts +0 -380
- package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdSymbol.ts +0 -797
- package/src/main/ts/armyc2/c5isr/renderer/utilities/Modifiers.ts +0 -1699
- package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversion.ts +0 -178
- package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversionDummy.ts +0 -45
- package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConverter3D.ts +0 -126
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RectUtilities.ts +0 -118
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererException.ts +0 -11
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererSettings.ts +0 -1201
- package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererUtilities.ts +0 -591
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGInfo.ts +0 -29
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGLookup.ts +0 -753
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGSymbolInfo.ts +0 -137
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGTextInfo.ts +0 -438
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEvent.ts +0 -19
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEventListener.ts +0 -10
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsEventListener.ts +0 -5
- package/src/main/ts/armyc2/c5isr/renderer/utilities/Shape2SVG.ts +0 -404
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeInfo.ts +0 -525
- package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeUtilities.ts +0 -55
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolDimensionInfo.ts +0 -36
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolID.ts +0 -1055
- package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolUtilities.ts +0 -2085
- package/src/main/ts/armyc2/c5isr/renderer/utilities/TextInfo.ts +0 -157
- package/src/main/ts/armyc2/c5isr/web/render/GeoPixelConversion.ts +0 -86
- package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandler.ts +0 -3798
- package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandlerSVG.ts +0 -412
- package/src/main/ts/armyc2/c5isr/web/render/PointConverter.ts +0 -124
- package/src/main/ts/armyc2/c5isr/web/render/SymbolModifiers.ts +0 -26
- package/src/main/ts/armyc2/c5isr/web/render/WebRenderer.ts +0 -677
- package/src/main/ts/armyc2/c5isr/web/render/utilities/JavaRendererUtilities.ts +0 -484
- package/src/main/ts/armyc2/c5isr/web/render/utilities/LineInfo.ts +0 -62
- package/src/main/ts/armyc2/c5isr/web/render/utilities/SymbolInfo.ts +0 -46
- package/src/main/ts/armyc2/c5isr/web/render/utilities/TextInfo.ts +0 -51
- package/src/main/ts/org/gavaghan/geodesy/Angle.ts +0 -31
- package/src/main/ts/org/gavaghan/geodesy/Ellipsoid.ts +0 -71
- package/src/main/ts/org/gavaghan/geodesy/GeodeticCalculator.ts +0 -200
- package/src/main/ts/org/gavaghan/geodesy/GeodeticCurve.ts +0 -55
- package/src/main/ts/org/gavaghan/geodesy/GeodeticMeasurement.ts +0 -68
- package/src/main/ts/org/gavaghan/geodesy/GlobalCoordinates.ts +0 -103
- package/src/main/ts/org/gavaghan/geodesy/GlobalPosition.ts +0 -90
- package/test/ExportSPImages.js +0 -692
- package/test/MPWW.html +0 -556
- package/test/MPWorker.js +0 -318
- package/test/SPWorker.js +0 -233
- package/test/SVGWW.html +0 -363
- package/test/singlePointTester3.html +0 -751
- package/tsconfig.json +0 -54
- package/typedoc.json +0 -30
- package/updateVersion.js +0 -21
- package/webpack.config.js +0 -34
- package/webpackn.config.js +0 -28
- package/webpackr.config.js +0 -47
- package/webpackw.config.js +0 -23
- /package/{dist/C5Ren.d.ts → C5Ren.d.ts} +0 -0
- /package/{dist/C5Ren.js → C5Ren.js} +0 -0
- /package/{dist/C5Ren.js.map → C5Ren.js.map} +0 -0
- /package/{dist/manifest.json → manifest.json} +0 -0
|
@@ -1,797 +0,0 @@
|
|
|
1
|
-
import { type int, type double, } from "../../graphics2d/BasicTypes";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Point2D } from "../../graphics2d/Point2D"
|
|
5
|
-
import { TexturePaint } from "../../graphics2d/TexturePaint"
|
|
6
|
-
import { Color } from "../../renderer/utilities/Color"
|
|
7
|
-
import { DistanceUnit } from "../../renderer/utilities/DistanceUnit"
|
|
8
|
-
import { ErrorLogger } from "../../renderer/utilities/ErrorLogger"
|
|
9
|
-
import { Modifiers } from "../../renderer/utilities/Modifiers"
|
|
10
|
-
import { RendererSettings } from "../../renderer/utilities/RendererSettings"
|
|
11
|
-
import { ShapeInfo } from "../../renderer/utilities/ShapeInfo"
|
|
12
|
-
import { SymbolUtilities } from "../../renderer/utilities/SymbolUtilities"
|
|
13
|
-
import { AffiliationColors } from "./AffiliationColors";
|
|
14
|
-
import { RendererUtilities } from "./RendererUtilities";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 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.
|
|
19
|
-
*/
|
|
20
|
-
export class MilStdSymbol {
|
|
21
|
-
|
|
22
|
-
//private SymbolDef _symbolDefinition;
|
|
23
|
-
//private UnitDef _unitDefinition;
|
|
24
|
-
/**
|
|
25
|
-
* modifiers
|
|
26
|
-
*/
|
|
27
|
-
private _Properties: Map<string, string> = null;
|
|
28
|
-
|
|
29
|
-
//for tactical graphics
|
|
30
|
-
private _X_Altitude: Array<number> = null;
|
|
31
|
-
private _AM_Distance: Array<number> = null;
|
|
32
|
-
private _AN_Azimuth: Array<number> = null;
|
|
33
|
-
|
|
34
|
-
private _symbolID: string = "";
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* unique ID for this symbol, for client use
|
|
38
|
-
*/
|
|
39
|
-
private _UUID: string = "";
|
|
40
|
-
|
|
41
|
-
private _SymbolShapes: Array<ShapeInfo> = null;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* collection of shapes for the modifiers
|
|
45
|
-
*/
|
|
46
|
-
private _ModifierShapes: Array<ShapeInfo> = null;
|
|
47
|
-
|
|
48
|
-
private _Coordinates: Array<Point2D> = null;
|
|
49
|
-
|
|
50
|
-
private _UnitSize: int = 50;
|
|
51
|
-
private _scale: double = 0;
|
|
52
|
-
private _KeepUnitRatio: boolean = true;
|
|
53
|
-
|
|
54
|
-
protected _LineWidth: number = 3;
|
|
55
|
-
protected _LineColor: Color = null;
|
|
56
|
-
protected _FillColor: Color = null;
|
|
57
|
-
protected _TextColor: Color = null;
|
|
58
|
-
protected _TextBackgroundColor: Color = null;
|
|
59
|
-
|
|
60
|
-
protected _Rotation: double = 0.0;//DEGREES
|
|
61
|
-
|
|
62
|
-
//outline singlepoint TGs
|
|
63
|
-
protected _Outline: boolean = false;
|
|
64
|
-
//if null, renderer determines outline Color.
|
|
65
|
-
protected _OutLineColor: Color;
|
|
66
|
-
protected _OutLineWidth: int = 0;
|
|
67
|
-
protected _tp: TexturePaint;
|
|
68
|
-
protected _fs: boolean = true;
|
|
69
|
-
|
|
70
|
-
protected _patternFillType: int = 0;
|
|
71
|
-
|
|
72
|
-
private patternScale: double = 1;
|
|
73
|
-
|
|
74
|
-
private static _AltitudeMode: string = "";
|
|
75
|
-
|
|
76
|
-
private static _AltitudeUnit: DistanceUnit;
|
|
77
|
-
|
|
78
|
-
private static _DistanceUnit: DistanceUnit;
|
|
79
|
-
|
|
80
|
-
private static _useDashArray: boolean = true;
|
|
81
|
-
|
|
82
|
-
private static _hideOptionalLabels: boolean = false;
|
|
83
|
-
|
|
84
|
-
private static _DrawAffiliationModifierAsLabel: boolean = true;
|
|
85
|
-
|
|
86
|
-
private static _UseLineInterpolation: boolean = false;
|
|
87
|
-
|
|
88
|
-
protected _Tag: any;
|
|
89
|
-
|
|
90
|
-
/*
|
|
91
|
-
* Used to hold metadata for each segment of the symbol for multi-point
|
|
92
|
-
* symbols. Each segment can contain one object.
|
|
93
|
-
*/
|
|
94
|
-
//private Map _segmentData;
|
|
95
|
-
// Constants for dynamic properties
|
|
96
|
-
/*
|
|
97
|
-
public static final String SYMBOL_ID = "Symbol ID";
|
|
98
|
-
//public static final String SOURCE = "Source";
|
|
99
|
-
//public static final String EDITOR_CLASS_TYPE = "Editor Class Type";
|
|
100
|
-
public static final String URN = "URN";
|
|
101
|
-
public static final String UIC = "UIC";
|
|
102
|
-
public static final String ANGLE_OF_ROTATION = "Angle of Rotation";
|
|
103
|
-
public static final String LENGTH = "Length";
|
|
104
|
-
public static final String WIDTH = "Width";
|
|
105
|
-
public static final String RADIUS = "Radius";
|
|
106
|
-
public static final String SEGMENT_DATA = "Segment Data";
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
/*
|
|
110
|
-
public static final String GEO_POINT = "point";
|
|
111
|
-
public static final String GEO_LINE = "line";
|
|
112
|
-
public static final String GEO_POLYGON = "area";
|
|
113
|
-
public static final String GEO_TEXT = "text";
|
|
114
|
-
public static final String GEO_CIRCLE = "circle";
|
|
115
|
-
public static final String GEO_RECTANGLE = "rectangle";
|
|
116
|
-
public static final String GEO_ARC = "arc";
|
|
117
|
-
public static final String GEO_SQUARE = "square";
|
|
118
|
-
*/
|
|
119
|
-
/*
|
|
120
|
-
private static final String _COORDINATES = "Coordinates";
|
|
121
|
-
private static final String _GEOMETRY = "Geometry";
|
|
122
|
-
private static final String _FILL_COLOR = "Fill Color";
|
|
123
|
-
private static final String _FILL_ALPHA = "Fill Alpha";
|
|
124
|
-
private static final String _FILL_STYLE = "Fill Style";
|
|
125
|
-
private static final String _LINE_WIDTH = "Line Width";
|
|
126
|
-
private static final String _LINE_COLOR = "Line Color";
|
|
127
|
-
private static final String _LINE_ALPHA = "Line Alpha";
|
|
128
|
-
private static final String _TEXT_BACKGROUND_COLOR = "Background Color";
|
|
129
|
-
private static final String _TEXT_FOREGROUND_COLOR = "Foreground Color";
|
|
130
|
-
private static final String _USE_FILL = "Use Fill";
|
|
131
|
-
*/
|
|
132
|
-
/*
|
|
133
|
-
protected static const _COORDINATES:String = "Coordinates";
|
|
134
|
-
protected static const _GEOMETRY:String = "Geometry";
|
|
135
|
-
protected static const _FILL_COLOR:String = "Fill Color";
|
|
136
|
-
protected static const _FILL_ALPHA:String = "Fill Alpha";
|
|
137
|
-
private int _FILL_STYLE:String = "Fill Style";
|
|
138
|
-
protected static const _LINE_WIDTH:String = 0;
|
|
139
|
-
private Color _LINE_COLOR = Color.BLACK;
|
|
140
|
-
private int _LINE_ALPHA:String = 0;
|
|
141
|
-
private Color _TEXT_BACKGROUND_COLOR = Color.WHITE;
|
|
142
|
-
private Color _TEXT_FOREGROUND_COLOR = Color.BLACK;
|
|
143
|
-
private bool _USE_FILL:String = "Use Fill";*/
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
*
|
|
147
|
-
* @param symbolID code, 20-30 digits long that represents the symbol
|
|
148
|
-
* @param uniqueID for the client's use
|
|
149
|
-
* @param modifiers use keys from Modifiers.
|
|
150
|
-
* @param Coordinates {@link ArrayList} of {@link Point2D} coordinates for the symbol
|
|
151
|
-
* @param keepUnitRatio - default TRUE
|
|
152
|
-
* modifiers
|
|
153
|
-
*/
|
|
154
|
-
public constructor(symbolID: string, uniqueID: string, Coordinates: Array<Point2D>, modifiers: Map<string, string>, keepUnitRatio: boolean = true) {
|
|
155
|
-
if (modifiers == null) {
|
|
156
|
-
this._Properties = new Map<string, string>();
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
this._Properties = modifiers;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
this._UUID = uniqueID;
|
|
163
|
-
this.setCoordinates(Coordinates);
|
|
164
|
-
|
|
165
|
-
// Set the given symbol id
|
|
166
|
-
this.setSymbolID(symbolID);
|
|
167
|
-
|
|
168
|
-
// Set up default line fill and text colors
|
|
169
|
-
this.setLineColor(SymbolUtilities.getDefaultLineColor(this._symbolID));
|
|
170
|
-
this.setTextColor(SymbolUtilities.getLineColorOfAffiliation(symbolID));
|
|
171
|
-
//if(SymbolUtilities.isWarfighting(_symbolID))
|
|
172
|
-
if (SymbolUtilities.hasDefaultFill(this._symbolID)) {
|
|
173
|
-
this.setFillColor(SymbolUtilities.getFillColorOfAffiliation(this._symbolID));
|
|
174
|
-
}
|
|
175
|
-
//if(SymbolUtilities.isNBC(_symbolID) && !(SymbolUtilities.isDeconPoint(symbolID)))
|
|
176
|
-
// setFillColor(SymbolUtilities.getFillColorOfAffiliation(_symbolID));
|
|
177
|
-
|
|
178
|
-
MilStdSymbol._DrawAffiliationModifierAsLabel = RendererSettings.getInstance().getDrawAffiliationModifierAsLabel();
|
|
179
|
-
|
|
180
|
-
MilStdSymbol._UseLineInterpolation = RendererSettings.getInstance().getUseLineInterpolation();
|
|
181
|
-
|
|
182
|
-
this._KeepUnitRatio = keepUnitRatio;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
public getFillStyle(): TexturePaint {
|
|
187
|
-
return this._tp;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
public setFillStyle(value: TexturePaint): void {
|
|
191
|
-
this._tp = value;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
public getUseFillPattern(): boolean {
|
|
195
|
-
return this._fs;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
public setUseFillPattern(value: boolean): void {
|
|
199
|
-
this._fs = value;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @deprecated
|
|
204
|
-
*/
|
|
205
|
-
public getPatternFillType(): int {
|
|
206
|
-
return this._patternFillType;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* 0=Solid, 2=ForwardHatch, 3=BackwardHatch, 4=verticalHatch, 5=horizonalHatch, 8=CrossHatch
|
|
211
|
-
* Only affects Basic Shapes. Will not apply to MilStd Symbology so as to not confuse some
|
|
212
|
-
* symbols with others.
|
|
213
|
-
* @param value {@link Integer}
|
|
214
|
-
*
|
|
215
|
-
* @deprecated
|
|
216
|
-
*/
|
|
217
|
-
public setPatternFillType(value: int): void {
|
|
218
|
-
this._patternFillType = value;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
public getAltitudeMode(): string {
|
|
222
|
-
return MilStdSymbol._AltitudeMode;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
public setAltitudeMode(value: string): void {
|
|
226
|
-
MilStdSymbol._AltitudeMode = value;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
public getAltitudeUnit(): DistanceUnit {
|
|
230
|
-
return MilStdSymbol._AltitudeUnit;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
public setAltitudeUnit(unit: DistanceUnit): void {
|
|
234
|
-
MilStdSymbol._AltitudeUnit = unit;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
public getDistanceUnit(): DistanceUnit {
|
|
238
|
-
return MilStdSymbol._DistanceUnit;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
public setDistanceUnit(unit: DistanceUnit): void {
|
|
242
|
-
MilStdSymbol._DistanceUnit = unit;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
public getUseDashArray(): boolean {
|
|
246
|
-
return MilStdSymbol._useDashArray;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
public setUseDashArray(value: boolean): void {
|
|
250
|
-
MilStdSymbol._useDashArray = value;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
public getHideOptionalLabels(): boolean {
|
|
254
|
-
return MilStdSymbol._hideOptionalLabels;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
public setHideOptionalLabels(value: boolean): void {
|
|
258
|
-
MilStdSymbol._hideOptionalLabels = value;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
public setUseLineInterpolation(value: boolean): void {
|
|
262
|
-
MilStdSymbol._UseLineInterpolation = value;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
public getUseLineInterpolation(): boolean {
|
|
266
|
-
return MilStdSymbol._UseLineInterpolation;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
//Set size for area's internal icon (LAA, mine and CBRN areas)
|
|
270
|
-
public setUnitSize(pixelSize: int): void { this._UnitSize = pixelSize; }
|
|
271
|
-
|
|
272
|
-
public getUnitSize(): int { return this._UnitSize; }
|
|
273
|
-
|
|
274
|
-
public setKeepUnitRatio(value: boolean): void { this._KeepUnitRatio = value; }
|
|
275
|
-
|
|
276
|
-
public getKeepUnitRatio(): boolean { return this._KeepUnitRatio; }
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Determines how to draw the Affiliation Modifier. True to draw as modifier
|
|
280
|
-
* label in the "E/F" location. False to draw at the top right corner of the
|
|
281
|
-
* symbol
|
|
282
|
-
* @param value {@link Boolean}
|
|
283
|
-
*
|
|
284
|
-
* @deprecated
|
|
285
|
-
*/
|
|
286
|
-
public setDrawAffiliationModifierAsLabel(value: boolean): void {
|
|
287
|
-
MilStdSymbol._DrawAffiliationModifierAsLabel = value;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* True to draw as modifier label in the "E/F" location. False to draw at
|
|
292
|
-
* the top right corner of the symbol
|
|
293
|
-
* @return {@link Boolean}
|
|
294
|
-
*
|
|
295
|
-
* @deprecated
|
|
296
|
-
*/
|
|
297
|
-
public getDrawAffiliationModifierAsLabel(): boolean {
|
|
298
|
-
return MilStdSymbol._DrawAffiliationModifierAsLabel;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Returns the modifier map for the symbol
|
|
303
|
-
* @return {@link Map}
|
|
304
|
-
*/
|
|
305
|
-
public getModifierMap(): Map<string, string> {
|
|
306
|
-
return this._Properties;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* sets the modifier map for the symbol
|
|
311
|
-
* @param modifiers {@link Map}
|
|
312
|
-
*/
|
|
313
|
-
public setModifierMap(modifiers: Map<string, string>): void {
|
|
314
|
-
this._Properties = modifiers;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Get a modifier value
|
|
319
|
-
* @param modifier {@link Modifiers}
|
|
320
|
-
* @return {@link String}
|
|
321
|
-
*/
|
|
322
|
-
public getModifier(modifier: string): string;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Gets modifier value based on modifier constant and index in array
|
|
326
|
-
* @param modifier {@link Modifiers}
|
|
327
|
-
* @param index {@link Integer} array location, only applicable to AM, AN and X
|
|
328
|
-
* @return {@link String}
|
|
329
|
-
*/
|
|
330
|
-
public getModifier(modifier: string, index: int): string;
|
|
331
|
-
public getModifier(...args: unknown[]): string | null {
|
|
332
|
-
switch (args.length) {
|
|
333
|
-
case 1: {
|
|
334
|
-
const [modifier] = args as [string];
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
if (this._Properties.has(modifier)) {
|
|
338
|
-
return this._Properties.get(modifier);
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
return this.getModifier(modifier, 0);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
break;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
case 2: {
|
|
349
|
-
const [modifier, index] = args as [string, int];
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
if (this._Properties.has(modifier)) {
|
|
353
|
-
return this._Properties.get(modifier);
|
|
354
|
-
}
|
|
355
|
-
else if (modifier === (Modifiers.AM_DISTANCE)
|
|
356
|
-
|| modifier === (Modifiers.AN_AZIMUTH)
|
|
357
|
-
|| modifier === (Modifiers.X_ALTITUDE_DEPTH)) {
|
|
358
|
-
let value: string | null = this.getModifier_AM_AN_X(modifier, index);
|
|
359
|
-
if (value != null && value !== "null" && value !== "") {
|
|
360
|
-
return value;
|
|
361
|
-
}
|
|
362
|
-
else {
|
|
363
|
-
return null;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
else {
|
|
367
|
-
return null;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
break;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
default: {
|
|
374
|
-
throw Error(`Invalid number of arguments`);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Set a modifier value
|
|
382
|
-
* @param modifier {@link Modifiers}
|
|
383
|
-
* @param value {@link String}
|
|
384
|
-
*/
|
|
385
|
-
public setModifier(modifier: string, value: string): void;
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* Modifiers must be added in order. No setting index 2 without first
|
|
389
|
-
* setting index 0 and 1. If setting out of order is attempted, the value
|
|
390
|
-
* will just be added to the end of the list.
|
|
391
|
-
*
|
|
392
|
-
* @param modifier {@link Modifiers}
|
|
393
|
-
* @param value {@link String}
|
|
394
|
-
* @param index {@link Integer}
|
|
395
|
-
*/
|
|
396
|
-
public setModifier(modifier: string, value: string, index: int): void;
|
|
397
|
-
public setModifier(...args: unknown[]): void {
|
|
398
|
-
switch (args.length) {
|
|
399
|
-
case 2: {
|
|
400
|
-
const [modifier, value] = args as [string, string];
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
if (value !== "") {
|
|
404
|
-
if (!(modifier === Modifiers.AM_DISTANCE)
|
|
405
|
-
|| modifier === (Modifiers.AN_AZIMUTH)
|
|
406
|
-
|| modifier === (Modifiers.X_ALTITUDE_DEPTH)) {
|
|
407
|
-
this._Properties.set(modifier, value);
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
this.setModifier(modifier, value, 0);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
case 3: {
|
|
419
|
-
const [modifier, value, index] = args as [string, string, int];
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
if (value !== "") {
|
|
423
|
-
if (!(modifier === (Modifiers.AM_DISTANCE)
|
|
424
|
-
|| modifier === (Modifiers.AN_AZIMUTH)
|
|
425
|
-
|| modifier === (Modifiers.X_ALTITUDE_DEPTH))) {
|
|
426
|
-
this._Properties.set(modifier, value);
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
let dblValue: number = Number.parseFloat(value);
|
|
430
|
-
if (dblValue != null) {
|
|
431
|
-
this.setModifier_AM_AN_X(modifier, dblValue, index);
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
break;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
default: {
|
|
441
|
-
throw Error(`Invalid number of arguments`);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
/**
|
|
448
|
-
* Get modifier value for AM, AN or X
|
|
449
|
-
* @param modifier {@link Modifiers}
|
|
450
|
-
* @param index {@link Integer} array location
|
|
451
|
-
* @return {@link Double}
|
|
452
|
-
*/
|
|
453
|
-
public getModifier_AM_AN_X(modifier: string, index: int): string | null {
|
|
454
|
-
let modifiers: Array<number>;
|
|
455
|
-
if (modifier === (Modifiers.AM_DISTANCE)) {
|
|
456
|
-
modifiers = this._AM_Distance;
|
|
457
|
-
}
|
|
458
|
-
else if (modifier === (Modifiers.AN_AZIMUTH)) {
|
|
459
|
-
modifiers = this._AN_Azimuth;
|
|
460
|
-
}
|
|
461
|
-
else if (modifier === (Modifiers.X_ALTITUDE_DEPTH)) {
|
|
462
|
-
modifiers = this._X_Altitude;
|
|
463
|
-
}
|
|
464
|
-
else {
|
|
465
|
-
return null;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
if (modifiers != null && modifiers.length > index) {
|
|
469
|
-
let value: number = 0;
|
|
470
|
-
value = modifiers[index];
|
|
471
|
-
if (value != null) {
|
|
472
|
-
return value.toString();
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
return null;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
else {
|
|
479
|
-
return null;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
public setModifier_AM_AN_X(modifier: string, value: number, index: int): void {
|
|
484
|
-
if ((modifier === (Modifiers.AM_DISTANCE)
|
|
485
|
-
|| modifier === (Modifiers.AN_AZIMUTH)
|
|
486
|
-
|| modifier === (Modifiers.X_ALTITUDE_DEPTH))) {
|
|
487
|
-
let modifiers: Array<number>;
|
|
488
|
-
if (modifier === (Modifiers.AM_DISTANCE)) {
|
|
489
|
-
if (this._AM_Distance == null) {
|
|
490
|
-
this._AM_Distance = new Array<number>();
|
|
491
|
-
}
|
|
492
|
-
modifiers = this._AM_Distance;
|
|
493
|
-
}
|
|
494
|
-
else if (modifier === (Modifiers.AN_AZIMUTH)) {
|
|
495
|
-
if (this._AN_Azimuth == null) {
|
|
496
|
-
this._AN_Azimuth = new Array<number>();
|
|
497
|
-
}
|
|
498
|
-
modifiers = this._AN_Azimuth;
|
|
499
|
-
}
|
|
500
|
-
else if (modifier === (Modifiers.X_ALTITUDE_DEPTH)) {
|
|
501
|
-
if (this._X_Altitude == null) {
|
|
502
|
-
this._X_Altitude = new Array<number>();
|
|
503
|
-
}
|
|
504
|
-
modifiers = this._X_Altitude;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
if (index + 1 > modifiers.length) {
|
|
508
|
-
modifiers.push(value);
|
|
509
|
-
}
|
|
510
|
-
else {
|
|
511
|
-
modifiers[index] = value;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
public getModifiers_AM_AN_X(modifier: string): Array<number> | null {
|
|
517
|
-
if (modifier === (Modifiers.AM_DISTANCE)) {
|
|
518
|
-
return this._AM_Distance;
|
|
519
|
-
}
|
|
520
|
-
else if (modifier === (Modifiers.AN_AZIMUTH)) {
|
|
521
|
-
return this._AN_Azimuth;
|
|
522
|
-
}
|
|
523
|
-
else if (modifier === (Modifiers.X_ALTITUDE_DEPTH)) {
|
|
524
|
-
return this._X_Altitude;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
return null;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
public setModifiers_AM_AN_X(modifier: string, modifiers: Array<number>): void {
|
|
532
|
-
if (modifier === (Modifiers.AM_DISTANCE)) {
|
|
533
|
-
this._AM_Distance = modifiers;
|
|
534
|
-
}
|
|
535
|
-
else if (modifier === (Modifiers.AN_AZIMUTH)) {
|
|
536
|
-
this._AN_Azimuth = modifiers;
|
|
537
|
-
}
|
|
538
|
-
else if (modifier === (Modifiers.X_ALTITUDE_DEPTH)) {
|
|
539
|
-
this._X_Altitude = modifiers;
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
*
|
|
545
|
-
* @param value {@link Color}
|
|
546
|
-
*/
|
|
547
|
-
public setFillColor(value: Color): void {
|
|
548
|
-
this._FillColor = value;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
*
|
|
553
|
-
* @return {@link Color}
|
|
554
|
-
*/
|
|
555
|
-
public getFillColor(): Color {
|
|
556
|
-
return this._FillColor;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
*
|
|
561
|
-
* @param value {@link Color}
|
|
562
|
-
*/
|
|
563
|
-
public setTextColor(value: Color): void {
|
|
564
|
-
this._TextColor = value;
|
|
565
|
-
if(RendererSettings.getInstance().getTextBackgroundMethod() != RendererSettings.TextBackgroundMethod_NONE && this._TextBackgroundColor == null)
|
|
566
|
-
{
|
|
567
|
-
//If text background enabled and a background color has not been set yet:
|
|
568
|
-
this._TextBackgroundColor = new Color(RendererUtilities.getIdealOutlineColor(this._TextColor));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
*
|
|
574
|
-
* @return {@link Color}
|
|
575
|
-
*/
|
|
576
|
-
public getTextColor(): Color {
|
|
577
|
-
return this._TextColor;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
*
|
|
582
|
-
* @param value {@link Color}
|
|
583
|
-
*/
|
|
584
|
-
public setTextBackgroundColor(value: Color): void {
|
|
585
|
-
this._TextBackgroundColor = value;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
*
|
|
590
|
-
* @return {@link Color}
|
|
591
|
-
*/
|
|
592
|
-
public getTextBackgroundColor(): Color {
|
|
593
|
-
return this._TextBackgroundColor;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
*
|
|
598
|
-
* @param value {@link Integer}
|
|
599
|
-
*/
|
|
600
|
-
public setLineWidth(value: int): void {
|
|
601
|
-
this._LineWidth = value;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
*
|
|
606
|
-
* @return {@link Integer}
|
|
607
|
-
*/
|
|
608
|
-
public getLineWidth(): int {
|
|
609
|
-
return this._LineWidth;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* If value is null or SymbolUtilities.isGreenProtectionGraphic() is true then value is ignored
|
|
614
|
-
*
|
|
615
|
-
* @param value {@link Color}
|
|
616
|
-
*/
|
|
617
|
-
public setLineColor(value: Color | null): void {
|
|
618
|
-
if (SymbolUtilities.isGreenProtectionGraphic(this.getSymbolID())) {
|
|
619
|
-
this._LineColor = AffiliationColors.ObstacleGreen;//new Color(0, 166, 81); // Green from SymbolUtilities.getLineColorOfAffiliation()
|
|
620
|
-
} else if (value != null) {
|
|
621
|
-
this._LineColor = value;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @return {@link Color}
|
|
629
|
-
*/
|
|
630
|
-
public getLineColor(): Color {
|
|
631
|
-
return this._LineColor;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* if null, renderer will use white or black for the outline based on the color
|
|
636
|
-
* of the symbol. Otherwise, it will used the passed color value.
|
|
637
|
-
*
|
|
638
|
-
* @param value {@link Color}
|
|
639
|
-
*/
|
|
640
|
-
public setOutlineColor(value: Color): void {
|
|
641
|
-
this._OutLineColor = value;
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
public getOutlineColor(): Color {
|
|
645
|
-
return this._OutLineColor;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* Extra value for client. defaults to null. Not used for rendering by
|
|
650
|
-
* JavaRenderer
|
|
651
|
-
*
|
|
652
|
-
* @param value {@link Object}
|
|
653
|
-
* @deprecated
|
|
654
|
-
*/
|
|
655
|
-
public setTag(value: any): void {
|
|
656
|
-
this._Tag = value;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Extra value for client. defaults to null. Not used for rendering by
|
|
661
|
-
* JavaRenderer
|
|
662
|
-
*
|
|
663
|
-
* @return {@link Object}
|
|
664
|
-
* @deprecated
|
|
665
|
-
*/
|
|
666
|
-
public getTag(): any {
|
|
667
|
-
return this._Tag;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
*
|
|
672
|
-
* @param value {@link ArrayList}
|
|
673
|
-
*/
|
|
674
|
-
public setCoordinates(value: Array<Point2D>): void {
|
|
675
|
-
this._Coordinates = value;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
/**
|
|
679
|
-
*
|
|
680
|
-
* @return {@link ArrayList}
|
|
681
|
-
*/
|
|
682
|
-
public getCoordinates(): Array<Point2D> {
|
|
683
|
-
return this._Coordinates;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* Shapes that represent the symbol modifiers
|
|
688
|
-
*
|
|
689
|
-
* @param value ArrayList<Shape>
|
|
690
|
-
*/
|
|
691
|
-
public setModifierShapes(value: Array<ShapeInfo>): void {
|
|
692
|
-
this._ModifierShapes = value;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
/**
|
|
696
|
-
* Shapes that represent the symbol modifiers
|
|
697
|
-
*
|
|
698
|
-
* @return {@link ArrayList}
|
|
699
|
-
*/
|
|
700
|
-
public getModifierShapes(): Array<ShapeInfo> {
|
|
701
|
-
return this._ModifierShapes;
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
/**
|
|
705
|
-
* the java shapes that make up the symbol
|
|
706
|
-
*
|
|
707
|
-
* @param value ArrayList<ShapeInfo>
|
|
708
|
-
*/
|
|
709
|
-
public setSymbolShapes(value: Array<ShapeInfo>): void {
|
|
710
|
-
this._SymbolShapes = value;
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* the java shapes that make up the symbol
|
|
715
|
-
*
|
|
716
|
-
* @return {@link ArrayList}
|
|
717
|
-
*/
|
|
718
|
-
public getSymbolShapes(): Array<ShapeInfo> {
|
|
719
|
-
return this._SymbolShapes;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* The Symbol Id of the MilStdSymbol.
|
|
724
|
-
*
|
|
725
|
-
* @return {@link String}
|
|
726
|
-
*/
|
|
727
|
-
public getSymbolID(): string {
|
|
728
|
-
return this._symbolID;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
/**
|
|
732
|
-
* Unique ID of the Symbol. For client use.
|
|
733
|
-
*
|
|
734
|
-
* @return {@link String}
|
|
735
|
-
*/
|
|
736
|
-
public getUUID(): string {
|
|
737
|
-
return this._UUID;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* Unique ID of the Symbol. For client use.
|
|
742
|
-
*
|
|
743
|
-
* @param ID {@link String}
|
|
744
|
-
*/
|
|
745
|
-
public setUUID(ID: string): void {
|
|
746
|
-
this._UUID = ID;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* Sets the Symbol ID for the symbol. Should be a 20-30 digit string from
|
|
751
|
-
* the milstd.
|
|
752
|
-
*
|
|
753
|
-
* @param value {@link String}
|
|
754
|
-
*/
|
|
755
|
-
public setSymbolID(value: string): void {
|
|
756
|
-
|
|
757
|
-
let current: string = this._symbolID;
|
|
758
|
-
|
|
759
|
-
try {
|
|
760
|
-
//set symbolID
|
|
761
|
-
if (value != null && value !== "" && current !== value) {
|
|
762
|
-
this._symbolID = value;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
} catch (e) {
|
|
767
|
-
if (e instanceof Error) {
|
|
768
|
-
// Log Error
|
|
769
|
-
ErrorLogger.LogException("MilStdSymbol", "setSymbolID" + " - Did not fall under TG or FE", e);
|
|
770
|
-
} else {
|
|
771
|
-
throw e;
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
} // End set SymbolID
|
|
775
|
-
private _wasClipped: boolean = false;
|
|
776
|
-
public set_WasClipped(value: boolean): void {
|
|
777
|
-
this._wasClipped = value;
|
|
778
|
-
}
|
|
779
|
-
public get_WasClipped(): boolean {
|
|
780
|
-
return this._wasClipped;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Multipoint features and patterns scale with line width ({@link #getLineWidth()}).
|
|
785
|
-
* {@link #patternScale} is the ratio of how much to increase features and patterns by with line width.
|
|
786
|
-
* default value is 1.0. Can be set with {@link RendererSettings#setPatternScale(double)} and {@link MilStdAttributes#PatternScale}
|
|
787
|
-
* @param scale
|
|
788
|
-
*/
|
|
789
|
-
public setPatternScale(scale: double): void {
|
|
790
|
-
this.patternScale = scale;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
public getPatternScale(): double {
|
|
794
|
-
return this.patternScale;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
}
|