Description
Represents a 3D (Globe) window. Provides methods and properties to access the 3D window properties.
Public Properties
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#] |
---|
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
|
|