Description
Provides access to the properties and methods
used in defining a facility object.
Object Model
Public Methods
GetAzElMask |
Method to get the az-el
mask. A member of the AgEAzElMaskType enumeration. |
GetAzElMaskData |
Method to get az-el mask
data. |
ResetAzElMask |
Method to reset the az-el
mask. |
SetAzElMask |
Method to set an az-el
mask. A member of the AgEAzElMaskType enumeration. |
Public Properties
AccessConstraints |
Get the constraints imposed
on the facility. |
AltRef |
The altitude reference of
the object. |
Atmosphere |
The local atmosphere. |
Graphics |
Get the 2D Graphics
properties of the facility. |
HeightAboveGround |
The height of the facility
above its model of the ground. The height is measured along the
normal to surface defined by reference ellipsoid of the central
body. The facility models the ground as an ellipsoid passing
through the ground position. Uses Distance Dimension. |
LocalTimeOffset |
The amount of the time
offset from GMT, if this option is used. Uses Time Dimension. |
Position |
Get the position of the
facility. |
RadarClutterMap |
Returns the radar clutter
map. |
RadarCrossSection |
Returns the radar cross
sectoin. |
TerrainNorm |
The method for determining
the normal to the local terrain. |
TerrainNormData |
Data used in specifying
terrain slope. |
UseLocalTimeOffset |
Opt whether to use a local
time offset from GMT. |
UseTerrain |
Opt whether to set altitude
automatically by using terrain data. |
VO |
Get the 3D Graphics
properties of the facility. |
Example
Create a facility (on
current scenario central body)
[C#] |
Copy Code
|
IAgFacility facility = root.CurrentScenario.Children.New(AgESTKObjectType.eFacility, "MyFacility") as IAgFacility;
|
|
Create a facility on
Earth at lat/lon/alt
[C#] |
Copy Code
|
IAgFacility facility = root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.eFacility, "MyFacility", "Earth") as IAgFacility;
facility.Position.AssignPlanetodetic(0.4506, -1.4011, 4);
|
|
Create a facility on
specified central body at lat/lon/alt
[C#] |
Copy Code
|
IAgFacility facObject = root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.eFacility, "Facility1", "Mars") as IAgFacility;
facObject.Position.AssignPlanetodetic(-5.4245, 0.1902, 0);
|
|
Create a facility
from facility database
[C#] |
Copy Code
|
<a href="STKUtil.chm::/STKUtil~AgExecCmdResult.html">AgExecCmdResult</a> result = root.ExecuteCommand("GetDirectory / Database Facility");
string facDataDir = result[0];
string filelocation = Path.Combine(facDataDir, @"stkFacility.fd");
string command = "ImportFromDB * Facility \"" + filelocation + "\" Class Facility SiteName Weilheim";
root.ExecuteCommand(command);
IAgFacility facility = root.GetObjectFromPath("Facility/Weilheim") as IAgFacility;
|
|
Create a facility (on
current scenario central body)
[Visual Basic .NET] |
Copy Code
|
Dim facility As IAgFacility =
TryCast(root.CurrentScenario.Children.[New](AgESTKObjectType.eFacility,
"MyFacility"), IAgFacility)
|
|
Create a facility on
Earth at lat/lon/alt
[Visual Basic .NET] |
Copy Code
|
Dim facility As
IAgFacility =
TryCast(root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.eFacility,
"MyFacility", "Earth"), IAgFacility)
facility.Position.AssignPlanetodetic(0.4506, -1.4011, 4)
|
|
Create a facility on
specified central body at lat/lon/alt
[Visual Basic .NET] |
Copy Code
|
Dim facObject As
IAgFacility =
TryCast(root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.eFacility,
"Facility1", "Mars"), IAgFacility)
facObject.Position.AssignPlanetodetic(-5.4245, 0.1902, 0)
|
|
Create a facility
from facility database
[Visual Basic .NET] |
Copy Code
|
Dim result As AgExecCmdResult =
root.ExecuteCommand("GetDirectory / Database
Facility")
Dim facDataDir As String =
result(0)
Dim filelocation As String =
Path.Combine(facDataDir, "stkFacility.fd")
Dim command As String =
"ImportFromDB * Facility """ +
filelocation + """
Class Facility SiteName Weilheim"
root.ExecuteCommand(command)
Dim facility As IAgFacility =
TryCast(root.GetObjectFromPath("Facility/Weilheim"), IAgFacility)
|
|
Create a facility
(on the current scenario central body)
[MATLAB] |
Copy Code
|
% IAgStkObjectRoot root: STK Object Model Root
facility = root.CurrentScenario.Children.New('eFacility', 'MyFacility');
|
|
Set the geodetic
position of the facility
[MATLAB] |
Copy Code
|
% IAgFacility facility: Facility Object
facility.Position.AssignGeodetic(41.9849,21.4039,0) % Latitude, Longitude, Altitude
% Set altitude to height of terrain
facility.UseTerrain = true;
% Set altitude to a distance above the ground
facility.HeightAboveGround = .05; % km
|
|
Add a AzEl Mask
to a Facility
[MATLAB] |
Copy Code
|
% IAgFacility facility: Facility Object
facility.SetAzElMask('eTerrainData',0);
|
|
CoClasses that Implement IAgFacility