STK X Send comments on this topic.
OnNewGfxAnalysisCtrlRequest Event (AgSTKXApplication)
See Also  Example
SceneID
Scene ID for the window.
GfxAnalysisMode
Windows






Windows & Linux

Description

Triggered when the Gfx Analysis control window for a scene is not found.

Syntax

[Visual Basic .NET]
Public Event OnNewGfxAnalysisCtrlRequest( _
   ByVal SceneID As Integer, _
   ByVal GfxAnalysisMode As AgEGfxAnalysisMode _
)

[C#]
public void OnNewGfxAnalysisCtrlRequest(
int SceneID,
AgEGfxAnalysisMode GfxAnalysisMode
);

[Managed C++]
public: void OnNewGfxAnalysisCtrlRequest(
int SceneID,
AgEGfxAnalysisMode GfxAnalysisMode
);

[Java]
public  onNewGfxAnalysisCtrlRequest(
int SceneID,
AgEGfxAnalysisMode GfxAnalysisMode
);

[Unmanaged C++]
public: HRESULT OnNewGfxAnalysisCtrlRequest(
long SceneID,
AgEGfxAnalysisMode GfxAnalysisMode
);

Parameters

SceneID
Scene ID for the window.
GfxAnalysisMode
Member Value Description
eSolarPanelTool 1 The Solar Panel Tool mode.
eAreaTool 2 The Area Tool mode.
eObscurationTool 3 The Obscuration Tool mode.
eAzElMaskTool 4 The AzElMask Tool mode.

Example

[Visual Basic .NET] Copy Code
Private Sub stkxApp_OnNewGfxAnalysisCtrlRequest( _
                        ByVal SceneID As Integer, _
                        ByVal eGfxAnalysisMode As AGI.STKX.AgEGfxAnalysisMode) _
                Handles stkxApp.OnNewGfxAnalysisCtrlRequest
    Dim msg As String

    If (eGfxAnalysisMode = AGI.STKX.AgEGfxAnalysisMode.eAreaTool) Then
        msg = "New Gfx Analysis Control window with Area Tool is requested for Secene ID: " & SceneID
    ElseIf (eGfxAnalysisMode = AGI.STKX.AgEGfxAnalysisMode.eSolarPanelTool) Then
        msg = "New Gfx Analysis Control window with Solar Panel Tool is requested for Secene ID: " & SceneID
    ElseIf (eGfxAnalysisMode = AGI.STKX.AgEGfxAnalysisMode.eObscurationTool) Then
        msg = "New Gfx Analysis Control window with Obscuration Tool is requested for Secene ID: " & SceneID
    ElseIf (eGfxAnalysisMode = AGI.STKX.AgEGfxAnalysisMode.eAzElMaskTool) Then
        msg = "New Gfx Analysis Control window with AzElMask Tool is requested for Secene ID: " & SceneID
    End If

    MessageBox.Show(msg)

End Sub

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface