ILineOfSight81
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 |
|
|
|
Gets the positions of targets that are not visible from the observer viewpoint. |
|
|
|
Gets the ID of the object. (Inherited from ITerraExplorerObject81) |
|
|
|
Gets an enum that identifies the type of the object. (Inherited from ITerraExplorerObject81) |
|
|
|
Gets and sets a Boolean that determines whether the object is saved in the Fly file. (Inherited from ITerraExplorerObject81) |
|
|
|
Gets the positions of targets that are visible from the observer viewpoint. |
|
|
|
Methods |
|
|
|
Gets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject81) |
|
|
|
GetParam |
Reserved. Currently not used. |
|
|
Sets an array of text strings assigned to each object global namespace. (Inherited from ITerraExplorerObject81) |
|
|
|
SetParam |
Reserved. Currently not used. |
HiddenTargets
Gets the positions of targets that are not 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 ITerrain81 interface to retrieve information about the coordinate system units.
Note: In JavaScript (Internet Explorer only), append toArray() after the API method to convert the result into a usable JavaScript array. E.g.,
var hTargets = LineOfSight.HiddenTargets.toArray();
In C++, a SafeArray is returned.
|
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 ITerrain81 interface to retrieve information about the coordinate system units.
Note: In JavaScript (Internet Explorer only), append toArray() after the API method to convert the result into a usable JavaScript array. E.g.,
var vTargets = LineOfSight.VisibleTargets.toArray();
In C++, a SafeArray is returned.
|
JavaScript |
|
|
VisibleTargets |
|
|
C# |
|
|
dynamic VisibleTargets { get; } |
|
|
C++ |
|
|
HRESULT VisibleTargets([out, retval] VARIANT* pArrPosition) |
|