RenderableFov
Inherits Renderable
Needs support for std::map first for the frameConversions
Members
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The SPICE name of the source body for which the field of view should be rendered. |
|
Value of type ‘String’ |
No |
|
The SPICE name of the source body’s frame in which the field of view should be rendered. |
|
Value of type ‘String’ |
No |
|
A table describing the instrument whose field of view should be rendered. |
|
No |
|
|
A list of potential targets (specified as SPICE names) that the field of view should be tested against. |
|
No |
|
|
If enabled, the field of view will always be drawn, regardless of whether image information is currently available or not. |
|
Value of type ‘Boolean’ |
Yes |
|
A list of frame conversions that should be registered with the SpiceManager. |
|
Yes |
|
|
The width of the lines that connect the instrument to the corners of the field of view. |
|
Value of type ‘Double’ |
Yes |
|
If true, the field of view’s bounds values will be simplified on load. Bound vectors will be removed if they are the strict linear interpolation between the two neighboring vectors. This value is disabled by default. |
|
Value of type ‘Boolean’ |
Yes |
|
A standoff distance factor which influences the distance of the plane to the focus object. If the value is 1, the field of view will be rendered exactly on the surface of, for example, a planet. With a value of smaller than 1, the field of view will hover of the surface, thus making it more visible. |
|
Value of type ‘Double’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere. |
|
Value of type ‘Boolean’ |
Yes |
|
Determines whether this object will be visible or not. |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the opacity of this renderable. A value of 0 means completely transparent |
|
In range: ( 0,1 ) |
Yes |
|
A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker rendering step. |
|
In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay } |
Yes |
|
A single tag or a list of tags that this renderable will respond to when setting properties |
|
Value of type ‘Table’, or Value of type ‘String’ |
Yes |
|
The type of the renderable. |
|
Value of type ‘String’ |
Yes |
Table parameters for Instrument
A table describing the instrument whose field of view should be rendered.
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
The aberration correction that is used for this field of view. The default is ‘NONE’. |
|
In list { NONE, LT, LT+S, CN, CN+S, XLT, XLT+S, XCN, XCN+S } |
Yes |
|
The SPICE name of the instrument that is rendered. |
|
Value of type ‘String’ |
No |
Table parameters for PotentialTargets
A list of potential targets (specified as SPICE names) that the field of view should be tested against.
Optional: No
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘String’ |
Yes |
Table parameters for FrameConversions
A list of frame conversions that should be registered with the SpiceManager.
Optional: Yes
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
|
Value of type ‘String’ |
No |
Asset Examples
1local transforms = asset.require("../model")
2local kernels = asset.require("../kernels")
3
4
5
6local HGA = {
7 Identifier = "BepiColomboMPO_HGA",
8 Parent = transforms.BepiColombo.Identifier,
9 Renderable = {
10 Type = "RenderableFov",
11 Body = kernels.ID.MPO,
12 Frame = kernels.Frame.HGA,
13 RGB = { 0.8, 0.7, 0.7 },
14 Instrument = {
15 Name = "MPO_HGA",
16 Method = "CIRCLE",
17 Aberration = "NONE"
18 },
19 AlwaysDrawFov = true,
20 PotentialTargets = { "MERCURY", "EARTH", "VENUS" }
21 },
22 GUI = {
23 Name = "MPO HGA",
24 Path = "/Solar System/Missions/BepiColombo/Instruments",
25 }
26}
27
28
29asset.onInitialize(function()
30 -- Circle shapes are currently not supported
31 -- openspace.addSceneGraphNode(HGA)
32end)
33
34asset.onDeinitialize(function()
35 -- openspace.removeSceneGraphNode(HGA)
36end)
37
38
39
40asset.meta = {
41 Name = "HGA",
42 Description = "Shows the field-view for the High Gain Antenna of the MPO spacecraft.",
43 Author = "OpenSpace Team",
44 URL = "http://openspaceproject.com",
45 License = "MIT license"
46}