AGI STK Objects 11 Send comments on this topic.
UseTerrain Property (IAgPlace)
See Also  Example





Description

Opt whether to set altitude automatically by using terrain data.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property UseTerrain() As Boolean

[C#]
public bool UseTerrain {get; set;}

[Managed C++]
public: __property bool get_UseTerrain();
public: __property void set_UseTerrain(
bool
);

[Unmanaged C++]
public: HRESULT get_UseTerrain(
VARIANT_BOOL * pRetVal
);
public: HRESULT put_UseTerrain(
VARIANT_BOOL NewUseTerrain
);

[Java]
public bool getUseTerrain();public void setUseTerrain(
bool
);

Example

Move a place while use terrain option is set true
[C#] Copy Code
// Set altitude automatically by using terrain data 
place.UseTerrain = true
 
// Set the position ignores the altitude value in AssignGeodetic 
place.Position.AssignGeodetic(29.98, -90.259); 
 
// Ignores the altitude value in AssignGeocentric 
place.Position.AssignGeocentric(32.12, -110.93787); 
 
// Ignores the radius value in AssignSpherical 
place.Position.AssignSpherical(40.65, -73.787); 
 

Move a place while use terrain option is set true
[Visual Basic .NET] Copy Code
' Set altitude automatically by using terrain data
place.UseTerrain = True

' Set the position ignores the altitude value in AssignGeodetic
place.Position.AssignGeodetic(29.98, -90.25, 9)

' Ignores the altitude value in AssignGeocentric
place.Position.AssignGeocentric(32.12, -110.93, 787)

' Ignores the radius value in AssignSpherical
place.Position.AssignSpherical(40.65, -73.78, 7)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1