Description
Get location data for the sensor. The sensor's center point is invalid; all other points are valid choices for the location data.
Property type
Read-only property
Syntax
[Unmanaged C++] |
---|
public: HRESULT get_LocationData(
IAgLocationData ** ppVal
);
|
See Also
Example
Define fixed location
[C#] |
---|
// Set sensor's location to fixed
sensor.SetLocationType(AgESnLocation.eSnFixed);
// Configure sensor location
IAgPosition pos = sensor.LocationData as IAgPosition;
pos.AssignCartesian(595.20, -110.12, 4.6);
|
|
Define location from Vector Geometry Tool point
[C#] |
---|
// Set location type to VGT
sensor.SetLocationType(AgESnLocation.eSnLocationCrdnPoint);
// Get IAgLocationCrdnPoint interface
IAgLocationCrdnPoint vgtPoint = sensor.LocationData as IAgLocationCrdnPoint;
// point sensor to an already existing object
vgtPoint.PointPath = "Facility/Facility1 Center";
|
|
Define fixed location
[Visual Basic .NET] |
---|
' 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)
|
|
Define location from Vector Geometry Tool point
[Visual Basic .NET] |
---|
' Set location type to VGT
sensor.SetLocationType(AgESnLocation.eSnLocationCrdnPoint)
' Get IAgLocationCrdnPoint interface
Dim vgtPoint As IAgLocationCrdnPoint = TryCast(sensor.LocationData, IAgLocationCrdnPoint)
' point sensor to an already existing object
vgtPoint.PointPath = "Facility/Facility1 Center"
|
|