STK Graphics PrimitivesSend comments on this topic.
SetRotations Method (IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters)
See Also
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.
Windows





Windows & Linux

Description

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

Syntax

[Visual Basic .NET]
Public Sub SetRotations( _
    ByVal RotationAngles As System.Array _
)
[C#]
public void SetRotations(
    System.Array RotationAngles
);
[Managed C++]
public: void SetRotations(
    System::Array ^ RotationAngles
);
[Unmanaged C++]
public: HRESULT SetRotations(
    SAFEARRAY * * RotationAngles
);
[Java]
public void setRotations(
    AgSafeArray RotationAngles
);
[Python - STK API ]
def SetRotations(self, RotationAngles:list) -> None:

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.

See Also

Example

Shows the format of the RotationAngles parameter when setting per marker rotations.
[C#]
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]
Dim rotations As Array = New Object() {15, 30, 45, 60}

Dim parameters As IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize()
parameters.SetRotations(rotations)
© 2024 Analytical Graphics, Inc. All Rights Reserved.