STK Graphics PrimitivesSend comments on this topic.
ViewOffset Method (IAgStkGraphicsCamera)
See Also
Axes
The Axes of rotation. Axes will be set to this.
ReferencePoint
The Point that will be evaluated at the animation time to get Reference Point.
Offset
An array containing the offset of the camera position (in the order x, y, z) relative to the referencePoint.
Windows





Windows & Linux

Description

Sets the camera's reference point - the point the camera is looking at. The camera's position is the reference point translated by the offset.

Syntax

[Visual Basic .NET]
Public Sub ViewOffset( _
    ByVal Axes As IAgCrdnAxes, _
    ByVal ReferencePoint As IAgCrdnPoint, _
    ByVal Offset As System.Array _
)
[C#]
public void ViewOffset(
    IAgCrdnAxes Axes,
    IAgCrdnPoint ReferencePoint,
    System.Array Offset
);
[Managed C++]
public: void ViewOffset(
    IAgCrdnAxes ^ Axes,
    IAgCrdnPoint ^ ReferencePoint,
    System::Array ^ Offset
);
[Unmanaged C++]
public: HRESULT ViewOffset(
    IAgCrdnAxes * Axes,
    IAgCrdnPoint * ReferencePoint,
    SAFEARRAY * * Offset
);
[Java]
public void viewOffset(
    IAgCrdnAxes Axes,
    IAgCrdnPoint ReferencePoint,
    AgSafeArray Offset
);
[Python - STK API ]
def ViewOffset(self, Axes:"IAgCrdnAxes", ReferencePoint:"IAgCrdnPoint", Offset:list) -> None:

Parameters

Axes
The Axes of rotation. Axes will be set to this.
ReferencePoint
The Point that will be evaluated at the animation time to get Reference Point.
Offset
An array containing the offset of the camera position (in the order x, y, z) relative to the referencePoint.

See Also

Example

Shows the format of the Offset and UpAxis parameters when setting the camera's reference point with an offset.
[C#]
Array offset = new object[]
{
    50.0,
    50.0,
    -50.0
};

Array upAxis = new object[]
{
    0,
    0,
    1
};

scene.Camera.ViewOffsetWithUpAxis(
    axes, 
    point, 
    ref offset, 
    ref upAxis);
Shows the format of the Offset and UpAxis parameters when setting the camera's reference point with an offset.
[Visual Basic .NET]
Dim offset As Array = New Object() {50, 50, -50}

Dim upAxis As Array = New Object() {0, 0, 1}

scene.Camera.ViewOffsetWithUpAxis(axes, point, offset, upAxis)
© 2024 Analytical Graphics, Inc. All Rights Reserved.