STK Graphics PrimitivesSend comments on this topic.
ViewOffsetDirectionWithUpAxis 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.
Direction
The Vector that will be evaluated at the animation time to get the direction to offset the camera position. This will be equivalent to the negative of Direction.
UpAxis
An array containing the up direction (in the order x, y, z) in axes.
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 direction vector.

Syntax

[Visual Basic .NET]
Public Sub ViewOffsetDirectionWithUpAxis( _
    ByVal Axes As IAgCrdnAxes, _
    ByVal ReferencePoint As IAgCrdnPoint, _
    ByVal Direction As IAgCrdnVector, _
    ByVal UpAxis As System.Array _
)
[C#]
public void ViewOffsetDirectionWithUpAxis(
    IAgCrdnAxes Axes,
    IAgCrdnPoint ReferencePoint,
    IAgCrdnVector Direction,
    System.Array UpAxis
);
[Managed C++]
public: void ViewOffsetDirectionWithUpAxis(
    IAgCrdnAxes ^ Axes,
    IAgCrdnPoint ^ ReferencePoint,
    IAgCrdnVector ^ Direction,
    System::Array ^ UpAxis
);
[Unmanaged C++]
public: HRESULT ViewOffsetDirectionWithUpAxis(
    IAgCrdnAxes * Axes,
    IAgCrdnPoint * ReferencePoint,
    IAgCrdnVector * Direction,
    SAFEARRAY * * UpAxis
);
[Java]
public void viewOffsetDirectionWithUpAxis(
    IAgCrdnAxes Axes,
    IAgCrdnPoint ReferencePoint,
    IAgCrdnVector Direction,
    AgSafeArray UpAxis
);
[Python - STK API ]
def ViewOffsetDirectionWithUpAxis(self, Axes:"IAgCrdnAxes", ReferencePoint:"IAgCrdnPoint", Direction:"IAgCrdnVector", UpAxis: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.
Direction
The Vector that will be evaluated at the animation time to get the direction to offset the camera position. This will be equivalent to the negative of Direction.
UpAxis
An array containing the up direction (in the order x, y, z) in axes.

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.