GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Components
MeshMaterial Class
The material determines how a MeshComponent is visualized.
ArcGIS Maps SDK for JavaScript
public class MeshMaterial : dymaptic.GeoBlazor.Core.Components.MapComponent,
dymaptic.GeoBlazor.Core.Interfaces.IMeshComponentMaterial,
dymaptic.GeoBlazor.Core.Interfaces.IMapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 dymaptic.GeoBlazor.Core.Components.MapComponent 🡒 MeshMaterial
Derived
↳ MeshMaterialMetallicRoughness
Implements dymaptic.GeoBlazor.Core.Interfaces.IMeshComponentMaterial, dymaptic.GeoBlazor.Core.Interfaces.IMapComponent
Constructors
MeshMaterial() Constructor
Parameterless constructor for use as a Razor Component.
public MeshMaterial();
MeshMaterial(Nullable, Nullable, MapColor, MeshTexture, MeshTextureTransform, Nullable, MeshTexture, MeshTextureTransform) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public MeshMaterial(System.Nullable<double> alphaCutoff=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode> alphaMode=null, dymaptic.GeoBlazor.Core.Model.MapColor? color=null, dymaptic.GeoBlazor.Pro.Components.MeshTexture? colorTexture=null, dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform? colorTextureTransform=null, System.Nullable<bool> doubleSided=null, dymaptic.GeoBlazor.Pro.Components.MeshTexture? normalTexture=null, dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform? normalTextureTransform=null);
Parameters
alphaCutoff
System.Nullable<System.Double>
Specifies how transparency on the object is handled.
default 0.5
ArcGIS Maps SDK for JavaScript
alphaMode
System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode>
Specifies how transparency on the object is handled.
default “auto”
ArcGIS Maps SDK for JavaScript
color
dymaptic.GeoBlazor.Core.Model.MapColor
Specifies a single, uniform color for the mesh component.
ArcGIS Maps SDK for JavaScript
colorTexture
MeshTexture
Specifies a texture from which to get color information.
ArcGIS Maps SDK for JavaScript
colorTextureTransform
MeshTextureTransform
A transformation of UV mesh coordinates used to sample the color texture.
default undefined
ArcGIS Maps SDK for JavaScript
doubleSided
System.Nullable<System.Boolean>
Specifies whether both sides of each triangle are displayed, or only the front sides.
default true
ArcGIS Maps SDK for JavaScript
normalTexture
MeshTexture
Specifies a texture from which to get normal information.
ArcGIS Maps SDK for JavaScript
normalTextureTransform
MeshTextureTransform
A transformation of UV mesh coordinates used to sample the normal texture.
default undefined
ArcGIS Maps SDK for JavaScript
Properties
MeshMaterial.AlphaCutoff Property
Specifies how transparency on the object is handled.
default 0.5
ArcGIS Maps SDK for JavaScript
public System.Nullable<double> AlphaCutoff { get; set; }
Property Value
System.Nullable<System.Double>
MeshMaterial.AlphaMode Property
Specifies how transparency on the object is handled.
default “auto”
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode> AlphaMode { get; set; }
Property Value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode>
MeshMaterial.Color Property
Specifies a single, uniform color for the mesh component.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Core.Model.MapColor? Color { get; set; }
Property Value
dymaptic.GeoBlazor.Core.Model.MapColor
MeshMaterial.ColorTexture Property
Specifies a texture from which to get color information.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Components.MeshTexture? ColorTexture { get; set; }
Property Value
MeshMaterial.ColorTextureTransform Property
A transformation of UV mesh coordinates used to sample the color texture.
default undefined
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform? ColorTextureTransform { get; set; }
Property Value
MeshMaterial.DoubleSided Property
Specifies whether both sides of each triangle are displayed, or only the front sides.
default true
ArcGIS Maps SDK for JavaScript
public System.Nullable<bool> DoubleSided { get; set; }
Property Value
System.Nullable<System.Boolean>
MeshMaterial.NormalTexture Property
Specifies a texture from which to get normal information.
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Components.MeshTexture? NormalTexture { get; set; }
Property Value
MeshMaterial.NormalTextureTransform Property
A transformation of UV mesh coordinates used to sample the normal texture.
default undefined
ArcGIS Maps SDK for JavaScript
public dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform? NormalTextureTransform { get; set; }
Property Value
Methods
MeshMaterial.GetAlphaCutoff() Method
Asynchronously retrieve the current value of the AlphaCutoff property.
public System.Threading.Tasks.Task<System.Nullable<double>> GetAlphaCutoff();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Double>>
MeshMaterial.GetAlphaMode() Method
Asynchronously retrieve the current value of the AlphaMode property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode>> GetAlphaMode();
Returns
System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode>>
MeshMaterial.GetColor() Method
Asynchronously retrieve the current value of the Color property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.MapColor?> GetColor();
Returns
System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.MapColor>
MeshMaterial.GetColorTexture() Method
Asynchronously retrieve the current value of the ColorTexture property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.MeshTexture?> GetColorTexture();
Returns
System.Threading.Tasks.Task<MeshTexture>
MeshMaterial.GetColorTextureTransform() Method
Asynchronously retrieve the current value of the ColorTextureTransform property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform?> GetColorTextureTransform();
Returns
System.Threading.Tasks.Task<MeshTextureTransform>
MeshMaterial.GetDoubleSided() Method
Asynchronously retrieve the current value of the DoubleSided property.
public System.Threading.Tasks.Task<System.Nullable<bool>> GetDoubleSided();
Returns
System.Threading.Tasks.Task<System.Nullable<System.Boolean>>
MeshMaterial.GetNormalTexture() Method
Asynchronously retrieve the current value of the NormalTexture property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.MeshTexture?> GetNormalTexture();
Returns
System.Threading.Tasks.Task<MeshTexture>
MeshMaterial.GetNormalTextureTransform() Method
Asynchronously retrieve the current value of the NormalTextureTransform property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform?> GetNormalTextureTransform();
Returns
System.Threading.Tasks.Task<MeshTextureTransform>
MeshMaterial.SetAlphaCutoff(Nullable) Method
Asynchronously set the value of the AlphaCutoff property after render.
public System.Threading.Tasks.Task SetAlphaCutoff(System.Nullable<double> value);
Parameters
value
System.Nullable<System.Double>
The value to set.
Returns
MeshMaterial.SetAlphaMode(Nullable) Method
Asynchronously set the value of the AlphaMode property after render.
public System.Threading.Tasks.Task SetAlphaMode(System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode> value);
Parameters
value
System.Nullable<dymaptic.GeoBlazor.Core.Enums.AlphaMode>
The value to set.
Returns
MeshMaterial.SetColor(MapColor) Method
Asynchronously set the value of the Color property after render.
public System.Threading.Tasks.Task SetColor(dymaptic.GeoBlazor.Core.Model.MapColor? value);
Parameters
value
dymaptic.GeoBlazor.Core.Model.MapColor
The value to set.
Returns
MeshMaterial.SetColorTexture(MeshTexture) Method
Asynchronously set the value of the ColorTexture property after render.
public System.Threading.Tasks.Task SetColorTexture(dymaptic.GeoBlazor.Pro.Components.MeshTexture? value);
Parameters
value
MeshTexture
The value to set.
Returns
MeshMaterial.SetColorTextureTransform(MeshTextureTransform) Method
Asynchronously set the value of the ColorTextureTransform property after render.
public System.Threading.Tasks.Task SetColorTextureTransform(dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform? value);
Parameters
value
MeshTextureTransform
The value to set.
Returns
MeshMaterial.SetDoubleSided(Nullable) Method
Asynchronously set the value of the DoubleSided property after render.
public System.Threading.Tasks.Task SetDoubleSided(System.Nullable<bool> value);
Parameters
value
System.Nullable<System.Boolean>
The value to set.
Returns
MeshMaterial.SetNormalTexture(MeshTexture) Method
Asynchronously set the value of the NormalTexture property after render.
public System.Threading.Tasks.Task SetNormalTexture(dymaptic.GeoBlazor.Pro.Components.MeshTexture? value);
Parameters
value
MeshTexture
The value to set.
Returns
MeshMaterial.SetNormalTextureTransform(MeshTextureTransform) Method
Asynchronously set the value of the NormalTextureTransform property after render.
public System.Threading.Tasks.Task SetNormalTextureTransform(dymaptic.GeoBlazor.Pro.Components.MeshTextureTransform? value);
Parameters
value
MeshTextureTransform
The value to set.