Main Interfaces

The following are the main interfaces you use when developing a client application that communicates with TerraExplorer Plus or TerraExplorer Pro. There are additional interfaces that the following interfaces are derived from. For further information on all derived interfaces, read each interface section. Older versions of some interfaces are also exposed by TerraExplorer. Unless you target development for a TerraExplorer version prior to v5.0, it is highly advised to always use the latest available interface version. For older interface help topics see the documentation for the respective version.

The ISGWorld80 Interface

ISGWorld80 in the main entry point to most TerraExplorer interfaces. Through this interface you can manage your application and 3D content and handle events.

The interfaces listed below are the main properties of the ISGWorld80 interface. SeeISGWorld80” for a full list of all ISGWorld properties, methods and events.

§   IProject80 (.Project) – Open the project, manage its properties and save the project.

§   INavigate80 (.Navigate) – Navigate in the 3D World by setting the camera position and produce complex movements such as FlyTo and ZoomIn and ZoomOut.

§   IProjectTree80 (.ProjectTree) - Provides complete access to the TerraExplorer Project Tree. It allows the creation of groups and queries on objects in the Tree.  

§   ICreator80 (.Creator) – Create and delete all layers, objects, positions, geometry, colors, and presentations.

§   IAnalysis80 (.Analysis) – Perform terrain analysis operations

§   ITerrain80 (.Terrain) – Exposes information, such as the MPT file name that is being used, and additional information about the MPT coordinate system, and height information.

§   IWindow80 (.Window) – Allow the user to query the 3D World according to points on the screen, create and manage popup windows, create snapshots and manage user interface elements such as on screen layers and controls.  

§   ICommand80 (.Command) – Enable activation of TerraExplorer user interface operations such as turning on and off the underground mode or start manual object editing.

§   ICoordServices80(.CoordServices) – Coordinate system related features. It allows you to define a coordinate system for your input coordinates, and have TerraExplorer convert them to the coordinate system of the current terrain database.

§   ISGServer80 (.SGServer) – Connect and disconnect from a SkylineGlobe Server and return information about the currently connected server.

§   Events Listen to TerraExplorer events using the AttachEvent method.

Note:    The current set of interfaces is supported by TerraExplorer v8.0. When working with older versions of TerraExplorer, refer to the relevant Programmers Guide.

The ICreator80 Interface

The ICreator80 interface is the main factory for objects, layers and geometry. 

§   Feature Layers – Load feature layers and create new ones.  

§   Raster Layers – Load imagery and elevation raster layers.

§   Mesh Layers – Load from a file or from SGS unified, stream optimized 3D Mesh Layer (3DML) databases.

§   Presentations – Create new presentations.

§   Locations – Create position object and locations.

§   2D Objects – Set of interfaces that handle text and image labels and 2D primitives (Text label, Image label, Polyline, Polygon, Rectangle, Regular Polygon, 2D Arrow, Circle, Ellipse, Arc and VideoOnTerrain).

§   3D Objects – Set of interfaces that handle 3D models and primitives (3D Model, Point Cloud Model, Building, 3D Polygon, Box, Cylinder, Sphere, Cone, Pyramid and 3D Arrow).

§   Messages – Interfaces to add a message that can be associated to other objects, and a Project Tree message.

The IAnalysis80 Interface

The IAnalysis80 interface is the factory for all terrain analysis objects. 

§   Line of sight analysis

§   Viewshed analysis

§   3D viewshed analysis

§   Viewshed visibility query

§   Threat dome

§   Contour map

§   Slope map

§   Terrain area

§   Terrain perimeter

§   Terrain surface area

§   Terrain surface perimeter

§   Shadow visibility query

§   Flood analysis

§   Volume analysis

§   Terrain profile