AGI STK Graphics 11 Send comments on this topic.
SetRotations Method (IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters)
See Also  Example
RotationAngles
An array containing a rotation angle for each marker in the batch. There must be one rotation angle for each position passed to the Marker Batch Primitive's Set or SetPartial method.





Description

Defines a collection of rotation angles in radians, one for each marker in the batch.

Syntax

[Visual Basic .NET]
Public Sub SetRotations( _
   ByRef RotationAngles As System.Array _
) 

[C#]
public void SetRotations(
ref System.Array RotationAngles
);

[Managed C++]
public: void SetRotations(
System::Array ^^ RotationAngles
);

[Java]
public  setRotations(
Object[] RotationAngles
);

[Unmanaged C++]
public: HRESULT SetRotations(
SAFEARRAY ** RotationAngles
);

Parameters

RotationAngles
An array containing a rotation angle for each marker in the batch. There must be one rotation angle for each position passed to the Marker Batch Primitive's Set or SetPartial method.

Remarks

Positive rotation angles rotate counter-clockwise in screen-space.

Per-marker rotation angles override the per-batch rotation angle. Therefore, when per-marker rotation angles are defined with this method, MarkerBatchPrimitive.Rotation is not used.

Example

Shows the format of the RotationAngles parameter when setting per marker rotations.
[C#] Copy Code
Array rotations = new object[] 

    15
    30
    45
    60 
}; 
 
IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize(); 
parameters.SetRotations(ref rotations); 
 

Shows the format of the RotationAngles parameter when setting per marker rotations.
[Visual Basic .NET] Copy Code
Dim rotations As Array = New Object() {15, 30, 45, 60}

Dim parameters As IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize()
parameters.SetRotations(rotations)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1