@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.
Files changed (168) hide show
  1. 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
  2. package/package.json +15 -39
  3. package/buildNode.bat +0 -2
  4. package/buildWeb.bat +0 -2
  5. package/dist/LICENSE +0 -201
  6. package/dist/README.md +0 -57
  7. package/dist/package.json +0 -16
  8. package/index.ts +0 -169
  9. package/package.bak +0 -50
  10. package/package.node.json +0 -43
  11. package/package.pack.json +0 -19
  12. package/package.packWeb.json +0 -16
  13. package/package.web.json +0 -40
  14. package/src/main/ts/android/graphics/Bitmap.ts +0 -7
  15. package/src/main/ts/android/graphics/Paint.ts +0 -26
  16. package/src/main/ts/android/graphics/Path.ts +0 -78
  17. package/src/main/ts/android/graphics/PointF.ts +0 -14
  18. package/src/main/ts/android/graphics/Rect.ts +0 -18
  19. package/src/main/ts/android/graphics/RectF.ts +0 -50
  20. package/src/main/ts/android/graphics/Region.ts +0 -36
  21. package/src/main/ts/android/graphics/Typeface.ts +0 -11
  22. package/src/main/ts/armyc2/c5isr/JavaLineArray/BasicShapes.ts +0 -99
  23. package/src/main/ts/armyc2/c5isr/JavaLineArray/CChannelPoints2.ts +0 -34
  24. package/src/main/ts/armyc2/c5isr/JavaLineArray/CELineArray.ts +0 -193
  25. package/src/main/ts/armyc2/c5isr/JavaLineArray/Channels.ts +0 -2971
  26. package/src/main/ts/armyc2/c5isr/JavaLineArray/DISMSupport.ts +0 -4008
  27. package/src/main/ts/armyc2/c5isr/JavaLineArray/POINT2.ts +0 -93
  28. package/src/main/ts/armyc2/c5isr/JavaLineArray/Shape2.ts +0 -89
  29. package/src/main/ts/armyc2/c5isr/JavaLineArray/TacticalLines.ts +0 -515
  30. package/src/main/ts/armyc2/c5isr/JavaLineArray/arraysupport.ts +0 -5403
  31. package/src/main/ts/armyc2/c5isr/JavaLineArray/countsupport.ts +0 -1084
  32. package/src/main/ts/armyc2/c5isr/JavaLineArray/flot.ts +0 -2173
  33. package/src/main/ts/armyc2/c5isr/JavaLineArray/lineutility.ts +0 -4934
  34. package/src/main/ts/armyc2/c5isr/JavaLineArray/ref.ts +0 -7
  35. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/Modifier2.ts +0 -5601
  36. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/P1.ts +0 -14
  37. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/TGLight.ts +0 -648
  38. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsChannelUtility.ts +0 -647
  39. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsMETOC.ts +0 -2994
  40. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/clsUtility.ts +0 -2663
  41. package/src/main/ts/armyc2/c5isr/JavaTacticalRenderer/mdlGeodesic.ts +0 -669
  42. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipPolygon2.ts +0 -971
  43. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsClipQuad.ts +0 -871
  44. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer.ts +0 -3507
  45. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsRenderer2.ts +0 -500
  46. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtility.ts +0 -1089
  47. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityCPOF.ts +0 -2656
  48. package/src/main/ts/armyc2/c5isr/RenderMultipoints/clsUtilityGE.ts +0 -1419
  49. package/src/main/ts/armyc2/c5isr/data/genc.json +0 -1407
  50. package/src/main/ts/armyc2/c5isr/data/msd.json +0 -17311
  51. package/src/main/ts/armyc2/c5isr/data/mse.json +0 -18500
  52. package/src/main/ts/armyc2/c5isr/data/svgd.json +0 -31214
  53. package/src/main/ts/armyc2/c5isr/data/svge.json +0 -30558
  54. package/src/main/ts/armyc2/c5isr/graphics2d/AffineTransform.ts +0 -10
  55. package/src/main/ts/armyc2/c5isr/graphics2d/Area.ts +0 -437
  56. package/src/main/ts/armyc2/c5isr/graphics2d/BasicStroke.ts +0 -429
  57. package/src/main/ts/armyc2/c5isr/graphics2d/BasicTypes.ts +0 -7
  58. package/src/main/ts/armyc2/c5isr/graphics2d/BufferedImage.ts +0 -35
  59. package/src/main/ts/armyc2/c5isr/graphics2d/Font.ts +0 -111
  60. package/src/main/ts/armyc2/c5isr/graphics2d/FontMetrics.ts +0 -29
  61. package/src/main/ts/armyc2/c5isr/graphics2d/FontRenderContext.ts +0 -18
  62. package/src/main/ts/armyc2/c5isr/graphics2d/GeneralPath.ts +0 -211
  63. package/src/main/ts/armyc2/c5isr/graphics2d/Graphics2D.ts +0 -80
  64. package/src/main/ts/armyc2/c5isr/graphics2d/IPathIterator.ts +0 -33
  65. package/src/main/ts/armyc2/c5isr/graphics2d/ImageIO.ts +0 -16
  66. package/src/main/ts/armyc2/c5isr/graphics2d/Line2D.ts +0 -726
  67. package/src/main/ts/armyc2/c5isr/graphics2d/PathIterator.ts +0 -141
  68. package/src/main/ts/armyc2/c5isr/graphics2d/Point.ts +0 -112
  69. package/src/main/ts/armyc2/c5isr/graphics2d/Point2D.ts +0 -261
  70. package/src/main/ts/armyc2/c5isr/graphics2d/Polygon.ts +0 -391
  71. package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle.ts +0 -567
  72. package/src/main/ts/armyc2/c5isr/graphics2d/Rectangle2D.ts +0 -445
  73. package/src/main/ts/armyc2/c5isr/graphics2d/Shape.ts +0 -31
  74. package/src/main/ts/armyc2/c5isr/graphics2d/Stroke.ts +0 -18
  75. package/src/main/ts/armyc2/c5isr/graphics2d/TextLayout.ts +0 -45
  76. package/src/main/ts/armyc2/c5isr/graphics2d/TexturePaint.ts +0 -25
  77. package/src/main/ts/armyc2/c5isr/renderer/IIconRenderer.ts +0 -15
  78. package/src/main/ts/armyc2/c5isr/renderer/IconRenderer.ts +0 -22
  79. package/src/main/ts/armyc2/c5isr/renderer/MilStdIconRenderer.ts +0 -269
  80. package/src/main/ts/armyc2/c5isr/renderer/ModifierRenderer.ts +0 -9882
  81. package/src/main/ts/armyc2/c5isr/renderer/PatternFillRenderer.ts +0 -146
  82. package/src/main/ts/armyc2/c5isr/renderer/SinglePointSVGRenderer.ts +0 -1265
  83. package/src/main/ts/armyc2/c5isr/renderer/shapes/arc.ts +0 -64
  84. package/src/main/ts/armyc2/c5isr/renderer/shapes/bcurve.ts +0 -95
  85. package/src/main/ts/armyc2/c5isr/renderer/shapes/ellipse.ts +0 -93
  86. package/src/main/ts/armyc2/c5isr/renderer/shapes/line.ts +0 -114
  87. package/src/main/ts/armyc2/c5isr/renderer/shapes/path.ts +0 -555
  88. package/src/main/ts/armyc2/c5isr/renderer/shapes/pathiterator.ts +0 -62
  89. package/src/main/ts/armyc2/c5isr/renderer/shapes/point.ts +0 -120
  90. package/src/main/ts/armyc2/c5isr/renderer/shapes/rectangle.ts +0 -431
  91. package/src/main/ts/armyc2/c5isr/renderer/shapes/roundedrectangle.ts +0 -99
  92. package/src/main/ts/armyc2/c5isr/renderer/shapes/types.ts +0 -25
  93. package/src/main/ts/armyc2/c5isr/renderer/shapes/utilities.ts +0 -203
  94. package/src/main/ts/armyc2/c5isr/renderer/utilities/AffiliationColors.ts +0 -104
  95. package/src/main/ts/armyc2/c5isr/renderer/utilities/Color.ts +0 -481
  96. package/src/main/ts/armyc2/c5isr/renderer/utilities/DistanceUnit.ts +0 -40
  97. package/src/main/ts/armyc2/c5isr/renderer/utilities/DrawRules.ts +0 -1323
  98. package/src/main/ts/armyc2/c5isr/renderer/utilities/EntityCode.ts +0 -51
  99. package/src/main/ts/armyc2/c5isr/renderer/utilities/ErrorLogger.ts +0 -736
  100. package/src/main/ts/armyc2/c5isr/renderer/utilities/GENCLookup.ts +0 -106
  101. package/src/main/ts/armyc2/c5isr/renderer/utilities/GeoPixelConversion3D.ts +0 -84
  102. package/src/main/ts/armyc2/c5isr/renderer/utilities/IMultiPointRenderer.ts +0 -87
  103. package/src/main/ts/armyc2/c5isr/renderer/utilities/IPointConversion.ts +0 -34
  104. package/src/main/ts/armyc2/c5isr/renderer/utilities/ImageInfo.ts +0 -324
  105. package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUCache.ts +0 -127
  106. package/src/main/ts/armyc2/c5isr/renderer/utilities/LRUEntry.ts +0 -18
  107. package/src/main/ts/armyc2/c5isr/renderer/utilities/LogLevel.ts +0 -111
  108. package/src/main/ts/armyc2/c5isr/renderer/utilities/MODrawRules.ts +0 -219
  109. package/src/main/ts/armyc2/c5isr/renderer/utilities/MSInfo.ts +0 -1008
  110. package/src/main/ts/armyc2/c5isr/renderer/utilities/MSLookup.ts +0 -882
  111. package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdAttributes.ts +0 -380
  112. package/src/main/ts/armyc2/c5isr/renderer/utilities/MilStdSymbol.ts +0 -797
  113. package/src/main/ts/armyc2/c5isr/renderer/utilities/Modifiers.ts +0 -1699
  114. package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversion.ts +0 -178
  115. package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConversionDummy.ts +0 -45
  116. package/src/main/ts/armyc2/c5isr/renderer/utilities/PointConverter3D.ts +0 -126
  117. package/src/main/ts/armyc2/c5isr/renderer/utilities/RectUtilities.ts +0 -118
  118. package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererException.ts +0 -11
  119. package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererSettings.ts +0 -1201
  120. package/src/main/ts/armyc2/c5isr/renderer/utilities/RendererUtilities.ts +0 -591
  121. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGInfo.ts +0 -29
  122. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGLookup.ts +0 -753
  123. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGSymbolInfo.ts +0 -137
  124. package/src/main/ts/armyc2/c5isr/renderer/utilities/SVGTextInfo.ts +0 -438
  125. package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEvent.ts +0 -19
  126. package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsChangedEventListener.ts +0 -10
  127. package/src/main/ts/armyc2/c5isr/renderer/utilities/SettingsEventListener.ts +0 -5
  128. package/src/main/ts/armyc2/c5isr/renderer/utilities/Shape2SVG.ts +0 -404
  129. package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeInfo.ts +0 -525
  130. package/src/main/ts/armyc2/c5isr/renderer/utilities/ShapeUtilities.ts +0 -55
  131. package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolDimensionInfo.ts +0 -36
  132. package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolID.ts +0 -1055
  133. package/src/main/ts/armyc2/c5isr/renderer/utilities/SymbolUtilities.ts +0 -2085
  134. package/src/main/ts/armyc2/c5isr/renderer/utilities/TextInfo.ts +0 -157
  135. package/src/main/ts/armyc2/c5isr/web/render/GeoPixelConversion.ts +0 -86
  136. package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandler.ts +0 -3798
  137. package/src/main/ts/armyc2/c5isr/web/render/MultiPointHandlerSVG.ts +0 -412
  138. package/src/main/ts/armyc2/c5isr/web/render/PointConverter.ts +0 -124
  139. package/src/main/ts/armyc2/c5isr/web/render/SymbolModifiers.ts +0 -26
  140. package/src/main/ts/armyc2/c5isr/web/render/WebRenderer.ts +0 -677
  141. package/src/main/ts/armyc2/c5isr/web/render/utilities/JavaRendererUtilities.ts +0 -484
  142. package/src/main/ts/armyc2/c5isr/web/render/utilities/LineInfo.ts +0 -62
  143. package/src/main/ts/armyc2/c5isr/web/render/utilities/SymbolInfo.ts +0 -46
  144. package/src/main/ts/armyc2/c5isr/web/render/utilities/TextInfo.ts +0 -51
  145. package/src/main/ts/org/gavaghan/geodesy/Angle.ts +0 -31
  146. package/src/main/ts/org/gavaghan/geodesy/Ellipsoid.ts +0 -71
  147. package/src/main/ts/org/gavaghan/geodesy/GeodeticCalculator.ts +0 -200
  148. package/src/main/ts/org/gavaghan/geodesy/GeodeticCurve.ts +0 -55
  149. package/src/main/ts/org/gavaghan/geodesy/GeodeticMeasurement.ts +0 -68
  150. package/src/main/ts/org/gavaghan/geodesy/GlobalCoordinates.ts +0 -103
  151. package/src/main/ts/org/gavaghan/geodesy/GlobalPosition.ts +0 -90
  152. package/test/ExportSPImages.js +0 -692
  153. package/test/MPWW.html +0 -556
  154. package/test/MPWorker.js +0 -318
  155. package/test/SPWorker.js +0 -233
  156. package/test/SVGWW.html +0 -363
  157. package/test/singlePointTester3.html +0 -751
  158. package/tsconfig.json +0 -54
  159. package/typedoc.json +0 -30
  160. package/updateVersion.js +0 -21
  161. package/webpack.config.js +0 -34
  162. package/webpackn.config.js +0 -28
  163. package/webpackr.config.js +0 -47
  164. package/webpackw.config.js +0 -23
  165. /package/{dist/C5Ren.d.ts → C5Ren.d.ts} +0 -0
  166. /package/{dist/C5Ren.js → C5Ren.js} +0 -0
  167. /package/{dist/C5Ren.js.map → C5Ren.js.map} +0 -0
  168. /package/{dist/manifest.json → manifest.json} +0 -0
