ITerrainObject80

This interface gives objects the properties of draw order and ground object status.

 

 

Properties

 

BBox

An IBBox3D80 representing the bounding box that designates the section of the object to load.

DrawOrder

Gets and sets the draw order between ATC_ON_TERRAIN objects.

GroundObject

Gets and sets a Boolean that determines whether the object is a ground object.

Highlight

Gets and sets a Boolean that determines whether the object is highlighted in the 3D Window.

Tint

An IColor80 representing the object’s tint color. This can be used to highlight an object.

 

Methods

 

GetRecommendedDistance

Returns a recommended viewing distance (in meters) from the object based on the size of the object in the 3D Window.

DrawOrder

Gets and sets the draw order between ATC_ON_TERRAIN objects. Objects with higher values are drawn on top of objects with lower values.

 

JavaScript

 

 

 

DrawOrder

 

C#

 

 

 

double DrawOrder { get; set; }

 

C++

 

 

 

HRESULT DrawOrder([out, retval] double* pVal)

HRESULT DrawOrder([in] double pVal)

GroundObject

Gets and sets a Boolean that determines whether the object is a ground object. For more information about ground objects, see the TerraExplorer User Manual.

 

JavaScript

 

 

 

GroundObject

 

C#

 

 

 

bool GroundObject { get; set; }

 

C++

 

 

 

 

HRESULT GroundObject([out, retval] VARIANT_BOOL* pVal)

HRESULT GroundObject([in] VARIANT_BOOL pVal)

Highlight

Gets and sets a Boolean that determines whether the object is highlighted in the 3D Window.

 

JavaScript

 

 

 

Highlight

 

C#

 

 

 

bool Highlight { get; set;}

 

C++

 

 

 

HRESULT Highlight([out, retval] VARIANT_BOOL* pVal)

HRESULT Highlight([in] VARIANT_BOOL* pVal)

 

GetRecommendedDistance

Returns a recommended viewing distance (in meters) from the object. This distance is calculated based on the size of the object in the 3D Window.

 

JavaScript

 

GetRecommendedDistance()

 

C#

 

double GetRecommendedDistance()

 

C++

 

HRESULT GetRecommendedDistance(

       double* pVal)

Return Value

pVal

The recommended viewing distance, in meters, from the object.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.