AGI STK Objects 11 Send comments on this topic.
IAgSensor Interface





Description

Provides access to the properties and methods used in defining a sensor object.

Object Model











Public Methods

Public Method GetStarsInFOV Returns celestial bodies within the sensor's field of view.
Public Method IsRefractionTypeSupported Gets a value indicating whether the specified type can be used
Public Method ResetAzElMask Method to reset the az-el mask.
Public Method SetAzElMask Method to set the az-el mask type, using the AgEAzElMaskType enumeration.
Public Method SetAzElMaskFile Path and file name of az-el mask file.
Public Method SetLocationType The sensor's location type, a member of the AgESnLocation enumeration.
Public Method SetPatternType Sets the pattern type.
Public Method SetPointingExternalFile Method to set the external pointing type.
Public Method SetPointingType Method to set the sensor's pointing type, using the AgESnPointing enumeration.

Note: you cannot specify the eSnPtExternal enumeration using this method. To set sensor pointing using an external file, you must use the SetPointingExternalFile method.

Public Properties

Public Property AccessConstraints Get constraints imposed on the sensor.
Public Property AzElMask Get the az-el mask
Public Property AzElMaskData Get az-el mask data for the sensor.
Public Property CommonTasks Returns an interface that exposes common tasks.
Public Property DetectorPitch Detector pitch used in defining senor resolution. Uses SmallDistanceUnit Dimension.
Public Property FocalLength Focal length used in defining sensor resolution. Uses SmallDistanceUnit Dimension.
Public Property Graphics Get the 2D Graphics properties for the sensor.
Public Property LocationData Get location data for the sensor. The sensor's center point is invalid; all other points are valid choices for the location data.
Public Property LocationType The location type being used by the sensor.
Public Property Pattern Get data defining the sensor pattern.
Public Property PatternType Criterion for defining the sensor pattern. A member of the AgESnPattern enumeration.
Public Property Pointing Get pointing data for the sensor.
Public Property PointingType The sensor's pointing type. A member of the AgESnPointing enumeration.
Public Property Refraction Refraction method, a member of the AgESnRefractionType enumeration.
Public Property RefractionModel Gets a refraction model
Public Property RefractionSupportedTypes Returns an array of valid choices
Public Property Swath Get the sensor's swath.
Public Property UseRefractionInAccess Flag controls whether refraction is applied when computing relative position in Access
Public Property VO Get the 3D Graphics properties for the sensor.

Example

Attach a Sensor Object to a Vehicle
[MATLAB] Copy Code
% IAgSatellite satellite: Satellite object 
sensor = satellite.Children.New('eSensor','MySensor'); 
 
 
Set Sensor Properties
[MATLAB] Copy Code
% IAgSensor sensor: Sensor object 
% Change pattern and set 
sensor.CommonTasks.SetPatternRectangular(20,25); 
% Change pointing and set 
sensor.CommonTasks.SetPointingFixedAzEl(90,60,'eAzElAboutBoresightRotate'); 
% Change location and set 
sensor.SetLocationType('eSnFixed'); 
sensor.LocationData.AssignCartesian(-.0004,-.0004,.004); 
 
 
Sensor Body Mask
[MATLAB] Copy Code
% IAgSensor sensor: Sensor object 
sensor.SetAzElMaskFile('C:\Program Files\AGI\STK 11\Help\stktraining\text\BodyMask_hga.bmsk'); 
 
 

CoClasses that Implement IAgSensor

Name
AgSensor
© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1