AGI STK Graphics 11 Send comments on this topic.
SetEyeOffsets Method (IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters)
See Also  Example
EyeOffsets
An array containing the eye offsets (in the order x, y, z) for each marker in the batch. There must be one x eye offset, followed by one y eye offset, follow by one z eye offset for each position passed to the Marker Batch Primitive's Set or SetPartial method.

Description

Defines a collection of eye offsets, one for each marker in the batch.

Syntax

[Visual Basic .NET]
Public Sub SetEyeOffsets( _
   ByRef EyeOffsets() As Variant _
) 

Parameters

EyeOffsets
An array containing the eye offsets (in the order x, y, z) for each marker in the batch. There must be one x eye offset, followed by one y eye offset, follow by one z eye offset for each position passed to the Marker Batch Primitive's Set or SetPartial method.

Remarks

Eye offsets define an eye-space translation in meters. In eye-space, the x axis points to the right, the y axis points up, and the z axis points into the screen. Eye offsets are commonly used when more than one primitive is located at the same position. For example, if a marker in a marker batch is located at the same position as a model primitive, an eye offset in the positive y direction can be applied to the marker so it appears a specified number of meters above the model.

Per-marker eye offsets override the per-batch eye offset. Therefore, when per-marker eye offsets are defined with this method, MarkerBatchPrimitive.EyeOffset is not used.

Example

Shows the format of the EyeOffsets parameter when setting per marker eye offsets.
[C#] Copy Code
Array eyeoffset = new object[] 

    2, 3, 4, 
    2, 3, 4 
}; 
 
IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize(); 
parameters.SetEyeOffsets(ref eyeoffset); 
 
Shows the format of the EyeOffsets parameter when setting per marker eye offsets.
[Visual Basic .NET] Copy Code
Dim eyeoffset As Array = New Object() {2, 3, 4, 2, 3, 4}

Dim parameters As IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize()
parameters.SetEyeOffsets(eyeoffset)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK 11.1 Programming Interface