Home > Working with SGWorld > Terrain (ITerrain6)

Terrain (ITerrain6)

The ITerrain interface exposes information about the terrain, such as the MPT file name that is being used, and information about the MPT coordinate system.

 

 

Properties

 

BestLevelWidth

The width, in meters of the best available terrain block. Each block is 256 by 256 pixels.

Bottom

Returns the y-coordinate of the lower right corner of the terrain database.

CoordinateSystem

Returns an ICoordinateSystem6 representing the MPT coordinate system.

Description

Returns a user-defined description of the MPT.

Left

Returns the x-coordinate of the terrain database upper left corner.

Levels

Returns the number of imaginary resolution levels that are used to enhance the visual quality when the camera is close to the ground.

Name

Returns a user-defined description of the local or remote MPT database.

Opacity

Returns or sets the degree of opacity of the terrain.

Right

Returns the x-coordinate of the bottom-right corner of the terrain database.

StreamQuality

Returns the stream quality level.

Top

Returns the y-coordinate of the terrain database upper left corner.

 

Methods

 

GetGroundHeightInfo

Returns the height of a given coordinate on the terrain using the given accuracy level.