-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel.go
45 lines (40 loc) · 2.69 KB
/
model.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
package czml
// Model describes a 3D model
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Model
type Model struct {
Show *bool `json:"show,omitempty"`
Gltf *Uri `json:"uri"`
Scale *float64 `json:"scale,omitempty"`
MinimumPixelSize *float64 `json:"minimumPixelSize,omitempty"`
MaximumScale *float64 `json:"maximumScale,omitempty"`
MinimumCone *float64 `json:"minimumCone,omitempty"`
IncrementallyLoadTextures *bool `json:"incrementallyLoadTextures,omitempty"`
RunAnimations *bool `json:"runAnimations,omitempty"`
Shadows ShadowMode `json:"shadows,omitempty"`
HeightReference *HeightReference `json:"heightReference,omitempty"`
SilhouetteColor *Color `json:"silhouetteColor,omitempty"`
SilhouetteSize *float64 `json:"silhouetteSize,omitempty"`
Color *Color `json:"color,omitempty"`
ColorBlendMode *ColorBlendMode `json:"colorBlendMode,omitempty"`
ColorBlendAmount *float64 `json:"colorBlendAmount,omitempty"`
DistanceDisplayCondition *DistanceDisplayCondition `json:"distanceDisplayCondition,omitempty"`
NodeTransformations *NodeTransformations `json:"nodeTransformations,omitempty"`
Articulations *Articulations `json:"articulations,omitempty"`
}
// Articulations is a mapping of keys to articulation values, where the keys are the name of the
// articulation, a single space, and the name of the stage.
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/Articulations
type Articulations map[string]interface{}
// NodeTransformations is a mapping of node names to node transformations
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/NodeTransformations
type NodeTransformations map[string]interface{}
// ColorBlendMode contains the mode of blending between a target color and an entity's source color
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/ColorBlendMode
type ColorBlendMode struct {
ColorBlendMode ColorBlendModeValue `json:"colorBlendMode,omitempty"`
Reference ReferenceValue `json:"reference,omitempty"`
}
// ColorBlendModeValue is the mode of blending between a target color and an entity's source color.
// Valid values are `HIGHLIGHT`, `REPLACE`, and `MIX`
// https://github.com/AnalyticalGraphicsInc/czml-writer/wiki/ColorBlendModeValue
type ColorBlendModeValue string