openspace.skybrowser
Functions overview
Name |
Documentation |
---|---|
Takes an identifier to a sky browser and adds a rendered copy to it |
|
Takes the identifier of the sky target and a sky browser and adds them to the sky browser module |
|
Takes an identifier to a sky browser or sky target |
|
Takes an identifier to a sky browser and animates its corresponding target to the center of the current view |
|
Creates a sky browser and a target |
|
Disables the hover circle, if there is one added to the sky browser module |
|
Finetunes the target depending on a mouse drag |
|
Deprecated in favor of ‘listOfExoplanets’ |
|
Deprecated in favor of ‘targetData’ |
|
Deprecated in favor of ‘wwtImageCollectionUrl’ |
|
Takes an identifier to a sky browser and starts the initialization for that browser |
|
Returns a list of all the loaded AAS WorldWide Telescope images that have been loaded |
|
Takes an identifier to a sky browser or target and loads the WWT image collection to that browser |
|
Sets the image collection as loaded in the sky browser |
|
Moves the hover circle to the coordinate specified by the image index |
|
Reloads the sky browser display copy for the node index that is sent in |
|
Takes an identifier to a sky browser and removes the latest added rendered copy to it |
|
Takes an identifier to a sky browser or target and an index to an image |
|
Takes in identifier to a sky browser or target and removes them |
|
Takes an identifier to a sky browser or a sky target and a vertical field of view |
|
Takes an index to an image and selects that image in the currently selected sky browser |
|
Sends all sky browsers’ identifiers to their respective CEF browser |
|
Takes an identifier to a sky browser or a sky target and a rgb color in the ranges [0, 255] |
|
Takes an identifier to a sky browser and a radius value between 0 and 1, where 0 is rectangular and 1 is circular |
|
Sets the screen space size of the sky browser to the numbers specified by the input [x, y] |
|
Takes the identifier of a sky browser or a sky target and equatorial coordinates Right Ascension and Declination |
|
Takes an identifier to a screen space renderable and adds it to the module |
|
Takes an identifier to a sky browser or a sky target, an image index and the order which it should have in the selected image list |
|
Takes an identifier to a sky browser or sky target, an index to an image and a value for the opacity |
|
Takes an identifier to a sky browser or target |
|
Takes an identifier to a sky browser or a sky target and a vertical field of view |
|
Show or hide all targets and browsers |
|
Starts the fine-tuning of the target rendered copy to it |
|
Starts the setup process of the sky browers |
|
Stop animations |
|
Returns a table of data regarding the current view and the sky browsers and targets |
|
Takes an identifier to a sky browser or sky target and the [x, y] starting position and the [x, y] translation vector |
|
Returns the AAS WorldWide Telescope image collection url |
Functions
addDisplayCopy
Takes an identifier to a sky browser and adds a rendered copy to it. The first argument is the position of the first copy. The position is in RAE or Cartesian coordinates, depending on if ‘Use Radius Azimuth Elevation’ is checked. The second argument is the number of copies. If RAE is used, they will be evenly spread out on the azimuth.
identifier
String
numberOfCopies
Integer?
- Default value:1
position
vec3?
- Default value:glm::vec3(2.1f, 0.f, 0.f)
Return type: void
openspace.skybrowser.addDisplayCopy(identifier, numberOfCopies, position)
addPairToSkyBrowserModule
Takes the identifier of the sky target and a sky browser and adds them to the sky browser module.
targetId
String
browserId
String
Return type: void
openspace.skybrowser.addPairToSkyBrowserModule(targetId, browserId)
adjustCamera
Takes an identifier to a sky browser or sky target. Rotates the camera so that the target is placed in the center of the view.
id
String
Return type: void
openspace.skybrowser.adjustCamera(id)
centerTargetOnScreen
Takes an identifier to a sky browser and animates its corresponding target to the center of the current view.
identifier
String
Return type: void
openspace.skybrowser.centerTargetOnScreen(identifier)
createTargetBrowserPair
Creates a sky browser and a target.
Return type: void
openspace.skybrowser.createTargetBrowserPair()
disableHoverCircle
Disables the hover circle, if there is one added to the sky browser module.
Return type: void
openspace.skybrowser.disableHoverCircle()
finetuneTargetPosition
Finetunes the target depending on a mouse drag. rendered copy to it. First argument is the identifier of the sky browser, second is the start position of the drag and third is the end position of the drag.
identifier
String
translation
vec2
Return type: void
openspace.skybrowser.finetuneTargetPosition(identifier, translation)
getListOfImages
Deprecated in favor of ‘listOfExoplanets’
Return type: Table
openspace.skybrowser.getListOfImages()
getTargetData
Deprecated in favor of ‘targetData’
Return type: Table
openspace.skybrowser.getTargetData()
getWwtImageCollectionUrl
Deprecated in favor of ‘wwtImageCollectionUrl’
Return type: Table
openspace.skybrowser.getWwtImageCollectionUrl()
initializeBrowser
Takes an identifier to a sky browser and starts the initialization for that browser. That means that the browser starts to try to connect to the AAS WorldWide Telescope application by sending it messages. And that the target matches its appearance to its corresponding browser.
identifier
String
Return type: void
openspace.skybrowser.initializeBrowser(identifier)
listOfImages
Returns a list of all the loaded AAS WorldWide Telescope images that have been loaded. Each image has a name, thumbnail url, equatorial spherical coordinates RA and Dec, equatorial Cartesian coordinates, if the image has celestial coordinates, credits text, credits url and the identifier of the image which is a unique number.
Return type: Table
openspace.skybrowser.listOfImages()
loadImagesToWWT
Takes an identifier to a sky browser or target and loads the WWT image collection to that browser.
identifier
String
Return type: void
openspace.skybrowser.loadImagesToWWT(identifier)
loadingImageCollectionComplete
Sets the image collection as loaded in the sky browser. Takes an identifier to the sky browser.
identifier
String
Return type: void
openspace.skybrowser.loadingImageCollectionComplete(identifier)
moveCircleToHoverImage
Moves the hover circle to the coordinate specified by the image index.
imageUrl
String
Return type: void
openspace.skybrowser.moveCircleToHoverImage(imageUrl)
reloadDisplayCopyOnNode
Reloads the sky browser display copy for the node index that is sent in. .If no ID is sent in, it will reload all display copies on that node.
nodeIndex
Integer
id
String?
- Default value:"all"
Return type: void
openspace.skybrowser.reloadDisplayCopyOnNode(nodeIndex, id)
removeDisplayCopy
Takes an identifier to a sky browser and removes the latest added rendered copy to it.
identifier
String
Return type: void
openspace.skybrowser.removeDisplayCopy(identifier)
removeSelectedImageInBrowser
Takes an identifier to a sky browser or target and an index to an image. Removes that image from that sky browser.
identifier
String
imageUrl
String
Return type: void
openspace.skybrowser.removeSelectedImageInBrowser(identifier, imageUrl)
removeTargetBrowserPair
Takes in identifier to a sky browser or target and removes them.
identifier
String
Return type: void
openspace.skybrowser.removeTargetBrowserPair(identifier)
scrollOverBrowser
Takes an identifier to a sky browser or a sky target and a vertical field of view. Changes the field of view as specified by the input.
identifier
String
scroll
Number
Return type: void
openspace.skybrowser.scrollOverBrowser(identifier, scroll)
selectImage
Takes an index to an image and selects that image in the currently selected sky browser.
imageUrl
String
Return type: void
openspace.skybrowser.selectImage(imageUrl)
sendOutIdsToBrowsers
Sends all sky browsers’ identifiers to their respective CEF browser.
Return type: void
openspace.skybrowser.sendOutIdsToBrowsers()
setBorderColor
Takes an identifier to a sky browser or a sky target and a rgb color in the ranges [0, 255].
identifier
String
red
Integer
green
Integer
blue
Integer
Return type: void
openspace.skybrowser.setBorderColor(identifier, red, green, blue)
setBorderRadius
Takes an identifier to a sky browser and a radius value between 0 and 1, where 0 is rectangular and 1 is circular
identifier
String
radius
Number
Return type: void
openspace.skybrowser.setBorderRadius(identifier, radius)
setBrowserRatio
Sets the screen space size of the sky browser to the numbers specified by the input [x, y].
identifier
String
ratio
Number
Return type: void
openspace.skybrowser.setBrowserRatio(identifier, ratio)
setEquatorialAim
Takes the identifier of a sky browser or a sky target and equatorial coordinates Right Ascension and Declination. The target will animate to this coordinate and the browser will display the coordinate.
identifier
String
rightAscension
Number
declination
Number
Return type: void
openspace.skybrowser.setEquatorialAim(identifier, rightAscension, declination)
setHoverCircle
Takes an identifier to a screen space renderable and adds it to the module.
identifier
String
Return type: void
openspace.skybrowser.setHoverCircle(identifier)
setImageLayerOrder
Takes an identifier to a sky browser or a sky target, an image index and the order which it should have in the selected image list. The image is then changed to have this order.
identifier
String
imageUrl
String
imageOrder
Integer
Return type: void
openspace.skybrowser.setImageLayerOrder(identifier, imageUrl, imageOrder)
setOpacityOfImageLayer
Takes an identifier to a sky browser or sky target, an index to an image and a value for the opacity.
identifier
String
imageUrl
String
opacity
Number
Return type: void
openspace.skybrowser.setOpacityOfImageLayer(identifier, imageUrl, opacity)
setSelectedBrowser
Takes an identifier to a sky browser or target. Sets that sky browser currently selected.
identifier
String
Return type: void
openspace.skybrowser.setSelectedBrowser(identifier)
setVerticalFov
Takes an identifier to a sky browser or a sky target and a vertical field of view. Changes the field of view as specified by the input.
identifier
String
verticalFieldOfView
Number
Return type: void
openspace.skybrowser.setVerticalFov(identifier, verticalFieldOfView)
showAllTargetsAndBrowsers
Show or hide all targets and browsers. Takes a boolean that sets it to either be shown or not.
show
Boolean
Return type: void
openspace.skybrowser.showAllTargetsAndBrowsers(show)
startFinetuningTarget
Starts the fine-tuning of the target rendered copy to it.
identifier
String
Return type: void
openspace.skybrowser.startFinetuningTarget(identifier)
startSetup
Starts the setup process of the sky browers. This function calls the Lua function ‘sendOutIdsToBrowsers’ in all nodes in the cluster.
Return type: void
openspace.skybrowser.startSetup()
stopAnimations
Stop animations. Takes an identifier to a sky browser.
identifier
String
Return type: void
openspace.skybrowser.stopAnimations(identifier)
targetData
Returns a table of data regarding the current view and the sky browsers and targets. returns a table of data regarding the current targets.
Return type: Table
openspace.skybrowser.targetData()
translateScreenSpaceRenderable
Takes an identifier to a sky browser or sky target and the [x, y] starting position and the [x, y] translation vector.
identifier
String
startingPositionX
Number
startingPositionY
Number
translationX
Number
translationY
Number
Return type: void
openspace.skybrowser.translateScreenSpaceRenderable(identifier, startingPositionX, startingPositionY, translationX, translationY)
wwtImageCollectionUrl
Returns the AAS WorldWide Telescope image collection url.
Return type: Table
openspace.skybrowser.wwtImageCollectionUrl()