STK Graphics PrimitivesSend comments on this topic.
SetSizes Method (IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters)
See Also
Sizes
An array containing the size (in the order width, height) for each marker in the batch. There must be one width followed by one height for each position passed to the Marker Batch Primitive's Set or SetPartial method.
Windows





Windows & Linux

Description

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

Syntax

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

Parameters

Sizes
An array containing the size (in the order width, height) for each marker in the batch. There must be one width followed by one height for each position passed to the Marker Batch Primitive's Set or SetPartial method.

Remarks

To use user-defined per-marker sizes, the marker batch must be initialized with MarkerBatchSizeSource.UserDefined, otherwise each marker's size is its texture's size.

The size may be interpreted to be pixels or meters depending on MarkerBatchPrimitive.SizeUnit.

Per-marker sizes override the per-batch size. Therefore, when per-marker sizes are defined with this method, MarkerBatchPrimitive.Size is not used.

See Also

Example

Shows the format of the Sizes parameter when setting per marker sizes.
[C#]
Array size = new object[]
{
    256,
    128,
    128,
    256
};

IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize();
parameters.SetSizes(ref size);
Shows the format of the Sizes parameter when setting per marker sizes.
[Visual Basic .NET]
Dim size As Array = New Object() {256, 128, 128, 256}

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