Description
Provides access to the properties and methods used in defining a place 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 place. |
AltRef | The altitude reference of the object. |
Atmosphere | The local atmosphere. |
Graphics | Get the 2D Graphics properties of the place. |
HeightAboveGround | Height of place above its model of the ground. Height is measured along the normal to surface defined by reference ellipsoid of the central body. Place 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 place. |
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 place. |
Example
Create a place (on current scenario central body)
[C#] | Copy Code |
---|
IAgPlace place = root.CurrentScenario.Children.New(AgESTKObjectType.ePlace, "MyPlace") as IAgPlace;
|
|
Create a place on Earth at lat/lon/alt
[C#] | Copy Code |
---|
IAgPlace place = root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.ePlace, "MyPlace", "Earth") as IAgPlace;
place.Position.AssignPlanetodetic(0.4506, -1.4011, 4);
|
|
Create a place on specified central body at lat/lon/alt
[C#] | Copy Code |
---|
IAgPlace placeObject = root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.ePlace, "Place1", "Mars") as IAgPlace;
placeObject.Position.AssignPlanetodetic(-5.4245, 0.1902, 0);
|
|
Create a place from facility database
[C#] | Copy Code |
---|
IAgExecCmdResult result = root.ExecuteCommand("GetDirectory / Database Facility");
string facDataDir = result[0];
string filelocation = Path.Combine(facDataDir, "stkFacility.fd");
string command = "ImportFromDB * Facility \"" + filelocation + "\" Class Place SiteName Weilheim";
root.ExecuteCommand(command);
IAgPlace place = root.GetObjectFromPath("Place/Weilheim") as IAgPlace;
|
|
Create a place (on current scenario central body)
[Visual Basic .NET] | Copy Code |
---|
Dim place As IAgPlace = TryCast(root.CurrentScenario.Children.[New](AgESTKObjectType.ePlace, "MyPlace"), IAgPlace)
|
|
Create a place on Earth at lat/lon/alt
[Visual Basic .NET] | Copy Code |
---|
Dim place As IAgPlace = TryCast(root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.ePlace, "MyPlace", "Earth"), IAgPlace)
place.Position.AssignPlanetodetic(0.4506, -1.4011, 4)
|
|
Create a place on specified central body at lat/lon/alt
[Visual Basic .NET] | Copy Code |
---|
Dim placeObject As IAgPlace = TryCast(root.CurrentScenario.Children.NewOnCentralBody(AgESTKObjectType.ePlace, "Place1", "Mars"), IAgPlace)
placeObject.Position.AssignPlanetodetic(-5.4245, 0.1902, 0)
|
|
Create a place from facility database
[Visual Basic .NET] | Copy Code |
---|
Dim result As IAgExecCmdResult = 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 Place SiteName Weilheim" root.ExecuteCommand(command)
Dim place As IAgPlace = TryCast(root.GetObjectFromPath("Place/Weilheim"), IAgPlace)
|
|
CoClasses that Implement IAgPlace