STK UI CoreSend comments on this topic.
SceneID Property (IAgUiWindowGlobeObject)
See Also
Windows





Windows & Linux

Description

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

Property type

Read-only property

Syntax

[Visual Basic .NET]
Public Property SceneID() As Integer
[C#]
public int SceneID {get;}
[Managed C++]
public: __property int get_SceneID();
[Unmanaged C++]
public: HRESULT get_SceneID(
    long * pRetVal
);
[Java]
public int getSceneID();
[Python - STK API ]
@property
def SceneID(self) -> int:

See Also

Example

Enumerate all 3D (Globe) windows and print their scene identifiers.
[C#]
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 by name and print their scene identifiers.
[C#]
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]
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 by name and print their scene identifiers.
[Visual Basic .NET]
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
© 2024 Analytical Graphics, Inc. All Rights Reserved.