RenderableFov

Inherits Renderable

Needs support for std::map first for the frameConversions

Members

Name

Documentation

Type

Description

Optional

Body

The SPICE name of the source body for which the field of view should be rendered

String

Value of type ‘String’

No

Frame

The SPICE name of the source body’s frame in which the field of view should be rendered

String

Value of type ‘String’

No

Instrument

A table describing the instrument whose field of view should be rendered

Table

Table parameters

No

PotentialTargets

A list of potential targets (specified as SPICE names) that the field of view should be tested against

Table

Table parameters

No

AlwaysDrawFov

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

Boolean

Value of type ‘Boolean’

Yes

FrameConversions

A list of frame conversions that should be registered with the SpiceManager

Table

Table parameters

Yes

LineWidth

This value determines width of the lines connecting the instrument to the corners of the field of view

Double

Value of type ‘Double’

Yes

SimplifyBounds

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

Boolean

Value of type ‘Boolean’

Yes

StandOffDistance

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

Double

Value of type ‘Double’

Yes

Inherited members from Renderable

Name

Documentation

Type

Description

Optional

DimInAtmosphere

Enables/Disables if the object should be dimmed when the camera is in the sunny part of an atmosphere

Boolean

Value of type ‘Boolean’

Yes

Enabled

This setting determines whether this object will be visible or not

Boolean

Value of type ‘Boolean’

Yes

Opacity

This value determines the opacity of this renderable. A value of 0 means completely transparent

Double

In range: ( 0,1 )

Yes

RenderBinMode

This value specifies if the renderable should be rendered in the Background,Opaque, Pre/PostDeferredTransparency, or Overlay rendering step

String

In list { Background, Opaque, PreDeferredTransparent, PostDeferredTransparent, Overlay }

Yes

Tag

A single tag or a list of tags that this renderable will respond to when setting properties

Table, or String

Value of type ‘Table’, or Value of type ‘String’

Yes

Type

This tells the type of the renderable

String

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

Aberration

The aberration correction that is used for this field of view. The default is ‘NONE’

String

In list { NONE, LT, LT+S, CN, CN+S, XLT, XLT+S, XCN, XCN+S }

Yes

Name

The SPICE name of the instrument that is rendered

String

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

*

String

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

*

String

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}