Home > All Other Interfaces > ITerrainModel

ITerrainModel6

Objects that implement this interface use an external file that is used to define the model rendered on the terrain. Currently, TerraExplorer supports the Collada (DAE) file format, as well as the OpenFlight (FLT) and Direct X (X) file formats and their compressed versions (FPC and XPC).

Supported also are the XPL and XPL2 file formats which provide better performance for the Direct X models. A set of XPL files is created from a single X file where each file contains data for one Level of Detail (LOD) only.

 

 

Properties

 

Action

An IAction6 representing the operation that takes place when the object is clicked in the Project Tree.

Attachment

An IAttachment6 representing the attachment behavior of the model.

BestLOD

The best LOD file based on the viewer position in relation to the object.

ClientData

A text string assigned to each object global namespace. C# exposes this property as get_ClientData and set_ClientData. (Inherited from ITerraExplorerObject6)

FlipTexture

A Boolean that determines whether the model’s textures are automatically flipped.

ID

The ID of the object. (Inherited from ITerraExplorerObject6)

Message

An IMessageObject6 representing the message object triggered when the user double-clicks the model’s Project Tree entry.

ModelFileName

A full path name or a URL to the model that this object should use.

ModelType

Indicates the model type. 

ObjectType

An enum that identifies the type of the object. (Inherited from ITerraExplorerObject6)

Position

An IPosition6 representing the position and orientation of the model on the terrain.

SaveInFlyFile

A Boolean that determines whether the model is saved in the Fly file. (Inherited from ITerraExplorerObject6)

ScaleFactor

The scale factor for the model.

Shadow

An IShadow6 representing the model shadow.

Terrain

An ITerrainObject6 representing terrain properties including draw order and ground object status.

Timespan

An ITimeSpan6 representing the timespan in which the model is visible on the terrain.

Tooltip

An ITooltip6 representing the tooltip that displays when a mouse cursor is placed over the model in the 3D Window.

TreeItem

An ITreeItem6 describing the representation of the model in the Project Tree.

Visibility

An IVisibility6 representing the visibility of the model at different distances, as well as visibility of the object in TerraExplorer Basic Viewer.

 

Methods

 

get_ClientData

This method is exposed only in C#. To use from C++ or JavaScript use the ClientData property. (Inherited from ITerraExplorerObject6)

GetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject6)

set_ClientData

This method is exposed only in C#. To use from C++ or JavaScript use the ClientData property. (Inherited from ITerraExplorerObject6)

SetParam

Reserved. Currently not used. (Inherited from ITerraExplorerObject6)