STK Graphics PrimitivesSend comments on this topic.
ViewExtent Method (IAgStkGraphicsCamera)
See Also
CentralBody
The Central Body that the extent is on.
Extent
An array representing the Cartographic Extent to be viewed. The elements should be provided in the order west longitude, south latitude, east longitude, north latitude.
Windows





Windows & Linux

Description

Zooms to a Cartographic Extent on the centralBody. The camera will be looking straight down at the extent, with the up vector pointing toward local north. The Axes is set to an east-north-up axes at the center of extent.

Syntax

[Visual Basic .NET]
Public Sub ViewExtent( _
    ByVal CentralBody As String, _
    ByVal Extent As System.Array _
)
[C#]
public void ViewExtent(
    string CentralBody,
    System.Array Extent
);
[Managed C++]
public: void ViewExtent(
    String __gc ^ CentralBody,
    System::Array ^ Extent
);
[Unmanaged C++]
public: HRESULT ViewExtent(
    BSTR CentralBody,
    SAFEARRAY * * Extent
);
[Java]
public void viewExtent(
    String CentralBody,
    AgSafeArray Extent
);
[Python - STK API ]
def ViewExtent(self, CentralBody:str, Extent:list) -> None:

Parameters

CentralBody
The Central Body that the extent is on.
Extent
An array representing the Cartographic Extent to be viewed. The elements should be provided in the order west longitude, south latitude, east longitude, north latitude.

See Also

Example

Shows the format of the Extent parameter when zooming to a cartographic extent on a central body.
[C#]
Array extent = new object[]
{
    90,
    30,
    -77,
    39
};

scene.Camera.ViewExtent(
    "Earth", 
    ref extent);
Shows the format of the Extent parameter when zooming to a cartographic extent on a central body.
[Visual Basic .NET]
Dim extent As Array = New Object() {90, 30, -77, 39}

scene.Camera.ViewExtent("Earth", extent)
© 2024 Analytical Graphics, Inc. All Rights Reserved.