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 * pEnableTerrain
);
public: HRESULT put_UseTerrain(
VARIANT_BOOL EnableTerrain
);
|
[Java] |
---|
public bool getUseTerrain();
public void setUseTerrain(
bool
);
|
[Python - STK API ] |
---|
@property
def UseTerrain(self) -> bool:
@UseTerrain.setter
def UseTerrain(self, EnableTerrain:bool) -> None:
|
See Also
Example
Move a place while use terrain option is set true
[C#] |
---|
// 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);
|
|
Move a place while use terrain option is set true
[Visual Basic .NET] |
---|
' 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)
|
|