SkylineGlobe control class reference overview

The Skyline Globe API (SGAPI) describes the classes and objects required to use TerraExplorer API in JavaScript. SGAPI can be used to build a Skyline Globe tool, develop a Skyline Globe client application or develop scripted HTML pages for TerraExplorer.

The following classes are provided by SGAPI:

  

Class

Description

SGWorld 

This is the control class that provides SkylineGlobe functionality to the web page.

SGWorld.navigate 

The navigate property of the SGWorld class is an object that contains several navigation methods. It is used to control the camera position and orientation in the SkylineGlobe World.

SGWorld.creator 

The creator property is the SGWorld manufacturing object that creates objects such as polylines, labels and groups.

SGWorld.window 

The window property of the SGWorld class is a class that is a wrapper for all the functionality that represents interaction with the 3D window. For example snapshots, dimensions and query pixel information.

SGWorld.root 

The root property is an object of type SGNode. All the objects added to the Skyline Globe Control are added under the root node.

SGNode 

Provides objects hierarchy management in the Skyline Globe environment.

SGNodeList 

Provides a list of child nodes including methods that allow the user to access nodes in the list easily.

SGPopup 

The SGPopup class enables the client to display pop-up windows (similar to HTML IFRAME) over the 3D window.

SGNotification 

A special pop-up window that can only have a single line of text and a “close” button. It may or may not have a time-out. It is commonly used to notify short text messages to the user.

SGPosition 

The SGPosition class contains both coordinate (x, y, height) and orientation (yaw, pitch, and roll) properties. In addition, the SGPosition can also describe a point of interest and the distance from which to observe the point of interest.

SGCoord2D 

Represents a two dimensional coordinate (x,y) in the SGWorld, usually a latitude, longitude coordinate.

SGCoord3D 

Represents a three dimensional coordinate (x,y,height) in the SGWorld.

SGColor 

Represents a color in the Skyline Globe environment.

SGLabelStyle 

Denotes a style object for labels created using the SGWorld.creator.createLabel() method.

SGWaypoint 

Contains information about a route waypoint: position, orientation and speed. Use the SGWaypoint class when creating a route object with SGWorld.creator.createRoute() method.

SGFramework 

The SGFramework class provides SkylineGlobe framework functionality such as adding geographical locations to Favorites or showing HTML under the results pane. It is only available for Skyline Globe business and tools developer (that work under the www.skylineglobe.com website). This class is not available to users developing their own website around the Skyline Globe Control.