AGI Ui Core 11 Send comments on this topic.
IAgUiWindowGlobeObject Interface





Description

Represents a 3D (Globe) window. Provides methods and properties to access the 3D window properties.

Public Properties

Public Property SceneID A unique identifier associated with the window that can be used with Connect to control the 3D globe.

Example

Enumerate all 3D (Globe) windows and print their scene identifiers.
[C#] Copy Code
foreach (IAgUiWindow window in application.Windows) 

    object oSvc = window.GetServiceByType(AgEWindowService.eWindowService3DWindow); 
    IAgUiWindowGlobeObject globeObject = oSvc as IAgUiWindowGlobeObject; 
    if (globeObject != null
    { 
        Console.WriteLine("Window Title: {0}, scene ID: {1}", window.Caption, globeObject.SceneID); 
    } 

 

Enumerate all 3D (Globe) windows and print their scene identifiers.
[C#] Copy Code
foreach (IAgUiWindow window in application.Windows) 

    object oSvc = window.GetServiceByName("Globe"); 
    IAgUiWindowGlobeObject globeObject = oSvc as IAgUiWindowGlobeObject; 
    if (globeObject != null
    { 
        Console.WriteLine("Window Title: {0}, scene ID: {1}", window.Caption, globeObject.SceneID); 
    } 

 

Enumerate all 3D (Globe) windows and print their scene identifiers.
[Visual Basic .NET] Copy Code
For Each window As IAgUiWindow In application.Windows
    Dim oSvc As Object = window.GetServiceByType(AgEWindowService.eWindowService3DWindow)
    Dim globeObject As IAgUiWindowGlobeObject = TryCast(oSvc, IAgUiWindowGlobeObject)
    If globeObject IsNot Nothing Then
        Console.WriteLine("Window Title: {0}, scene ID: {1}", window.Caption, globeObject.SceneID)
    End If
Next

Enumerate all 3D (Globe) windows and print their scene identifiers.
[Visual Basic .NET] Copy Code
For Each window As IAgUiWindow In application.Windows
    Dim oSvc As Object = window.GetServiceByName("Globe")
    Dim globeObject As IAgUiWindowGlobeObject = TryCast(oSvc, IAgUiWindowGlobeObject)
    If globeObject IsNot Nothing Then
        Console.WriteLine("Window Title: {0}, scene ID: {1}", window.Caption, globeObject.SceneID)
    End If
Next

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1