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 enabled, the field of view will always be drawn, 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

The width of the lines that connect the instrument to the corners of the field of view.

Double

Value of type ‘Double’

Yes

SimplifyBounds

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.

Boolean

Value of type ‘Boolean’

Yes

StandOffDistance

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.

Double

Value of type ‘Double’

Yes

Inherited members from Renderable

Name

Documentation

Type

Description

Optional

DimInAtmosphere

Decides if the object should be dimmed (i.e. faded out) when the camera is in the sunny part of an atmosphere.

Boolean

Value of type ‘Boolean’

Yes

Enabled

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

A value that specifies if the renderable should be rendered in the Background, Opaque, Pre-/PostDeferredTransparency, Overlay, or Sticker 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

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  },
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}