STK ObjectsSend comments on this topic.
UseTerrain Property (IAgFacility)
See Also
Windows





Windows & Linux

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 facility while use terrain option is set true
[C#]
// Set altitude automatically by using terrain data
fac.UseTerrain = true;

// Set the position ignores the altitude value in AssignGeodetic
fac.Position.AssignGeodetic(29.98, -90.25, 9);

// Ignores the altitude value in AssignGeocentric
fac.Position.AssignGeocentric(32.12, -110.93, 787);

// Ignores the radius value in AssignSpherical
fac.Position.AssignSpherical(40.65, -73.78, 7);
Move a facility while use terrain option is set true
[Visual Basic .NET]
' Set altitude automatically by using terrain data
fac.UseTerrain = True

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

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

' Ignores the radius value in AssignSpherical
fac.Position.AssignSpherical(40.65, -73.78, 7)
© 2024 Analytical Graphics, Inc. All Rights Reserved.