2019-05-12 06:34:21 +03:00
|
|
|
|
---
|
|
|
|
|
description: Reference documentation of the WWTControl class.
|
|
|
|
|
---
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
The **WWTControl** object holds the state of the WWT WebGL engine in a given
|
|
|
|
|
webpage. It is a singleton that can be obtained with:
|
|
|
|
|
|
|
|
|
|
```js
|
|
|
|
|
var wwt_ctl = wwtlib.WWTControl.singleton;
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
However, operations on the control are unlikely to succeed until it is
|
|
|
|
|
initialized by waiting for the [**ready** event] to be fired from the
|
|
|
|
|
control’s paired singleton instance of the [**ScriptInterface** class] after
|
|
|
|
|
calling the [**initControlParam**] function.
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-12 23:43:06 +03:00
|
|
|
|
Note that the code examples below will not run on their own; more scaffolding
|
|
|
|
|
is needed. Live samples are collected on the [WebGL Engine Examples] page and
|
|
|
|
|
cross-linked below.
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
| Native Property | Type | Description |
|
2019-05-12 06:36:36 +03:00
|
|
|
|
| :-- |
|
2019-05-13 02:03:51 +03:00
|
|
|
|
| [**constellation**] | string | TBC. |
|
|
|
|
|
| [**fader**] | BlendState | TBC. |
|
|
|
|
|
| [**layers**] | TBC. | TBC. |
|
|
|
|
|
| [**renderType**] | int | Enumeration? |
|
|
|
|
|
| [**sandboxMode**] | bool | TBC. |
|
|
|
|
|
| [**tour**] | TBC. | TBC. |
|
|
|
|
|
| [**tourEdit**] | TBC. | TBC. |
|
|
|
|
|
| [**uiController**] | TBC. |
|
2019-05-12 06:36:36 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
| Get/Set Property | Type | Description |
|
2019-05-12 06:36:36 +03:00
|
|
|
|
| :-- |
|
2019-05-13 02:03:51 +03:00
|
|
|
|
| [**renderNeeded**] | bool | TBC. |
|
|
|
|
|
|
|
|
|
|
| Static Function | Description |
|
2019-05-12 06:36:36 +03:00
|
|
|
|
| :-- |
|
2019-05-13 02:03:51 +03:00
|
|
|
|
| [**go**] | TBC |
|
|
|
|
|
| [**initControl**] | TBC |
|
|
|
|
|
| [**initControlParam**] | TBC |
|
|
|
|
|
| [**setBackgroundImageName**] | TBC |
|
|
|
|
|
| [**setForegroundImageName**] | TBC |
|
|
|
|
|
| [**showExplorerUI**] | TBC |
|
|
|
|
|
| [**showFolderUI**] | TBC |
|
|
|
|
|
| [**showLayers**] | TBC |
|
|
|
|
|
| [**useUserLocation**] | TBC |
|
2019-05-12 06:34:21 +03:00
|
|
|
|
|
2019-05-12 23:45:20 +03:00
|
|
|
|
[WebGL Engine Examples]: http://webhosted.wwt-forum.org/webengine-examples/
|
2019-05-13 02:14:23 +03:00
|
|
|
|
[**ready** event]: ./scriptinterface.md#ready-event
|
2019-05-12 06:34:21 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
[**ScriptInterface** class]: ./scriptinterface.md
|
2019-05-12 23:56:21 +03:00
|
|
|
|
[**Settings** class]: ./settings.md
|
|
|
|
|
[**Annotation** class]: ./annotation.md
|
|
|
|
|
[**Circle** class]: ./circle.md
|
|
|
|
|
[**Poly** class]: ./poly.md
|
|
|
|
|
[**PolyLine** class]: ./polyline.md
|
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
[**constellation**]: #constellation-property
|
|
|
|
|
[**fader**]: #fader-property
|
|
|
|
|
[**layers**]: #layers-property
|
|
|
|
|
[**renderType**]: #rendertype-property
|
|
|
|
|
[**sandboxMode**]: #sandboxmode-property
|
|
|
|
|
[**tour**]: #tour-property
|
|
|
|
|
[**tourEdit**]: #touredit-property
|
|
|
|
|
[**uiController**]: #uicontroller-property
|
2019-05-13 00:37:26 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
[**renderNeeded**]: #renderneeded-property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
[**go**]: #go-function
|
|
|
|
|
[**initControl**]: #initcontrol-function
|
|
|
|
|
[**initControlParam**]: #initcontrolparam-function
|
|
|
|
|
[**setBackgroundImageName**]: #setbackgroundimagename-function
|
|
|
|
|
[**setForegroundImageName**]: #setforegroundimagename-function
|
|
|
|
|
[**showExplorerUI**]: #showexplorerui-function
|
|
|
|
|
[**showFolderUI**]: #showfolderui-function
|
|
|
|
|
[**showLayers**]: #showlayers-function
|
|
|
|
|
[**useUserLocation**]: #useuserlocation-function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **constellation** Property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **fader** Property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-12 06:36:36 +03:00
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **layers** Property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **renderType** Property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **sandboxMode** Property
|
2019-05-12 06:36:36 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **tour** Property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-12 06:36:36 +03:00
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **tourEdit** Property
|
2019-05-12 06:36:36 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **uiController** Property
|
2019-05-12 06:36:36 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **renderNeeded** Property
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-( *Note*: get/set style.
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **go** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **initControl** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **initControlParam** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **setBackgroundImageName** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **setForegroundImageName** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 00:57:57 +03:00
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **showExplorerUI** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 00:57:57 +03:00
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **showFolderUI** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 00:57:57 +03:00
|
|
|
|
|
2019-05-13 00:20:28 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **showLayers** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
|
|
|
|
|
2019-05-13 00:57:57 +03:00
|
|
|
|
<!-- ====================================================================== -->
|
2019-05-13 02:03:51 +03:00
|
|
|
|
# **useUserLocation** function
|
2018-07-15 19:39:11 +03:00
|
|
|
|
|
2019-05-13 02:03:51 +03:00
|
|
|
|
Not documented :-(
|