GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Components

MeshTextureTransform Class

MeshTextureTransform represents a transformation of UV mesh coordinates used to sample a MeshTexture.
ArcGIS Maps SDK for JavaScript

public class MeshTextureTransform : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 MeshTextureTransform

Constructors

MeshTextureTransform() Constructor

Parameterless constructor for use as a Razor Component.

public MeshTextureTransform();

MeshTextureTransform(IReadOnlyList, Nullable, IReadOnlyList) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public MeshTextureTransform(System.Collections.Generic.IReadOnlyList<double>? offset=null, System.Nullable<double> rotation=null, System.Collections.Generic.IReadOnlyList<double>? scale=null);

Parameters

offset System.Collections.Generic.IReadOnlyList<System.Double>

The offset of the UV coordinate origin as a factor of the texture dimensions.
default [0, 0]
ArcGIS Maps SDK for JavaScript

rotation System.Nullable<System.Double>

The rotation of the UV coordinates in degrees, counter-clockwise around the origin.
default 0
ArcGIS Maps SDK for JavaScript

scale System.Collections.Generic.IReadOnlyList<System.Double>

The scale factor applied to the components of the UV coordinates.
default [1, 1]
ArcGIS Maps SDK for JavaScript

Properties

MeshTextureTransform.Offset Property

The offset of the UV coordinate origin as a factor of the texture dimensions.
default [0, 0]
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<double>? Offset { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<System.Double>

MeshTextureTransform.Rotation Property

The rotation of the UV coordinates in degrees, counter-clockwise around the origin.
default 0
ArcGIS Maps SDK for JavaScript

public System.Nullable<double> Rotation { get; set; }

Property Value

System.Nullable<System.Double>

MeshTextureTransform.Scale Property

The scale factor applied to the components of the UV coordinates.
default [1, 1]
ArcGIS Maps SDK for JavaScript

public System.Collections.Generic.IReadOnlyList<double>? Scale { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<System.Double>

Methods

MeshTextureTransform.AddToOffset(double[]) Method

Asynchronously adds elements to the Offset property.

public System.Threading.Tasks.Task AddToOffset(params double[] values);

Parameters

values System.Double[]

The elements to add.

Returns

System.Threading.Tasks.Task

MeshTextureTransform.AddToScale(double[]) Method

Asynchronously adds elements to the Scale property.

public System.Threading.Tasks.Task AddToScale(params double[] values);

Parameters

values System.Double[]

The elements to add.

Returns

System.Threading.Tasks.Task

MeshTextureTransform.GetOffset() Method

Asynchronously retrieve the current value of the Offset property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<double>?> GetOffset();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Double>>

MeshTextureTransform.GetRotation() Method

Asynchronously retrieve the current value of the Rotation property.

public System.Threading.Tasks.Task<System.Nullable<double>> GetRotation();

Returns

System.Threading.Tasks.Task<System.Nullable<System.Double>>

MeshTextureTransform.GetScale() Method

Asynchronously retrieve the current value of the Scale property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<double>?> GetScale();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<System.Double>>

MeshTextureTransform.RemoveFromOffset(double[]) Method

Asynchronously remove an element from the Offset property.

public System.Threading.Tasks.Task RemoveFromOffset(params double[] values);

Parameters

values System.Double[]

The elements to remove.

Returns

System.Threading.Tasks.Task

MeshTextureTransform.RemoveFromScale(double[]) Method

Asynchronously remove an element from the Scale property.

public System.Threading.Tasks.Task RemoveFromScale(params double[] values);

Parameters

values System.Double[]

The elements to remove.

Returns

System.Threading.Tasks.Task

MeshTextureTransform.SetOffset(IReadOnlyList) Method

Asynchronously set the value of the Offset property after render.

public System.Threading.Tasks.Task SetOffset(System.Collections.Generic.IReadOnlyList<double>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<System.Double>

The value to set.

Returns

System.Threading.Tasks.Task

MeshTextureTransform.SetRotation(Nullable) Method

Asynchronously set the value of the Rotation property after render.

public System.Threading.Tasks.Task SetRotation(System.Nullable<double> value);

Parameters

value System.Nullable<System.Double>

The value to set.

Returns

System.Threading.Tasks.Task

MeshTextureTransform.SetScale(IReadOnlyList) Method

Asynchronously set the value of the Scale property after render.

public System.Threading.Tasks.Task SetScale(System.Collections.Generic.IReadOnlyList<double>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<System.Double>

The value to set.

Returns

System.Threading.Tasks.Task