@@ -1,14 +0,0 @@
1
- import { type int } from "../graphics2d/BasicTypes";
2
-
3
-
4
- /**
5
- * Class used by channels for dtermining segments. Segments are used by
6
- * clsChannelUtility to handle double-backed segments so that the lines
7
- * will not go off the display area.
8
- *
9
- *
10
- */
11
- export class P1 {
12
- public start: int = 0;
13
- public end_Renamed: int = 0;
14
- }
@@ -1,648 +0,0 @@
1
- import { type int, type double } from "../graphics2d/BasicTypes";
2
-
3
-
4
- import { BasicStroke } from "../graphics2d/BasicStroke"
5
- import { Font } from "../graphics2d/Font"
6
- import { TexturePaint } from "../graphics2d/TexturePaint"
7
- import { POINT2 } from "../JavaLineArray/POINT2"
8
- import { TacticalLines } from "../JavaLineArray/TacticalLines"
9
- import { Modifier2 } from "../JavaTacticalRenderer/Modifier2"
10
- import { Color } from "../renderer/utilities/Color"
11
- import { ErrorLogger } from "../renderer/utilities/ErrorLogger"
12
- import { RendererException } from "../renderer/utilities/RendererException"
13
- import { SymbolID } from "../renderer/utilities/SymbolID"
14
- import { SymbolUtilities } from "../renderer/utilities/SymbolUtilities"
15
- import { RendererSettings } from "../renderer/utilities/RendererSettings";
16
-
17
- /**
18
- * A class to encapsulate the tactical graphic object. Many of the properties
19
- * correspond to a client MilStdSymbol object.
20
- *
21
- *
22
- */
23
- export class TGLight {
24
-
25
- public LatLongs: Array<POINT2>;
26
- private static readonly _className: string = "TGLight";
27
-
28
- public get_LatLongs(): Array<POINT2> {
29
- return this.LatLongs;
30
- }
31
-
32
- public set_LatLongs(value: Array<POINT2>): void {
33
- this.LatLongs = value;
34
- }
35
-
36
- public Pixels: Array<POINT2>;
37
-
38
- public get_Pixels(): Array<POINT2> {
39
- return this.Pixels;
40
- }
41
-
42
- public set_Pixels(value: Array<POINT2>): void {
43
- this.Pixels = value;
44
- }
45
-
46
- public modifiers: Array<Modifier2>;
47
-
48
- public get_Modifiers(): Array<Modifier2> {
49
- return this.modifiers;
50
- }
51
-
52
- public set_Modifiers(value: Array<Modifier2>): void {
53
- this.modifiers = value;
54
- }
55
-
56
- protected tp: TexturePaint;
57
-
58
- public set_TexturePaint(value: TexturePaint): void {
59
- this.tp = value;
60
- }
61
-
62
- public get_TexturePaint(): TexturePaint {
63
- return this.tp;
64
- }
65
-
66
- protected maskOff: boolean;
67
-
68
- public constructor() {
69
-
70
- }
71
-
72
- private font: Font;
73
-
74
- public set_Font(value: Font): void {
75
- this.font = value;
76
- }
77
-
78
- public get_Font(): Font {
79
- return this.font;
80
- }
81
-
82
- private iconSize: int = 50;
83
-
84
- /**
85
- * Set the icon size for areas that have a symbol like LAA or Biological Contaminated Area
86
- * @param pixelSize
87
- */
88
- public setIconSize(pixelSize: int): void { this.iconSize = pixelSize; }
89
-
90
- public getIconSize(): int { return this.iconSize; }
91
-
92
- private keepUnitRatio: boolean = true;
93
-
94
- public set_KeepUnitRatio(value: boolean): void {
95
- this.keepUnitRatio = value;
96
- }
97
-
98
- public get_KeepUnitRation(): boolean {
99
- return this.keepUnitRatio;
100
- }
101
-
102
- private lineType: int = 0;
103
-
104
- public set_LineType(value: int): void {
105
- this.lineType = value;
106
- }
107
-
108
- public get_LineType(): int {
109
- return this.lineType;
110
- }
111
-
112
- private lineStyle: int = 0;
113
-
114
- public set_LineStyle(value: int): void {
115
- this.lineStyle = value;
116
- }
117
-
118
- public get_LineStyle(): int {
119
- return this.lineStyle;
120
- }
121
-
122
- private lineColor: Color | null;
123
-
124
- public get_LineColor(): Color | null {
125
- return this.lineColor;
126
- }
127
-
128
- public set_LineColor(value: Color | null): void {
129
- this.lineColor = value;
130
- }
131
-
132
- private fillStyle: int = 0;
133
-
134
- public get_FillStyle(): int {
135
- return this.fillStyle;
136
- }
137
-
138
- public set_Fillstyle(value: int): void {
139
- this.fillStyle = value;
140
- }
141
-
142
- private fillColor: Color | null;
143
-
144
- public get_FillColor(): Color | null {
145
- return this.fillColor;
146
- }
147
-
148
- public set_FillColor(value: Color | null): void {
149
- this.fillColor = value;
150
- }
151
-
152
- private fontBackColor: Color = Color.WHITE;
153
-
154
- //private Color fontBackColor=RendererSettings.getInstance().getLabelBackgroundColor();
155
- public get_FontBackColor(): Color {
156
- return this.fontBackColor;
157
- }
158
-
159
- public set_FontBackColor(value: Color): void {
160
- this.fontBackColor = value;
161
- }
162
-
163
- private textColor: Color;
164
-
165
- public get_TextColor(): Color {
166
- return this.textColor;
167
- }
168
-
169
- public set_TextColor(value: Color): void {
170
- this.textColor = value;
171
- }
172
-
173
- private lineThickness: int = 0;
174
-
175
- public get_LineThickness(): int {
176
- return this.lineThickness;
177
- }
178
-
179
- public set_LineThickness(value: int): void {
180
- this.lineThickness = value;
181
- }
182
-
183
- private t: string = "";
184
-
185
- public get_Name(): string {
186
- if (this.visibleModifiers) {
187
- return this.t;
188
- } else {
189
- return "";
190
- }
191
- }
192
-
193
- private client: string = "";
194
-
195
- public get_Client(): string {
196
- return this.client;
197
- }
198
-
199
- public set_client(value: string): void {
200
- this.client = value;
201
- }
202
-
203
- public set_Name(value: string): void {
204
- this.t = value;
205
- }
206
-
207
- private t1: string = "";
208
-
209
- public get_T1(): string {
210
- if (this.visibleModifiers) {
211
- return this.t1;
212
- } else {
213
- return "";
214
- }
215
- }
216
-
217
- public set_T1(value: string): void {
218
- this.t1 = value;
219
- }
220
-
221
- private am: string = "";
222
-
223
- public get_AM(): string {
224
- if (this.visibleModifiers) {
225
- return this.am;
226
- } else {
227
- return "";
228
- }
229
- }
230
-
231
- public set_AM(value: string): void {
232
- this.am = value;
233
- }
234
-
235
- private am1: string = "";
236
-
237
- public get_AM1(): string {
238
- if (this.visibleModifiers) {
239
- return this.am1;
240
- } else {
241
- return "";
242
- }
243
- }
244
-
245
- public set_AM1(value: string): void {
246
- this.am1 = value;
247
- }
248
-
249
- private an: string = "";
250
-
251
- public get_AN(): string {
252
- if (this.visibleModifiers) {
253
- return this.an;
254
- } else {
255
- return "";
256
- }
257
- }
258
-
259
- public set_AN(value: string): void {
260
- this.an = value;
261
- }
262
-
263
- private v: string = "";
264
-
265
- public get_V(): string {
266
- if (this.visibleModifiers) {
267
- return this.v;
268
- } else {
269
- return "";
270
- }
271
- }
272
-
273
- public set_V(value: string): void {
274
- this.v = value;
275
- }
276
-
277
-
278
- private ap: string = "";
279
-
280
- public get_AP(): string {
281
- if (this.visibleModifiers) {
282
- return this.ap;
283
- } else {
284
- return "";
285
- }
286
- }
287
-
288
- public set_AP(value: string): void {
289
- this.ap = value;
290
- }
291
-
292
- private as: string = "";
293
-
294
- public get_AS(): string {
295
- if (this.visibleModifiers) {
296
- return this.as;
297
- } else {
298
- return "";
299
- }
300
- }
301
-
302
- public set_AS(value: string): void {
303
- this.as = value;
304
- }
305
-
306
- private x: string = "";
307
-
308
- public get_X(): string {
309
- return this.x;
310
- }
311
-
312
- public set_X(value: string): void {
313
- this.x = value;
314
- }
315
-
316
- private x1: string = "";
317
-
318
- public get_X1(): string {
319
- return this.x1;
320
- }
321
-
322
- public set_X1(value: string): void {
323
- this.x1 = value;
324
- }
325
-
326
- private h: string = "";
327
-
328
- public get_H(): string {
329
- if (this.visibleModifiers || this.lineType === TacticalLines.RECTANGULAR) {
330
- return this.h;
331
- } else {
332
- return "";
333
- }
334
- }
335
-
336
- public set_H(value: string): void {
337
- this.h = value;
338
- }
339
-
340
- public get_Location(): string {
341
- if (this.visibleModifiers) {
342
- if (this.y.length > 0) {
343
- return this.y;
344
- } else {
345
- return this.h;
346
- }
347
- } else {
348
- return "";
349
- }
350
- }
351
-
352
- public set_Location(value: string): void {
353
- this.y = value;
354
- }
355
-
356
- private h1: string = "";
357
-
358
- /**
359
- * @deprecated
360
- */
361
- public get_H1(): string {
362
- if (this.visibleModifiers) {
363
- return this.h1;
364
- } else {
365
- return "";
366
- }
367
- }
368
-
369
- /**
370
- * @deprecated
371
- */
372
- public set_H1(value: string): void {
373
- this.h1 = value;
374
- }
375
-
376
- //location
377
- private y: string = "";
378
-
379
- private n: string = "ENY";
380
-
381
- public get_N(): string {
382
- return this.n;
383
- }
384
-
385
- public set_N(value: string): void {
386
- this.n = value;
387
- }
388
-
389
- private h2: string = "";
390
-
391
- /**
392
- * @deprecated
393
- */
394
- public get_H2(): string {
395
- if (this.visibleModifiers || this.lineType === TacticalLines.RECTANGULAR) {
396
- return this.h2;
397
- } else {
398
- return "";
399
- }
400
- }
401
-
402
- /**
403
- * @deprecated
404
- */
405
- public set_H2(value: string): void {
406
- this.h2 = value;
407
- }
408
-
409
- /**
410
- * Only used for range fan
411
- * left azimuth,right azimuth,min radius,max radius
412
- */
413
- private leftRightMinMax: string = "";
414
-
415
- public get_LRMM(): string {
416
- return this.leftRightMinMax;
417
- }
418
-
419
- public set_LRMM(value: string): void {
420
- this.leftRightMinMax = value;
421
- }
422
-
423
- private w: string = "";
424
-
425
- public get_DTG(): string {
426
- if (this.visibleModifiers) {
427
- return this.w;
428
- } else {
429
- return "";
430
- }
431
- }
432
-
433
- public set_DTG(value: string): void {
434
- this.w = value;
435
- }
436
-
437
- private w1: string = "";
438
-
439
- public get_DTG1(): string {
440
- if (this.visibleModifiers) {
441
- return this.w1;
442
- } else {
443
- return "";
444
- }
445
- }
446
-
447
- public set_DTG1(value: string): void {
448
- this.w1 = value;
449
- }
450
-
451
-
452
- private standardIdentity: string = "00";
453
-
454
- public get_StandardIdentity(): string {
455
- return this.standardIdentity;
456
- }
457
-
458
- /**
459
- * @return true if standard identity is suspect/joker or hostile/faker
460
- */
461
- public isHostile(): boolean {
462
- if (this.standardIdentity != null) {
463
- return this.standardIdentity.charAt(1) === '5' || this.standardIdentity.charAt(1) === '6';
464
- } else {
465
- return false;
466
- }
467
- }
468
-
469
- private echelonSymbol: string = "";
470
-
471
- get_EchelonSymbol(): string {
472
- return this.echelonSymbol;
473
- }
474
-
475
- public set_EchelonSymbol(value: string): void {
476
- this.echelonSymbol = value;
477
- }
478
-
479
- private symbolId: string = "00000000";
480
-
481
- public get_SymbolId(): string {
482
- return this.symbolId;
483
- }
484
-
485
- // "P" for present or "A" for anticipated
486
- private status: string = "P";
487
-
488
- public get_Status(): string {
489
- return this.status;
490
- }
491
-
492
- public set_Status(value: string): void {
493
- this.status = value;
494
- }
495
-
496
- /**
497
- * Sets tactical graphic properties based on the 20-30 digit Mil-Std-2525 symbol code
498
- *
499
- * @param value
500
- */
501
- public set_SymbolId(value: string): void {
502
- try {
503
- this.symbolId = value;
504
- let symbolSet: int = SymbolID.getSymbolSet(this.symbolId);
505
- if (symbolSet === 25) {
506
- this.standardIdentity = SymbolID.getStandardIdentity(this.symbolId) + "";
507
- if (this.standardIdentity.length === 1) {
508
-
509
- this.standardIdentity = "0" + this.standardIdentity;
510
- }
511
-
512
-
513
- this.status = "P"; // default to present
514
- if (SymbolID.getStatus(this.symbolId) === 1) {
515
- // Planned/Anticipated/Suspect
516
- this.status = "A";
517
- this.lineStyle = 1; // dashed
518
- }
519
-
520
- let amplifier: int = SymbolID.getAmplifierDescriptor(this.symbolId);
521
- this.echelonSymbol = SymbolUtilities.getEchelonText(amplifier);
522
- if (this.echelonSymbol == null) {
523
- this.echelonSymbol = "";
524
- }
525
- }
526
- } catch (exc) {
527
- if (exc instanceof Error) {
528
- //clsUtility.WriteFile("Error in TGLight.set_SymbolId");
529
- ErrorLogger.LogException(TGLight._className, "set_SymbolId",
530
- new RendererException("Failed inside set_SymbolId", exc));
531
- } else {
532
- throw exc;
533
- }
534
- }
535
- }
536
-
537
- private visibleModifiers: boolean = true;
538
-
539
- /**
540
- * @deprecated
541
- */
542
- public set_VisibleModifiers(value: boolean): void {
543
- this.visibleModifiers = value;
544
- }
545
-
546
- /**
547
- * @deprecated
548
- */
549
- protected get_VisibleModifiers(): boolean {
550
- return this.visibleModifiers;
551
- }
552
-
553
- private visibleLabels: boolean;
554
-
555
- /**
556
- * @deprecated
557
- */
558
- public set_VisibleLabels(value: boolean): void {
559
- this.visibleLabels = value;
560
- }
561
-
562
- /**
563
- * @deprecated
564
- */
565
- protected get_VisibleLabels(): boolean {
566
- return this.visibleLabels;
567
- }
568
-
569
- protected _useLineInterpolation: boolean = false;
570
-
571
- public get_UseLineInterpolation(): boolean {
572
- return this._useLineInterpolation;
573
- }
574
-
575
- public set_UseLineInterpolation(value: boolean): void {
576
- this._useLineInterpolation = value;
577
- }
578
-
579
- protected _useDashArray: boolean = false;
580
-
581
- public get_UseDashArray(): boolean {
582
- return this._useDashArray;
583
- }
584
-
585
- public set_UseDashArray(value: boolean): void {
586
- this._useDashArray = value;
587
- }
588
-
589
- protected _useHatchFill: boolean = false;
590
-
591
- public get_UseHatchFill(): boolean {
592
- return this._useHatchFill;
593
- }
594
-
595
- public set_UseHatchFill(value: boolean): void {
596
- this._useHatchFill = value;
597
- }
598
-
599
- // boolean _usePatternFill = false;
600
- // public boolean get_UsePatternFill() {
601
- // return _usePatternFill;
602
- // }
603
- //
604
- // public void set_UsePatternFill(boolean value) {
605
- // _usePatternFill = value;
606
- // }
607
-
608
- private _wasClipped: boolean = false;
609
-
610
- public set_WasClipped(value: boolean): void {
611
- this._wasClipped = value;
612
- }
613
-
614
- public get_WasClipped(): boolean {
615
- return this._wasClipped;
616
- }
617
-
618
- //boolean determines whether to add the range and azimuth modifiers for range fans
619
- private _HideOptionalLabels: boolean = false;
620
-
621
- public get_HideOptionalLabels(): boolean {
622
- return this._HideOptionalLabels;
623
- }
624
-
625
- public set_HideOptionalLabels(value: boolean): void {
626
- this._HideOptionalLabels = value;
627
- }
628
-
629
- private lineCap: int = BasicStroke.CAP_SQUARE;
630
-
631
- public set_lineCap(cap: int): void {
632
- this.lineCap = cap;
633
- }
634
-
635
- public get_lineCap(): int {
636
- return this.lineCap;
637
- }
638
-
639
- private patternScale: double = RendererSettings.getInstance().getPatternScale();
640
-
641
- public get_patternScale(): double {
642
- return this.patternScale;
643
- }
644
-
645
- public set_patternScale(scale: double): void {
646
- this.patternScale = scale;
647
- }
648
- }