ILineOfSight 

This interface provides properties and methods for determining and providing visual indication of the specific locations in the 3D World that can be seen from a selected position.

 

 

Properties

 

HiddenTargets

Gets the positions of targets that are not visible from the observer viewpoint.

ID

Gets the ID of the object. (Inherited from ITerraExplorerObject)

ObjectType

Gets an enum that identifies the type of the object. (Inherited from ITerraExplorerObject)

SaveInFlyFile

Gets and sets a Boolean that determines whether the object is saved in the Fly file. (Inherited from ITerraExplorerObject)

VisibleTargets

Gets the positions of targets that are visible from the observer viewpoint.

 

Methods

 

GetClientData

Gets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject)

GetParam

Reserved. Currently not used.

SetClientData

Sets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject)

SetParam

Reserved. Currently not used.

HiddenTargets

Gets the positions of targets that are not visible from the observer viewpoint. A safe array that contains triplets of doubles is returned, where each triplet is composed of an x-coordinate, a height, and a y-coordinate (XHY order). The height is represented in meters and the x- and y-coordinates are represented in the coordinate system’s units. You can use the ITerrain interface to retrieve information about the coordinate system units.

Note:     In JavaScript, use the VBArray object. E.g.,

var waypoints = route.Waypoints.ToArray()

var arr = new VBArray(waypoints).toArray();

 

JavaScript

 

HiddenTargets

 

C#

 

dynamic HiddenTargets { get; }

 

C++

 

HRESULT HiddenTargets([out, retval] VARIANT* pArrPosition)

VisibleTargets

Gets the positions of targets that are visible from the observer viewpoint. An array that contains triplets of doubles is returned, where each triplet is composed of an x-coordinate, a height, and a y-coordinate (XHY order). The height is represented in meters and the x and y-coordinates are represented in the coordinate system’s units. You can use the ITerrain interface to retrieve information about the coordinate system units.

 

JavaScript

 

VisibleTargets

 

C#

 

dynamic VisibleTargets { get; }

 

C++

 

HRESULT VisibleTargets([out, retval] VARIANT* pArrPosition)