AGI STK Graphics 11 Send comments on this topic.
EyeOffset Property (IAgStkGraphicsMarkerBatchPrimitive)
See Also  Example





Description

Gets or sets the per-batch eye offset, which is applied to each marker in the batch. The array contains the components of the eye offset in the order x, y, z.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property EyeOffset() As System.Array

[C#]
public System.Array EyeOffset {get; set;}

[Managed C++]
public: __property System::Array^ get_EyeOffset();
public: __property void set_EyeOffset(
System::Array ^
);

[Unmanaged C++]
public: HRESULT get_EyeOffset(
SAFEARRAY ** ppRetVal
);
public: HRESULT put_EyeOffset(
SAFEARRAY * pNewEyeOffset
);

[Java]
public Object[] getEyeOffset();public void setEyeOffset(
Object[]
);

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.

If per-marker eye offsets were specified with MarkerBatchPrimitiveOptionalParameters.SetEyeOffsets, the per-batch eye offset is ignored.

Example

Shows the format of the marker batch's EyeOffset property.
[C#] Copy Code
Array eyeoffset = new object[] 

    2
    3
    4 
}; 
 
markerBatch.EyeOffset = eyeoffset; 
 

Shows the format of the marker batch's EyeOffset property.
[Visual Basic .NET] Copy Code
Dim eyeoffset As Array = New Object() {2, 3, 4}

markerBatch.EyeOffset = eyeoffset

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1