-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathshapes.go
408 lines (382 loc) · 27.7 KB
/
shapes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
package czml
// BoundingRectangle holds a bounding rectangle specified by a corner, width and height.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/BoundingRectangle
type BoundingRectangle struct {
BoundingRectangle *BoundingRectangleValue `json:"boundingRectangle,omitempty"`
Reference ReferenceValue `json:"reference,omitempty"`
}
// BoundingRectangleValue is a near-far scalar value specified as four values
// [X, Y, Width, Height]. If the array has four elements, the value is constant. If it has five or
// more elements, they are time-tagged samples arranged as
// [Time, X, Y, Width, Height, Time, X, Y, Width, Height, ...], where Time is an ISO 8601 date and
// time string or seconds since epoch.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/BoundingRectangleValue
type BoundingRectangleValue []interface{}
// Box is a closed rectangular cuboid
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Box
type Box struct {
Show *bool `json:"show,omitempty"`
Dimensions *BoxDimensions `json:"dimensions"`
HeightReference *HeightReference `json:"heightReference"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
}
// BoxDimensions is the width, depth, and height of a box
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/BoxDimensions
type BoxDimensions struct {
Cartesian *Cartesian3Value `json:"cartesian,omitempty"`
Reference ReferenceValue `json:"reference,omitempty"`
}
// CornerType holds the style of a corner
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CornerType
type CornerType struct {
CornerType CornerTypeValue `json:"cornerType,omitempty"`
Reference ReferenceValue `json:"reference,omitempty"`
}
// CornerTypeValue is the style of a corner
// valid values are `ROUNDED`, `MITERED`, `BEVELED`
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CornerTypeValue
type CornerTypeValue string
// Corridor is a shape defined by a centerline and width that conforms to the curvature of the
// globe. It can be placed on the surface or at altitude and can optionally be extruded *into a
// volume.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Corridor
type Corridor struct {
Show *bool `json:"show,omitempty"`
Positions *PositionList `json:"positions,omitempty"`
Width *float64 `json:"width,omitempty"`
Height *float64 `json:"height,omitempty"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
ExtrudedHeight *float64 `json:"extrudedHeight,omitempty"`
ExtrudedHeightReference *HeightReference `json:"extrudedHeightReference,omitempty"`
CornerType *CornerType `json:"cornerType,omitempty"`
Granularity *float64 `json:"granularity,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
ClassificationType ClassificationType `json:"classificationType,omitempty"`
ZIndex *int `json:"zIndex,omitempty"`
}
// Cylinder is a cylinder, truncated cone, or cone defined by a length, top radius, and bottom
// radius.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Cylinder
type Cylinder struct {
Show *bool `json:"show,omitempty"`
Length *float64 `json:"length"`
TopRadius *float64 `json:"topRadius"`
BottomRadius *float64 `json:"bottomRadius"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
NumberOfVerticalLines *int `json:"numberOfVerticalLines,omitempty"`
Slices *int `json:"slices,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
}
// Ellipse is a closed curve on or above the surface of the Earth.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Ellipse
type Ellipse struct {
Show *bool `json:"show,omitempty"`
SemiMajorAxis *float64 `json:"semiMajorAxis"`
SemiMinorAxis *float64 `json:"semiMinorAxis"`
Height *float64 `json:"height,omitempty"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
ExtrudedHeight *float64 `json:"extrudedHeight,omitempty"`
ExtrudedHeightReference *HeightReference `json:"extrudedHeightReference,omitempty"`
Rotation *float64 `json:"rotation,omitempty"`
StRotation *float64 `json:"stRotation,omitempty"`
Granularity *float64 `json:"granularity,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
NumberOfVerticalLines *int `json:"numberOfVerticalLines,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
ClassificationType ClassificationType `json:"classificationType,omitempty"`
ZIndex *int `json:"zIndex,omitempty"`
}
// Ellipsoid is a closed quadric surface that is a three-dimensional analogue of an ellipse.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Ellipsoid
type Ellipsoid struct {
Show *bool `json:"show,omitempty"`
Radii *EllipsoidRadii `json:"radii"`
InnerRadii *EllipsoidRadii `json:"innerRadii,omitempty"`
MinimumClock *float64 `json:"minimumClock,omitempty"`
MaximumClock *float64 `json:"maximumClock,omitempty"`
MinimumCone *float64 `json:"minimumCone,omitempty"`
MaximumCone *float64 `json:"maximumCone,omitempty"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
StackPartitions *int `json:"stackPartitions,omitempty"`
SlicePartitions *int `json:"slicePartitions,omitempty"`
Subdivisions *int `json:"subdivisions,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
}
// EllipsoidRadii is the radii of an ellipsoid
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/EllipsoidRadii
type EllipsoidRadii struct {
Cartesian Cartesian3Value `json:"cartesian,omitempty"`
Reference ReferenceValue `json:"reference,omitempty"`
}
// Point is a viewport-aligned circle.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Point
type Point struct {
Show *bool `json:"show,omitempty"`
PixelSize *float64 `json:"pixelSize,omitempty"`
HeightReference *HeightReference `json:"heightReference"`
Color *Color `json:"color,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
ScaleByDistance *NearFarScaler `json:"scaleByDistance,omitempty"`
TranslucencyByDistance *NearFarScaler `json:"translucencyByDistance,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
DisableDepthTestDistance *float64 `json:"disableDepthTestDistance,omitempty"`
}
// Polygon is a closed figure on the surface of the Earth.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Polygon
type Polygon struct {
Show *bool `json:"show,omitempty"`
Positions *PositionList `json:"positions,omitempty"`
Holes *PositionListOfLists `json:"holes,omitempty"`
ArcType *ArcType `json:"arcType,omitempty"`
Height *float64 `json:"height,omitempty"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
ExtrudedHeight *float64 `json:"extrudedHeight,omitempty"`
ExtrudedHeightReference *HeightReference `json:"extrudedHeightReference,omitempty"`
StRotation *float64 `json:"stRotation,omitempty"`
Granularity *float64 `json:"granularity,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
PerPositionHeight *bool `json:"perPositionHeight,omitempty"`
CloseTop *bool `json:"closeTop,omitempty"`
CloseBottom *bool `json:"closeBottom,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
ClassificationType ClassificationType `json:"classificationType,omitempty"`
ZIndex *int `json:"zIndex,omitempty"`
}
// Shape is a list of two-dimensional positions defining a shape.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Shape
type Shape struct {
Cartesian2 *Cartesian2ListValue `json:"cartesian2"`
}
// Rectangle is a cartographic rectangle, which conforms to the curvature of the globe and can be
// placed on the surface or at altitude and can optionally be extruded into a volume.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Rectangle
type Rectangle struct {
Show *bool `json:"show,omitempty"`
Coordinates *RectangleCoordinates `json:"coordinates"`
Height *float64 `json:"height,omitempty"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
ExtrudedHeight *float64 `json:"extrudedHeight,omitempty"`
ExtrudedHeightReference *HeightReference `json:"extrudedHeightReference,omitempty"`
Rotation *float64 `json:"rotation,omitempty"`
StRotation *float64 `json:"stRotation,omitempty"`
Granularity *float64 `json:"granularity,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
ClassificationType ClassificationType `json:"classificationType,omitempty"`
ZIndex *int `json:"zIndex,omitempty"`
}
// RectangleCoordinates is a set of coordinates describing a cartographic rectangle on the surface
// of the ellipsoid.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/RectangleCoordinates
type RectangleCoordinates struct {
Wsen *CartographicRectangleRadiansValue `json:"wsen,omitempty"`
WsenDegrees *CartographicRectangleDegreesValue `json:"wsenDegrees,omitempty"`
Reference ReferenceValue `json:"reference"`
}
// Tileset is a 3D Tiles tileset
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Tileset
type Tileset struct {
Show *bool `json:"show,omitempty"`
Uri *Uri `json:"uri"`
MaximumScreenSpaceError *float64 `json:"maximumScreenSpaceError,omitempty"`
}
// Wall is a two-dimensional wall defined as a line strip and optional maximum and minimum heights,
// which conforms to the curvature of the globe and can be placed along the surface or at altitude.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Wall
type Wall struct {
Show *bool `json:"show,omitempty"`
Positions *PositionList `json:"positions"`
MinimumHeights *DoubleList `json:"minimumHeights,omitempty"`
MaximumHeights *DoubleList `json:"maximumHeights,omitempty"`
Granularity *float64 `json:"granularity,omitempty"`
Fill *bool `json:"fill,omitempty"`
Material *Material `json:"material,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
}
// ConicSensor is a conical sensor volume taking into account occlusion of an ellipsoid, i.e.,
// the globe.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/ConicSensor
type ConicSensor struct {
Show *bool `json:"show,omitempty"`
InnerHalfAngle *float64 `json:"innerHalfAngle,omitempty"`
OuterHalfAngle *float64 `json:"outerHalfAngle,omitempty"`
MinimumClockAngle *float64 `json:"minimumClockAngle,omitempty"`
MaximumClockAngle *float64 `json:"maximumClockAngle,omitempty"`
Radius *float64 `json:"radius,omitempty"`
ShowIntersection *bool `json:"showIntersection,omitempty"`
IntersectionColor *Color `json:"intersectionColor,omitempty"`
IntersectionWidth *float64 `json:"intersectionWidth,omitempty"`
ShowLateralSurfaces *bool `json:"showLateralSurfaces,omitempty"`
LateralSurfaceMaterial *Material `json:"lateralSurfaceMaterial,omitempty"`
ShowEllipsoidSurfaces *bool `json:"showEllipsoidSurfaces,omitempty"`
EllipsoidSurfaceMaterial *Material `json:"ellipsoidSurfaceMaterial,omitempty"`
ShowEllipsoidHorizonSurfaces *bool `json:"showEllipsoidHorizonSurfaces,omitempty"`
EllipsoidHorizonSurfaceMaterial *Material `json:"ellipsoidHorizonSurfaceMaterial,omitempty"`
ShowDomeSurfaces *bool `json:"showDomeSurfaces,omitempty"`
DomeSurfaceMaterial *Material `json:"domeSurfaceMaterial,omitempty"`
PortionToDisplay *SensorVolumePortionToDisplay `json:"portionToDisplay"`
EnvironmentConstraint *bool `json:"environmentConstraint,omitempty"`
ShowEnvironmentOcclusion *bool `json:"showEnvironmentOcclusion,omitempty"`
EnvironmentOcclusionMaterial *Material `json:"environmentOcclusionMaterial,omitempty"`
ShowEnvironmentIntersection *bool `json:"showEnvironmentIntersection,omitempty"`
EnvironmentIntersectionColor *Color `json:"environmentIntersectionColor,omitempty"`
EnvironmentIntersectionWidth *float64 `json:"environmentIntersectionWidth,omitempty"`
ShowThroughEllipsoid *bool `json:"showThroughEllipsoid,omitempty"`
ShowViewshed *bool `json:"showViewshed,omitempty"`
ViewshedVisibleColor *Color `json:"viewshedVisibleColor,omitempty"`
ViewshedOccludedColor *Color `json:"viewshedOccludedColor,omitempty"`
ViewshedResolution *int `json:"viewshedResolution,omitempty"`
}
// SensorVolumePortionToDisplay is the part of a sensor that should be displayed
// Valid values are `COMPLETE`, `BELOW_ELLIPSOID_HORIZON`, and `ABOVE_ELLIPSOID_HORIZON`
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/SensorVolumePortionToDisplay
type SensorVolumePortionToDisplay string
// CustomPatternSensor is a custom sensor volume taking into account occlusion of an ellipsoid,
// i.e., the globe.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/CustomPatternSensor
type CustomPatternSensor struct {
Show *bool `json:"show,omitempty"`
Directions *DirectionList `json:"directions"`
Radius *float64 `json:"radius,omitempty"`
ShowIntersection *bool `json:"showIntersection,omitempty"`
IntersectionColor *Color `json:"intersectionColor,omitempty"`
IntersectionWidth *float64 `json:"intersectionWidth,omitempty"`
ShowLateralSurfaces *bool `json:"showLateralSurfaces,omitempty"`
LateralSurfaceMaterial *Material `json:"lateralSurfaceMaterial,omitempty"`
ShowEllipsoidSurfaces *bool `json:"showEllipsoidSurfaces,omitempty"`
EllipsoidSurfaceMaterial *Material `json:"ellipsoidSurfaceMaterial,omitempty"`
ShowEllipsoidHorizonSurfaces *bool `json:"showEllipsoidHorizonSurfaces,omitempty"`
EllipsoidHorizonSurfaceMaterial *Material `json:"ellipsoidHorizonSurfaceMaterial,omitempty"`
ShowDomeSurfaces *bool `json:"showDomeSurfaces,omitempty"`
DomeSurfaceMaterial *Material `json:"domeSurfaceMaterial,omitempty"`
PortionToDisplay *SensorVolumePortionToDisplay `json:"portionToDisplay"`
EnvironmentConstraint *bool `json:"environmentConstraint,omitempty"`
ShowEnvironmentOcclusion *bool `json:"showEnvironmentOcclusion,omitempty"`
EnvironmentOcclusionMaterial *Material `json:"environmentOcclusionMaterial,omitempty"`
ShowEnvironmentIntersection *bool `json:"showEnvironmentIntersection,omitempty"`
EnvironmentIntersectionColor *Color `json:"environmentIntersectionColor,omitempty"`
EnvironmentIntersectionWidth *float64 `json:"environmentIntersectionWidth,omitempty"`
ShowThroughEllipsoid *bool `json:"showThroughEllipsoid,omitempty"`
ShowViewshed *bool `json:"showViewshed,omitempty"`
ViewshedVisibleColor *Color `json:"viewshedVisibleColor,omitempty"`
ViewshedOccludedColor *Color `json:"viewshedOccludedColor,omitempty"`
ViewshedResolution *int `json:"viewshedResolution,omitempty"`
}
// RectangularSensor is a rectangular pyramid sensor volume taking into account occlusion of an
// ellipsoid, i.e., the globe.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/RectangularSensor
type RectangularSensor struct {
Show *bool `json:"show,omitempty"`
XHalfAngle *float64 `json:"xHalfAngle,omitempty"`
YHalfAngle *float64 `json:"yHalfAngle,omitempty"`
Radius *float64 `json:"radius,omitempty"`
ShowIntersection *bool `json:"showIntersection,omitempty"`
IntersectionColor *Color `json:"intersectionColor,omitempty"`
IntersectionWidth *float64 `json:"intersectionWidth,omitempty"`
ShowLateralSurfaces *bool `json:"showLateralSurfaces,omitempty"`
LateralSurfaceMaterial *Material `json:"lateralSurfaceMaterial,omitempty"`
ShowEllipsoidSurfaces *bool `json:"showEllipsoidSurfaces,omitempty"`
EllipsoidSurfaceMaterial *Material `json:"ellipsoidSurfaceMaterial,omitempty"`
ShowEllipsoidHorizonSurfaces *bool `json:"showEllipsoidHorizonSurfaces,omitempty"`
EllipsoidHorizonSurfaceMaterial *Material `json:"ellipsoidHorizonSurfaceMaterial,omitempty"`
ShowDomeSurfaces *bool `json:"showDomeSurfaces,omitempty"`
DomeSurfaceMaterial *Material `json:"domeSurfaceMaterial,omitempty"`
PortionToDisplay *SensorVolumePortionToDisplay `json:"portionToDisplay"`
EnvironmentConstraint *bool `json:"environmentConstraint,omitempty"`
ShowEnvironmentOcclusion *bool `json:"showEnvironmentOcclusion,omitempty"`
EnvironmentOcclusionMaterial *Material `json:"environmentOcclusionMaterial,omitempty"`
ShowEnvironmentIntersection *bool `json:"showEnvironmentIntersection,omitempty"`
EnvironmentIntersectionColor *Color `json:"environmentIntersectionColor,omitempty"`
EnvironmentIntersectionWidth *float64 `json:"environmentIntersectionWidth,omitempty"`
ShowThroughEllipsoid *bool `json:"showThroughEllipsoid,omitempty"`
ShowViewshed *bool `json:"showViewshed,omitempty"`
ViewshedVisibleColor *Color `json:"viewshedVisibleColor,omitempty"`
ViewshedOccludedColor *Color `json:"viewshedOccludedColor,omitempty"`
ViewshedResolution *int `json:"viewshedResolution,omitempty"`
}
// Fan starts at a point or apex and extends in a specified list of directions from the apex. Each
// pair of directions forms a face of the fan extending to the specified radius.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Fan
type Fan struct {
Show *bool `json:"show,omitempty"`
Directions *DirectionList `json:"directions"`
Radius *float64 `json:"radius,omitempty"`
PerDirectionRadius *bool `json:"perDirectionRadius,omitempty"`
Material *Material `json:"material,omitempty"`
Fill *bool `json:"fill,omitempty"`
Outline *bool `json:"outline,omitempty"`
OutlineColor *Color `json:"outlineColor,omitempty"`
OutlineWidth *float64 `json:"outlineWidth,omitempty"`
NumberOfRings *int `json:"numberOfRings,omitempty"`
}
// Vector defines a graphical vector that originates at the position property and extends in the
// provided direction for the provided length.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Vector
type Vector struct {
Show *bool `json:"show,omitempty"`
Color *Color `json:"color,omitempty"`
Direction *Direction `json:"direction"`
Length *float64 `json:"length,omitempty"`
MinimumLengthInPixels *float64 `json:"minimumLengthInPixels,omitempty"`
}
// Spherical is a spherical value [Clock, Cone, Magnitude], with angles in radians and magnitude in
// meters. The clock angle is measured in the XY plane from the positive X axis toward the positive
// Y axis. The cone angle is the angle from the positive Z axis toward the negative Z axis. If the
// array has three elements, the value is constant. If it has four or more elements, they are
// time-tagged samples arranged as [Time, Clock, Cone, Magnitude, Time, Clock, Cone, Magnitude, ...]
// where Time is an ISO 8601 date and time string or seconds since epoch.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/SphericalValue
type SphericalValue []interface{}
// Direction is a unit vector, in world coordinates, that defines a direction
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Direction
type Direction struct {
Spherical *SphericalValue `json:"spherical,omitempty"`
UnitSpherical *UnitSphericalValue `json:"unitSpherical,omitempty"`
Cartesian *Cartesian3Value `json:"cartesian,omitempty"`
UnitCartesian3Value `json:"unitCartesian,omitempty"`
Reference ReferenceValue `json:"reference,omitempty"`
}