TimeFrameInterval

Inherits TimeFrame

This TimeFrame’s validity is determined by a single start and end time in between which the scene graph node is valid. The start time is inclusive, while the end time is exclusive. If the start time or end time is not specified, the value corresponds to $-\infty$ and $\infty$ respectively. If both the start and end time are not specified, the TimeFrameInterval will always be valid.

Members

Name

Documentation

Type

Description

Optional

End

Specifies the time when this TimeFrame becomes inactive.

Double, or String

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

Yes

Start

Specifies the time when this TimeFrame becomes active.

Double, or String

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

Yes

Inherited members from TimeFrame

Name

Documentation

Type

Description

Optional

Type

The type of the time frame that is described in this element. The available types of scaling depend on the configuration of the application and can be written to disk on application startup into the FactoryDocumentation

String

Must name a valid TimeFrame type

No

Asset Examples

Basic

This example creates time frame interval and uses it for a scene graph node displaying a set of coordinate axes. The time frame interval causes the scene graph node to only be valid between January 1st, 2000 and March 1st, 2002.

 1local Node = {
 2  Identifier = "TimeFrameInterval_Example",
 3  TimeFrame = {
 4    Type = "TimeFrameInterval",
 5    Start = "2000 JAN 01 00:00:00.000",
 6    End = "2002 MAR 02 00:00:00.00"
 7  },
 8  Renderable = {
 9    Type = "RenderableCartesianAxes"
10  },
11  GUI = {
12    Name = "TimeFrameInterval - Basic",
13    Path = "/Examples"
14  }
15}
16
17asset.onInitialize(function()
18  openspace.addSceneGraphNode(Node)
19end)
20
21asset.onDeinitialize(function()
22  openspace.removeSceneGraphNode(Node)
23end)