Description
Provides access to the properties and methods used in defining a target object.
Public Methods
Public Properties
AccessConstraints | Get the constraints imposed on the target. |
AltRef | Gets or sets the altitude reference of the object. |
Atmosphere | This property is deprecated. The new RFEnvironment property can be used to configure atmospheric models. |
Graphics | Get the 2D Graphics properties of the target. |
HeightAboveGround | Height of target above its model of the ground. Height is measured along the normal to surface defined by reference ellipsoid of the central body. Target models the ground as an ellipsoid passing through the ground position. Uses Distance Dimension. |
LaserEnvironment | Gets the laser environment. |
LightingMaxStep | Gets or sets the maximum step size to use when computing lighting. Only applies (and only can be set) when LightingObstructionModel is eLightingObstructionAzElMask or eLightingObstructionTerrain. Uses Time Dimension. |
LightingObstructionModel | Gets or sets the obstruction model used in lighting computations. |
LocalTimeOffset | The amount of the time offset from GMT, if this option is used. Uses Time Dimension. |
MaxRangeWhenComputingAzElMask | Gets or sets the maximum range to use when computing the az el mask using terrain data. Zero indicates to use algorithm default. Only applies when GetAzElMask returns eTerrainData (cannot be set if eMaskFile). Uses Distance Dimension. |
Position | Get the position of the target. |
RadarClutterMap | Returns the radar clutter map. |
RadarCrossSection | Returns the radar cross sectoin. |
RFEnvironment | Gets the RF environment. |
SaveTerrainMaskDataInBinary | Save terrain az-el mask data in binary. |
TerrainNorm | Get 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 target. |
Interfaces
CoClasses that Implement IAgTarget
Example
Create a target (on the current scenario central body)
[C#] |
---|
// Create the Target on the current scenario central body (use
// NewOnCentralBody to specify explicitly the central body)
IAgTarget areaTarget = root.CurrentScenario.Children.New(AgESTKObjectType.eAreaTarget, "MyAreaTarget") as IAgTarget;
|
|
Change a target position
[C#] |
---|
IAgPosition pos = target.Position;
pos.AssignGeodetic(39.95, 15.58, 231.54);
|
|
Configure a target from azimuth mask file
[C#] |
---|
target.UseLocalTimeOffset = true;
target.LocalTimeOffset = 200.0;
target.UseTerrain = true;
// Note, if SetAzElMask is set to a type other than AgEAzElMaskType.eMaskFile,
// the second parameter is ignored.
target.SetAzElMask(AgEAzElMaskType.eMaskFile, maskfile);
target.TerrainNorm = AgETerrainNormType.eSlopeAzimuth;
target.AltRef = AgEAltRefType.eMSL;
target.HeightAboveGround = 1472.0;
|
|
Create a target (on the current scenario central body)
[Visual Basic .NET] |
---|
' Create the Target on the current scenario central body (use
' NewOnCentralBody to specify explicitly the central body)
Dim areaTarget As IAgTarget = TryCast(root.CurrentScenario.Children.[New](AgESTKObjectType.eAreaTarget, "MyAreaTarget"), IAgTarget)
|
|
Change a target position
[Visual Basic .NET] |
---|
Dim pos As IAgPosition = target.Position
pos.AssignGeodetic(39.95, 15.58, 231.54)
|
|
Configure a target from azimuth mask file
[Visual Basic .NET] |
---|
target.UseLocalTimeOffset = True
target.LocalTimeOffset = 200
target.UseTerrain = True
' Note, if SetAzElMask is set to a type other than AgEAzElMaskType.eMaskFile,
' the second parameter is ignored.
target.SetAzElMask(AgEAzElMaskType.eMaskFile, maskfile)
target.TerrainNorm = AgETerrainNormType.eSlopeAzimuth
target.AltRef = AgEAltRefType.eMSL
target.HeightAboveGround = 1472
|
|