worldwide-telescope-webgl-s.../wwtcontrol.md

186 строки
4.8 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

---
description: Reference documentation of the WWTControl class.
---
2018-07-15 19:39:11 +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
controls paired singleton instance of the [**ScriptInterface** class] after
calling the [**initControlParam**] function.
2018-07-15 19:39:11 +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
| Native Property | Type | Description |
2019-05-12 06:36:36 +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
| Get/Set Property | Type | Description |
2019-05-12 06:36:36 +03:00
| :-- |
| [**renderNeeded**] | bool | TBC. |
| Static Function | Description |
2019-05-12 06:36:36 +03:00
| :-- |
| [**go**] | TBC |
| [**initControl**] | TBC |
| [**initControlParam**] | TBC |
| [**setBackgroundImageName**] | TBC |
| [**setForegroundImageName**] | TBC |
| [**showExplorerUI**] | TBC |
| [**showFolderUI**] | TBC |
| [**showLayers**] | TBC |
| [**useUserLocation**] | TBC |
[WebGL Engine Examples]: http://webhosted.wwt-forum.org/webengine-examples/
[**ready** event]: ./scriptinterface.md#ready-event
[**ScriptInterface** class]: ./scriptinterface.md
[**Settings** class]: ./settings.md
[**Annotation** class]: ./annotation.md
[**Circle** class]: ./circle.md
[**Poly** class]: ./poly.md
[**PolyLine** class]: ./polyline.md
[**constellation**]: #constellation-property
[**fader**]: #fader-property
[**layers**]: #layers-property
[**renderType**]: #rendertype-property
[**sandboxMode**]: #sandboxmode-property
[**tour**]: #tour-property
[**tourEdit**]: #touredit-property
[**uiController**]: #uicontroller-property
[**renderNeeded**]: #renderneeded-property
2018-07-15 19:39:11 +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
<!-- ====================================================================== -->
# **constellation** Property
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **fader** Property
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
2019-05-12 06:36:36 +03:00
<!-- ====================================================================== -->
# **layers** Property
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **renderType** Property
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **sandboxMode** Property
2019-05-12 06:36:36 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **tour** Property
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
2019-05-12 06:36:36 +03:00
<!-- ====================================================================== -->
# **tourEdit** Property
2019-05-12 06:36:36 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **uiController** Property
2019-05-12 06:36:36 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **renderNeeded** Property
2018-07-15 19:39:11 +03:00
Not documented :-( *Note*: get/set style.
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **go** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **initControl** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **initControlParam** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **setBackgroundImageName** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **setForegroundImageName** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **showExplorerUI** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **showFolderUI** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **showLayers** function
2018-07-15 19:39:11 +03:00
Not documented :-(
2018-07-15 19:39:11 +03:00
<!-- ====================================================================== -->
# **useUserLocation** function
2018-07-15 19:39:11 +03:00
Not documented :-(