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





Description

Provides access to the FOM grid inspector properties.

Object Model





Public Methods

Public Method ClearSelection Clears the selected point or region
Public Method SelectPoint Select point.
Public Method SelectRegion Selects a region.

Public Properties

Public Property Message Retrieves the message when a point or region is selected.
Public Property PointFOM Retrieves the Point FOM data provider.
Public Property PointSatisfaction Retrieves the Point Satisfaction data provider.
Public Property RegionFOM Retrieves the Region FOM data provider.
Public Property RegionSatisfaction Retrieves the Region Satisfaction data provider.

Example

Inspect grid by selecting a point
[C#] Copy Code
IAgFmGridInspector gridInspector = fom.GridInspector; 
gridInspector.SelectPoint(-13.864, -51.088); 
 
IAgDataPrvTimeVar pointFom = gridInspector.PointFOM as IAgDataPrvTimeVar; 
IAgDrResult pointFomResult = pointFom.ExecSingle("1 Jan 2012 12:00:00.00"); 
 
IAgDataPrvInterval pointSatisfaction = gridInspector.PointSatisfaction as IAgDataPrvInterval; 
IAgDrResult pointSatisfactionResult = pointSatisfaction.Exec("1 Jan 2012 12:00:00.00""2 Jan 2012 12:00:00.00"); 
 
IAgDataPrvTimeVar regionFom = gridInspector.RegionFOM as IAgDataPrvTimeVar; 
IAgDrResult regionFomResult = regionFom.ExecSingle("1 Jan 2012 12:00:00.00"); 
 
IAgDataPrvInterval regionSatisfaction = gridInspector.RegionSatisfaction as IAgDataPrvInterval; 
IAgDrResult regionSatisfactionResult = regionSatisfaction.Exec("1 Jan 2012 12:00:00.00""2 Jan 2012 12:00:00.00"); 
 

Inspect grid by selecting a point
[Visual Basic .NET] Copy Code
Dim gridInspector As IAgFmGridInspector = fom.GridInspector
gridInspector.SelectPoint(-13.864, -51.088)

Dim pointFom As IAgDataPrvTimeVar = TryCast(gridInspector.PointFOM, IAgDataPrvTimeVar)
Dim pointFomResult As IAgDrResult = pointFom.ExecSingle("1 Jan 2012 12:00:00.00")

Dim pointSatisfaction As IAgDataPrvInterval = TryCast(gridInspector.PointSatisfaction, IAgDataPrvInterval)
Dim pointSatisfactionResult As IAgDrResult = pointSatisfaction.Exec("1 Jan 2012 12:00:00.00", "2 Jan 2012 12:00:00.00")

Dim regionFom As IAgDataPrvTimeVar = TryCast(gridInspector.RegionFOM, IAgDataPrvTimeVar)
Dim regionFomResult As IAgDrResult = regionFom.ExecSingle("1 Jan 2012 12:00:00.00")

Dim regionSatisfaction As IAgDataPrvInterval = TryCast(gridInspector.RegionSatisfaction, IAgDataPrvInterval)
Dim regionSatisfactionResult As IAgDrResult = regionSatisfaction.Exec("1 Jan 2012 12:00:00.00", "2 Jan 2012 12:00:00.00")

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1