AGI STK Graphics 11 Send comments on this topic.
ViewOffsetWithUpAxis Method (IAgStkGraphicsCamera)
See Also  Example
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.
UpAxis
An array containing the up direction (in the order x, y, z) in axes.





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 ViewOffsetWithUpAxis( _
   ByVal Axes As  IAgCrdnAxes, _
   ByVal ReferencePoint As  IAgCrdnPoint, _
   ByRef Offset As System.Array, _
   ByRef UpAxis As System.Array _
) 

[C#]
public void ViewOffsetWithUpAxis(
IAgCrdnAxes Axes,
IAgCrdnPoint ReferencePoint,
ref System.Array Offset,
ref System.Array UpAxis
);

[Managed C++]
public: void ViewOffsetWithUpAxis(
IAgCrdnAxes ^ Axes,
IAgCrdnPoint ^ ReferencePoint,
System::Array ^^ Offset,
System::Array ^^ UpAxis
);

[Java]
public  viewOffsetWithUpAxis(
IAgCrdnAxes Axes,
IAgCrdnPoint ReferencePoint,
Object[] Offset,
Object[] UpAxis
);

[Unmanaged C++]
public: HRESULT ViewOffsetWithUpAxis(
IAgCrdnAxes * Axes,
IAgCrdnPoint * ReferencePoint,
SAFEARRAY ** Offset,
SAFEARRAY ** UpAxis
);

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.
UpAxis
An array containing the up direction (in the order x, y, z) in axes.

Example

Shows the format of the Offset and UpAxis parameters when setting the camera's reference point with an offset.
[C#] Copy Code
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] Copy Code
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)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1