Class VolumeTextureDiffuseMaterial
- Namespace
- HelixToolkit.Wpf.SharpDX
- Assembly
- HelixToolkit.Wpf.SharpDX.dll
Used to use gradient data as Volume 3D texture. User must create their own data reader to read texture files as pixel byte[] and pass the necessary information as VolumeTextureParams
Pixel Byte[] is equal to Width * Height * Depth * BytesPerPixel.
public sealed class VolumeTextureDiffuseMaterial : VolumeTextureMaterialBase, IVolumeTextureMaterial
- Inheritance
-
VolumeTextureDiffuseMaterial
- Implements
- Inherited Members
Constructors
VolumeTextureDiffuseMaterial()
public VolumeTextureDiffuseMaterial()
VolumeTextureDiffuseMaterial(VolumeTextureDiffuseMaterialCore)
public VolumeTextureDiffuseMaterial(VolumeTextureDiffuseMaterialCore core)
Parameters
Fields
TextureProperty
public static readonly DependencyProperty TextureProperty
Field Value
Properties
Texture
Gets or sets the texture.
public VolumeTextureGradientParams Texture { get; set; }
Property Value
- VolumeTextureGradientParams
The texture.
Methods
CreateInstanceCore()
When implemented in a derived class, creates a new instance of the Freezable derived class.
protected override Freezable CreateInstanceCore()
Returns
- Freezable
The new instance.
OnCreateCore()
protected override MaterialCore OnCreateCore()