-
Notifications
You must be signed in to change notification settings - Fork 13
/
kml22gx.gen.go
785 lines (657 loc) · 23.5 KB
/
kml22gx.gen.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
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
// Code generated by github.com/twpayne/go-kml/v3/internal/generate. DO NOT EDIT.
package kml
import (
"encoding/xml"
"fmt"
"image/color"
"strconv"
"time"
)
// A GxAltitudeModeEnum is an altitudeModeEnumType.
type GxAltitudeModeEnum string
func (e GxAltitudeModeEnum) String() string { return string(e) }
// GxAltitudeModeEnums.
const (
GxAltitudeModeClampToGround GxAltitudeModeEnum = "clampToGround"
GxAltitudeModeRelativeToGround GxAltitudeModeEnum = "relativeToGround"
GxAltitudeModeAbsolute GxAltitudeModeEnum = "absolute"
GxAltitudeModeClampToSeaFloor GxAltitudeModeEnum = "clampToSeaFloor"
GxAltitudeModeRelativeToSeaFloor GxAltitudeModeEnum = "relativeToSeaFloor"
)
// A GxFlyToModeEnum is a flyToModeEnumType.
type GxFlyToModeEnum string
func (e GxFlyToModeEnum) String() string { return string(e) }
// GxFlyToModeEnums.
const (
GxFlyToModeBounce GxFlyToModeEnum = "bounce"
GxFlyToModeSmooth GxFlyToModeEnum = "smooth"
)
// A GxPlayModeEnum is a playModeEnumType.
type GxPlayModeEnum string
func (e GxPlayModeEnum) String() string { return string(e) }
// GxPlayModeEnums.
const (
GxPlayModePause GxPlayModeEnum = "pause"
)
// A GxAltitudeModeElement is an altitudeMode element.
type GxAltitudeModeElement struct {
Value GxAltitudeModeEnum
}
// GxAltitudeMode returns a new GxAltitudeModeElement.
func GxAltitudeMode(value GxAltitudeModeEnum) *GxAltitudeModeElement {
return &GxAltitudeModeElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxAltitudeModeElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:altitudeMode"}}
charData := xml.CharData(e.Value)
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxAltitudeOffsetElement is an altitudeOffset element.
type GxAltitudeOffsetElement struct {
Value float64
}
// GxAltitudeOffset returns a new GxAltitudeOffsetElement.
func GxAltitudeOffset(value float64) *GxAltitudeOffsetElement {
return &GxAltitudeOffsetElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxAltitudeOffsetElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:altitudeOffset"}}
charData := xml.CharData(strconv.FormatFloat(e.Value, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxBalloonVisibilityElement is a balloonVisibility element.
type GxBalloonVisibilityElement struct {
Value bool
}
// GxBalloonVisibility returns a new GxBalloonVisibilityElement.
func GxBalloonVisibility(value bool) *GxBalloonVisibilityElement {
return &GxBalloonVisibilityElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxBalloonVisibilityElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:balloonVisibility"}}
var charData xml.CharData
if e.Value {
charData = xml.CharData("1")
} else {
charData = xml.CharData("0")
}
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxDelayedStartElement is a delayedStart element.
type GxDelayedStartElement struct {
Value time.Duration
}
// GxDelayedStart returns a new GxDelayedStartElement.
func GxDelayedStart(value time.Duration) *GxDelayedStartElement {
return &GxDelayedStartElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxDelayedStartElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:delayedStart"}}
seconds := float64(e.Value) / float64(time.Second)
charData := xml.CharData(strconv.FormatFloat(seconds, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxDrawOrderElement is a drawOrder element.
type GxDrawOrderElement struct {
Value int
}
// GxDrawOrder returns a new GxDrawOrderElement.
func GxDrawOrder(value int) *GxDrawOrderElement {
return &GxDrawOrderElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxDrawOrderElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:drawOrder"}}
charData := xml.CharData(strconv.Itoa(e.Value))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxDurationElement is a duration element.
type GxDurationElement struct {
Value time.Duration
}
// GxDuration returns a new GxDurationElement.
func GxDuration(value time.Duration) *GxDurationElement {
return &GxDurationElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxDurationElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:duration"}}
seconds := float64(e.Value) / float64(time.Second)
charData := xml.CharData(strconv.FormatFloat(seconds, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxFlyToModeElement is a flyToMode element.
type GxFlyToModeElement struct {
Value GxFlyToModeEnum
}
// GxFlyToMode returns a new GxFlyToModeElement.
func GxFlyToMode(value GxFlyToModeEnum) *GxFlyToModeElement {
return &GxFlyToModeElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxFlyToModeElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:flyToMode"}}
charData := xml.CharData(e.Value)
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxHorizFOVElement is a horizFov element.
type GxHorizFOVElement struct {
Value float64
}
// GxHorizFOV returns a new GxHorizFOVElement.
func GxHorizFOV(value float64) *GxHorizFOVElement {
return &GxHorizFOVElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxHorizFOVElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:horizFov"}}
charData := xml.CharData(strconv.FormatFloat(e.Value, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxInterpolateElement is an interpolate element.
type GxInterpolateElement struct {
Value bool
}
// GxInterpolate returns a new GxInterpolateElement.
func GxInterpolate(value bool) *GxInterpolateElement {
return &GxInterpolateElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxInterpolateElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:interpolate"}}
var charData xml.CharData
if e.Value {
charData = xml.CharData("1")
} else {
charData = xml.CharData("0")
}
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxLabelVisibilityElement is a labelVisibility element.
type GxLabelVisibilityElement struct {
Value bool
}
// GxLabelVisibility returns a new GxLabelVisibilityElement.
func GxLabelVisibility(value bool) *GxLabelVisibilityElement {
return &GxLabelVisibilityElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxLabelVisibilityElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:labelVisibility"}}
var charData xml.CharData
if e.Value {
charData = xml.CharData("1")
} else {
charData = xml.CharData("0")
}
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxOuterColorElement is an outerColor element.
type GxOuterColorElement struct {
Value color.Color
}
// GxOuterColor returns a new GxOuterColorElement.
func GxOuterColor(value color.Color) *GxOuterColorElement {
return &GxOuterColorElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxOuterColorElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:outerColor"}}
red, green, blue, alpha := e.Value.RGBA()
charData := xml.CharData(fmt.Sprintf("%02x%02x%02x%02x", alpha/256, blue/256, green/256, red/256))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxOuterWidthElement is an outerWidth element.
type GxOuterWidthElement struct {
Value float64
}
// GxOuterWidth returns a new GxOuterWidthElement.
func GxOuterWidth(value float64) *GxOuterWidthElement {
return &GxOuterWidthElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxOuterWidthElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:outerWidth"}}
charData := xml.CharData(strconv.FormatFloat(e.Value, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxPhysicalWidthElement is a physicalWidth element.
type GxPhysicalWidthElement struct {
Value float64
}
// GxPhysicalWidth returns a new GxPhysicalWidthElement.
func GxPhysicalWidth(value float64) *GxPhysicalWidthElement {
return &GxPhysicalWidthElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxPhysicalWidthElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:physicalWidth"}}
charData := xml.CharData(strconv.FormatFloat(e.Value, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxPlayModeElement is a playMode element.
type GxPlayModeElement struct {
Value GxPlayModeEnum
}
// GxPlayMode returns a new GxPlayModeElement.
func GxPlayMode(value GxPlayModeEnum) *GxPlayModeElement {
return &GxPlayModeElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxPlayModeElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:playMode"}}
charData := xml.CharData(e.Value)
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxRankElement is a rank element.
type GxRankElement struct {
Value float64
}
// GxRank returns a new GxRankElement.
func GxRank(value float64) *GxRankElement {
return &GxRankElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxRankElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:rank"}}
charData := xml.CharData(strconv.FormatFloat(e.Value, 'f', -1, 64))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxXElement is a x element.
type GxXElement struct {
Value int
}
// GxX returns a new GxXElement.
func GxX(value int) *GxXElement {
return &GxXElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxXElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:x"}}
charData := xml.CharData(strconv.Itoa(e.Value))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxYElement is a y element.
type GxYElement struct {
Value int
}
// GxY returns a new GxYElement.
func GxY(value int) *GxYElement {
return &GxYElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxYElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:y"}}
charData := xml.CharData(strconv.Itoa(e.Value))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxWElement is a w element.
type GxWElement struct {
Value int
}
// GxW returns a new GxWElement.
func GxW(value int) *GxWElement {
return &GxWElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxWElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:w"}}
charData := xml.CharData(strconv.Itoa(e.Value))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxHElement is a h element.
type GxHElement struct {
Value int
}
// GxH returns a new GxHElement.
func GxH(value int) *GxHElement {
return &GxHElement{
Value: value,
}
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxHElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:h"}}
charData := xml.CharData(strconv.Itoa(e.Value))
return encodeElementWithCharData(encoder, startElement, charData)
}
// A GxAbstractTourPrimitiveElement is an AbstractTourPrimitive element.
type GxAbstractTourPrimitiveElement struct {
Children []Element
}
// GxAbstractTourPrimitive returns a new GxAbstractTourPrimitiveElement.
func GxAbstractTourPrimitive(children ...Element) *GxAbstractTourPrimitiveElement {
return &GxAbstractTourPrimitiveElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxAbstractTourPrimitiveElement) Append(children ...Element) *GxAbstractTourPrimitiveElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxAbstractTourPrimitiveElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:AbstractTourPrimitive"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxAnimatedUpdateElement is an AnimatedUpdate element.
type GxAnimatedUpdateElement struct {
Children []Element
}
// GxAnimatedUpdate returns a new GxAnimatedUpdateElement.
func GxAnimatedUpdate(children ...Element) *GxAnimatedUpdateElement {
return &GxAnimatedUpdateElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxAnimatedUpdateElement) Append(children ...Element) *GxAnimatedUpdateElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxAnimatedUpdateElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:AnimatedUpdate"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxFlyToElement is a FlyTo element.
type GxFlyToElement struct {
Children []Element
}
// GxFlyTo returns a new GxFlyToElement.
func GxFlyTo(children ...Element) *GxFlyToElement {
return &GxFlyToElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxFlyToElement) Append(children ...Element) *GxFlyToElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxFlyToElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:FlyTo"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxPlaylistElement is a Playlist element.
type GxPlaylistElement struct {
Children []Element
}
// GxPlaylist returns a new GxPlaylistElement.
func GxPlaylist(children ...Element) *GxPlaylistElement {
return &GxPlaylistElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxPlaylistElement) Append(children ...Element) *GxPlaylistElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxPlaylistElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:Playlist"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxSoundCueElement is a SoundCue element.
type GxSoundCueElement struct {
Children []Element
}
// GxSoundCue returns a new GxSoundCueElement.
func GxSoundCue(children ...Element) *GxSoundCueElement {
return &GxSoundCueElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxSoundCueElement) Append(children ...Element) *GxSoundCueElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxSoundCueElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:SoundCue"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxTourElement is a Tour element.
type GxTourElement struct {
Children []Element
}
// GxTour returns a new GxTourElement.
func GxTour(children ...Element) *GxTourElement {
return &GxTourElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxTourElement) Append(children ...Element) *GxTourElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxTourElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:Tour"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxTimeStampElement is a TimeStamp element.
type GxTimeStampElement struct {
Children []Element
}
// GxTimeStamp returns a new GxTimeStampElement.
func GxTimeStamp(children ...Element) *GxTimeStampElement {
return &GxTimeStampElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxTimeStampElement) Append(children ...Element) *GxTimeStampElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxTimeStampElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:TimeStamp"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxTimeSpanElement is a TimeSpan element.
type GxTimeSpanElement struct {
Children []Element
}
// GxTimeSpan returns a new GxTimeSpanElement.
func GxTimeSpan(children ...Element) *GxTimeSpanElement {
return &GxTimeSpanElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxTimeSpanElement) Append(children ...Element) *GxTimeSpanElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxTimeSpanElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:TimeSpan"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxTourControlElement is a TourControl element.
type GxTourControlElement struct {
Children []Element
}
// GxTourControl returns a new GxTourControlElement.
func GxTourControl(children ...Element) *GxTourControlElement {
return &GxTourControlElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxTourControlElement) Append(children ...Element) *GxTourControlElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxTourControlElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:TourControl"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxWaitElement is a Wait element.
type GxWaitElement struct {
Children []Element
}
// GxWait returns a new GxWaitElement.
func GxWait(children ...Element) *GxWaitElement {
return &GxWaitElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxWaitElement) Append(children ...Element) *GxWaitElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxWaitElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:Wait"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxLatLonQuadElement is a LatLonQuad element.
type GxLatLonQuadElement struct {
Children []Element
}
// GxLatLonQuad returns a new GxLatLonQuadElement.
func GxLatLonQuad(children ...Element) *GxLatLonQuadElement {
return &GxLatLonQuadElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxLatLonQuadElement) Append(children ...Element) *GxLatLonQuadElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxLatLonQuadElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:LatLonQuad"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxTrackElement is a Track element.
type GxTrackElement struct {
Children []Element
}
// GxTrack returns a new GxTrackElement.
func GxTrack(children ...Element) *GxTrackElement {
return &GxTrackElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxTrackElement) Append(children ...Element) *GxTrackElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxTrackElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:Track"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxMultiTrackElement is a MultiTrack element.
type GxMultiTrackElement struct {
Children []Element
}
// GxMultiTrack returns a new GxMultiTrackElement.
func GxMultiTrack(children ...Element) *GxMultiTrackElement {
return &GxMultiTrackElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxMultiTrackElement) Append(children ...Element) *GxMultiTrackElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxMultiTrackElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:MultiTrack"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxSimpleArrayDataElement is a SimpleArrayData element.
type GxSimpleArrayDataElement struct {
Children []Element
}
// GxSimpleArrayData returns a new GxSimpleArrayDataElement.
func GxSimpleArrayData(children ...Element) *GxSimpleArrayDataElement {
return &GxSimpleArrayDataElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxSimpleArrayDataElement) Append(children ...Element) *GxSimpleArrayDataElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxSimpleArrayDataElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:SimpleArrayData"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}
// A GxViewerOptionsElement is a ViewerOptions element.
type GxViewerOptionsElement struct {
Children []Element
}
// GxViewerOptions returns a new GxViewerOptionsElement.
func GxViewerOptions(children ...Element) *GxViewerOptionsElement {
return &GxViewerOptionsElement{
Children: children,
}
}
// Append appends children to e.
func (e *GxViewerOptionsElement) Append(children ...Element) *GxViewerOptionsElement {
e.Children = append(e.Children, children...)
return e
}
// MarshalXML implements encoding/xml.Marshaler.MarshalXML.
func (e *GxViewerOptionsElement) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
startElement := xml.StartElement{Name: xml.Name{Local: "gx:ViewerOptions"}}
return encodeElementWithChildren(encoder, startElement, e.Children)
}