AGI STK Graphics 11 Send comments on this topic.
ViewExtent Method (IAgStkGraphicsCamera)
See Also  Example
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.





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, _
   ByRef Extent As System.Array _
) 

[C#]
public void ViewExtent(
string CentralBody,
ref System.Array Extent
);

[Managed C++]
public: void ViewExtent(
String __gc ^ CentralBody,
System::Array ^^ Extent
);

[Java]
public  viewExtent(
String CentralBody,
Object[] Extent
);

[Unmanaged C++]
public: HRESULT ViewExtent(
BSTR CentralBody,
SAFEARRAY ** Extent
);

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.

Example

Shows the format of the Extent parameter when zooming to a cartographic extent on a central body.
[C#] Copy Code
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] Copy Code
Dim extent As Array = New Object() {90, 30, -77, 39}

scene.Camera.ViewExtent("Earth", extent)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1