STK Graphics PrimitivesSend comments on this topic.
TextureCoordinate Property (IAgStkGraphicsMarkerBatchPrimitive)
See Also
Windows





Windows & Linux

Description

Gets or sets the per-batch texture coordinate, which is applied to each marker in the batch. The array contains the texture coordinates arranged in the order s, t, p, q.

Property type

Read-write property

Syntax

[Visual Basic .NET]
Public Property TextureCoordinate() As System.Array
[C#]
public System.Array TextureCoordinate {get; set;}
[Managed C++]
public: __property System::Array get_TextureCoordinate();
public: __property void set_TextureCoordinate( System::Array );
[Unmanaged C++]
public: HRESULT get_TextureCoordinate(
    SAFEARRAY * * ppRetVal
);
public: HRESULT put_TextureCoordinate(
    SAFEARRAY * TextureCoordinate
);
[Java]
public AgSafeArray getTextureCoordinate();
public void setTextureCoordinate(
    AgSafeArray
);
[Python - STK API ]
@property
def TextureCoordinate(self) -> list:

@TextureCoordinate.setter
def TextureCoordinate(self, TextureCoordinate:list) -> None:

Remarks

Each texture coordinate component is in the range [0, 1]. The s and t components define the bottom left corner and the p and q components define the upper right corner. When the marker batch uses an entire texture, the texture coordinates are [s, t, p, q] = [0, 0, 1, 1].

If per-marker texture coordinates were specified with MarkerBatchPrimitiveOptionalParameters.SetTextureCoordinates, the per-batch texture coordinate is ignored.

See Also

Example

Shows the format of the marker batch's TextureCoordinate property.
[C#]
Array coordinates = new object[]
{
    0,
    0,
    1,
    1
};

markerBatch.TextureCoordinate = coordinates;
Shows the format of the marker batch's TextureCoordinate property.
[Visual Basic .NET]
Dim coordinates As Array = New Object() {0, 0, 1, 1}

markerBatch.TextureCoordinate = coordinates
© 2024 Analytical Graphics, Inc. All Rights Reserved.