Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace LayerManager

Index

Functions

add

  • add(layer: Layer, updateTree: boolean): void

addFitsImageSetLayer

addImageSetLayer

addSpreadsheetLayer

addVoTableLayer

addVoTableLayerWithPlotType

  • addVoTableLayerWithPlotType(table: VoTable, title: string, plotType: PlotTypes): VoTableLayer
  • Add a new VoTableLayer to the manager.

    Parameters

    • table: VoTable

      The VoTable that will underlie the new layer.

    • title: string

      The name that will be given to the new layer.

    • plotType: PlotTypes

      The point plotting type that the new layer will use.

    Returns VoTableLayer

    The newly-created layer.

createSpreadsheetLayer

  • createSpreadsheetLayer(frame: string, name: string, data: string): SpreadSheetLayer

deleteLayerByID

  • deleteLayerByID(id: Guid, removeFromParent: boolean, updateTree: boolean): void

getMoonFile

  • getMoonFile(url: string): void

get_allMaps

  • get_allMaps(): {}
  • Get the flattened hierarchy of layers registered with the engine.

    This function returns a dictionary of LayerMap instances that define the engine’s rendering hierarchy. The dictionary contains an entry for every LayerMap registered with the engine. This is unlike the get_layerMaps() interface, which only returns the “root” layer maps. Because there is a layer map for every solar system planet and every known moon thereof, this dictionary is quite large.

    The keying is done such that allMaps[map.get_name()] = map.

    Returns {}

get_layerList

  • get_layerList(): {}
  • Get the collection of all layers registered with the engine.

    The layer "list" is really an unordered dictionary of all registered layers, keyed by each layer's stringified GUID. Given a Layer object, you can get its key with layer.id.toString(). This list includes layers that have been registered for all engine rendering modes, while only one rendering mode is currently active at a time. So there are inevitably layers in the collection that are not currently being rendered.

    Returns {}

    • [guidtext: string]: Layer

get_layerMaps

  • get_layerMaps(): {}
  • Get the hierarchy of layers registered with the engine.

    This function returns a dictionary of LayerMap instances that define the engine’s rendering hierarchy. This top-level dictionary contains only the root reference frames used by the engine — typically, it has only two entries, named "Sun" and "Sky". Below the "Sun" map (in its LayerMap.childMaps field) are found maps for the planets, and below those are maps for their moons.

    See also get_allMaps, which returns the same collection of layer maps but in a flattened hierarchy.

    Returns {}

get_tourLayers

  • get_tourLayers(): boolean

initLayers

  • initLayers(): void

mergeToursLayers

  • mergeToursLayers(): void

set_tourLayers

  • set_tourLayers(v: boolean): boolean

Generated using TypeDoc