AGI STK Objects 11 Send comments on this topic.
AgESnLocation Enumeration
See Also  Example





Description

Sensor Location Type options.

Members

Member Value Description
eSnFixed 0 Fixed: the location of the sensor is defined using a fixed displacement vector with respect to the parent objects body frame.
eSn3DModel 1 3D Model: the location of the sensor is defined using the sensor's 3D Graphics Vertex Offset properties.
eSn3DModelWithScale 2 3D Model with Scale: the location of the sensor is defined using the sensor's 3D Graphics Vertex Offset properties. Location is computed using the scaled model defined for visualization.
eSnCenter 3 Center: the sensor is located at the center of its parent object.
eSnLocationCrdnPoint 4 Point: the sensor's location is based upon a Vector Geometry Tool point.

Example

Define fixed location
[C#] Copy Code
// Set sensor's location to fixed 
sensor.SetLocationType(AgESnLocation.eSnFixed); 
 
// Configure sensor location 
IAgPosition pos = sensor.LocationData as IAgPosition; 
pos.AssignCartesian(595.20, -110.124.6); 
 

Define fixed location
[Visual Basic .NET] Copy Code
' Set sensor's location to fixed
sensor.SetLocationType(AgESnLocation.eSnFixed)

' Configure sensor location
Dim pos As IAgPosition = TryCast(sensor.LocationData, IAgPosition)
pos.AssignCartesian(595.2, -110.12, 4.6)

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1