This commit is contained in:
Phil Rosenfield 2017-08-08 19:40:31 -04:00
Родитель 16888f0491
Коммит 72da6ba88a
3 изменённых файлов: 12 добавлений и 7 удалений

Просмотреть файл

@ -11,7 +11,12 @@
{
"lang": "xml",
"name": "XML"
}
},
{
"lang": "cs",
"name": "C#"
},
]
}
}

Просмотреть файл

@ -1,14 +1,14 @@
## Design Overview
The Windows client version of WorldWide Telescope listens continuously, and without any setup process, for a certain format of communication on a particular port. The format of this communication is in the form of strings, that themselves are formatted in a specific way. An application may be quite short and only need a [**load**](lcapicommands.md#load) call, or perhaps just need the **[new](#new)** and **[update](#update)** commands**.** Typically a simple application will go through the following steps, _after_ WorldWide Telescope has been started:
The Windows client version of WorldWide Telescope listens continuously, and without any setup process, for a certain format of communication on a particular port. The format of this communication is in the form of strings, that themselves are formatted in a specific way. An application may be quite short and only need a [**load**](lcapicommands.md#load) call, or perhaps just need the **[new](lcapicommands.md#new)** and **[update](lcapicommands.md#update)** commands**.** Typically a simple application will go through the following steps, _after_ WorldWide Telescope has been started:
1. Establish the IP address of the computer running WorldWide Telescope. If this is the same computer as the application use the [getIP](utilities.md#getip) utility, if not a utility will have to be written or acquired that establishes the remote IP address.
2. Initialize and open a data file, or files, from a selected source.
3. Initialize the connection with WorldWide Telescope with a [**new**](lcapicommands.md#new) or **[load](lcapicommands.md#load)** call, which will create a new layer within WorldWide Telescope, and return a layer Id number.
4. If the **[new](#new)** command is used:
4. If the **[new](lcapicommands.md#new)** command is used:
1. Fill a string buffer with data from the opened files.
2. Transmit the data to WorldWide Telescope with an **[update](#update)** call, using the layer Id number for reference.
2. Transmit the data to WorldWide Telescope with an **[update](lcapicommands.md#update)** call, using the layer Id number for reference.
3. Repeat this step until all the data has been transmitted.
6. Use the [**getprop**](lcapicommands.md#getprop), [**setprop**](lcapicommands.md#setprop), [**uisettings**](lcapicommands.md#uisettings) commands and parameters to control the view in WorldWide Telescope from the LCAPI application.

Просмотреть файл

@ -8,7 +8,7 @@ The following commands can be used to control layers from the application. Note
| [**activate**](#activate) | Highlights the selected layer in the layer manager. |
| **[delete](#delete)** | Specifies that a layer should be permanently deleted. |
| [**getprop**](#getprop) | Used to retrieve a value of a single layer property. Remarks include the [Table of Properties](#table-of-properties). |
| [**getprops**](#getprops) | Used to retrieve all the properties for a specified layer. Includes lists for [Spreadsheet](#spreadsheet), [3d Model,](#3d-model) [Shapefile](#shapefile) and [ImageSet](#imageSet). |
| [**getprops**](#getprops) | Used to retrieve all the properties for a specified layer. Includes lists for [Spreadsheet](#spreadsheet), [3d Model,](#3d-model) [Shapefile](#shapefile) and [ImageSet](#imageset). |
| **[group](#group)** | Specifies that a layer group should be added. |
| [**layerlist**](#layerlist) | Returns the structure of the layers and layer group names (in an XML document format) that are currently in the layer manager. |
| [**load**](#load) | Specifies a data file, and and some optional parameters, to apply to a new layer. |
@ -853,7 +853,7 @@ Required Parameters
   //
```
For an example of the use of this command in the sample application, see [initWWTLayer](#initWWTLayer).
For an example of the use of this command in the sample application, see [initWWTLayer](sampleapplication.md#sample-program#).
{% endmethod %}
{% method -%}
@ -1244,7 +1244,7 @@ If the call is not successful the following string may be included in the respon
      throw new Exception(s);
  }
```
For an example of the use of this command in the sample application, see [flushBufferToWWT](#flushbuffertowwt).
For an example of the use of this command in the sample application, see [flushBufferToWWT](sampleapplication.md#sample-program).
{% endmethod %}