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 this value is set to ‘true’, the field of view specified here will always be rendered, 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 |
|
|
This value determines width of the lines connecting the instrument to the corners of the field of view |
|
Value of type ‘Double’ |
Yes |
|
If this value is set to ‘true’ the field-of-views 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 on default |
|
Value of type ‘Boolean’ |
Yes |
|
This value determines the standoff distance factor which influences the distance of the plane to the focus object. If this 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 ther surface, thus making it more visible |
|
Value of type ‘Double’ |
Yes |
Inherited members from Renderable
Name |
Documentation |
Type |
Description |
Optional |
---|---|---|---|---|
|
Enables/Disables if the object should be dimmed when the camera is in the sunny part of an atmosphere |
|
Value of type ‘Boolean’ |
Yes |
|
This setting 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 |
|
This value specifies if the renderable should be rendered in the Background,Opaque, Pre/PostDeferredTransparency, or Overlay 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 |
|
This tells 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 FrameConversions = {}
22 },
23 GUI = {
24 Name = "MPO HGA",
25 Path = "/Solar System/Missions/BepiColombo/Instruments",
26 }
27}
28
29
30asset.onInitialize(function()
31 -- Circle shapes are currently not supported
32 -- openspace.addSceneGraphNode(HGA)
33end)
34
35asset.onDeinitialize(function()
36 -- openspace.removeSceneGraphNode(HGA)
37end)
38
39
40
41asset.meta = {
42 Name = "HGA",
43 Version = "1.0",
44 Description = "Shows the field-view for the High Gain Antenna of the MPO spacecraft.",
45 Author = "OpenSpace Team",
46 URL = "http://openspaceproject.com",
47 License = "MIT license"
48}