STK Graphics PrimitivesSend comments on this topic.
ViewCentralBodyFromPosition Method (IAgStkGraphicsCamera)
See Also
CentralBody
The Central Body to be viewed.
Axes
The Axes of rotation. Axes will be set to this.
CameraPosition
The Point that will be evaluated at the animation time to get Position.
Windows





Windows & Linux

Description

Zoom to a central body and use the specified axes for rotation. The reference point is set to the center of the central body.

Syntax

[Visual Basic .NET]
Public Sub ViewCentralBodyFromPosition( _
    ByVal CentralBody As String, _
    ByVal Axes As IAgCrdnAxes, _
    ByVal CameraPosition As IAgCrdnPoint _
)
[C#]
public void ViewCentralBodyFromPosition(
    string CentralBody,
    IAgCrdnAxes Axes,
    IAgCrdnPoint CameraPosition
);
[Managed C++]
public: void ViewCentralBodyFromPosition(
    String __gc ^ CentralBody,
    IAgCrdnAxes ^ Axes,
    IAgCrdnPoint ^ CameraPosition
);
[Unmanaged C++]
public: HRESULT ViewCentralBodyFromPosition(
    BSTR CentralBody,
    IAgCrdnAxes * Axes,
    IAgCrdnPoint * CameraPosition
);
[Java]
public void viewCentralBodyFromPosition(
    String CentralBody,
    IAgCrdnAxes Axes,
    IAgCrdnPoint CameraPosition
);
[Python - STK API ]
def ViewCentralBodyFromPosition(self, CentralBody:str, Axes:"IAgCrdnAxes", CameraPosition:"IAgCrdnPoint") -> None:

Parameters

CentralBody
The Central Body to be viewed.
Axes
The Axes of rotation. Axes will be set to this.
CameraPosition
The Point that will be evaluated at the animation time to get Position.

See Also

© 2026 Analytical Graphics, Inc. All Rights Reserved.