STK Graphics PrimitivesSend comments on this topic.
SetTextures Method (IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters)
See Also
Textures
An array containing a Texture 2D for each marker in the batch. There must be one texture for each position passed to the Marker Batch Primitive's Set or SetPartial method.
Windows





Windows & Linux

Description

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

Syntax

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

Parameters

Textures
An array containing a Texture 2D for each marker in the batch. There must be one texture for each position passed to the Marker Batch Primitive's Set or SetPartial method.

Remarks

Per-marker textures override the per-batch texture. Therefore, when per-marker textures are defined with this method, MarkerBatchPrimitive.Texture is not used.

See Also

Example

Shows the format of the Textures parameter when setting per marker textures.
[C#]
Array textures = new object[]
{
    sceneManager.Textures.LoadFromStringUri(texturePath1),
    sceneManager.Textures.LoadFromStringUri(texturePath2),
    sceneManager.Textures.LoadFromStringUri(texturePath3),
    sceneManager.Textures.LoadFromStringUri(texturePath4)
};

IAgStkGraphicsMarkerBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.MarkerBatchPrimitiveOptionalParameters.Initialize();
parameters.SetTextures(ref textures);
Shows the format of the Textures parameter when setting per marker textures.
[Visual Basic .NET]
Dim textures As Array = New Object() {sceneManager.Textures.LoadFromStringUri(texturePath1), sceneManager.Textures.LoadFromStringUri(texturePath2), sceneManager.Textures.LoadFromStringUri(texturePath3), sceneManager.Textures.LoadFromStringUri(texturePath4)}

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