Material Class

Material definition.
Public Class Material 
Implements IDisposable, _ 
ICloneable, _ 
IEquatable(Of Material), _ 
IKeyedCollectionDisposableItem(Of Material)
This language is not supported or no code example is available.
This language is not supported or no code example is available.
Name Description
Public constructor Material() Obsolete. Obsolete Empty constructor.
Public constructor Material(Color, Color, Color, float, float, Image, Image) Obsolete. Obsolete constructor.
Public constructor Material(Color, Color, float, Image) Obsolete. Obsolete Appearance constructor.
Public constructor Material(Color, Color, float, float, Image) Obsolete. Obsolete constructor.
Public constructor Material(Color) Obsolete. Obsolete Name and color constructor.
Public constructor Material(Color, double, double, double, double, double) Obsolete. Obsolete Fem constructor.
Public constructor Material(Color, double, double, double, double, double, elementType, double) Obsolete. Obsolete 2D FEM constructor.
Public constructor Material(Image) Obsolete. Obsolete Name and texture index constructor.
Protected constructor Material(Material)
Public constructor Material(SerializationInfo, StreamingContext) Constructor for deserializing objects.
Public constructor Material(string) Standard constructor.
Public constructor Material(string, Color, Color, Color, float) Standard constructor.
Public constructor Material(string, Color, Color, Color, float, float) Standard constructor.
Public constructor Material(string, Color, Color, Color, float, float, Image) Standard constructor.
Public constructor Material(string, Color, Color, Color, float, float, Image, Image) Standard constructor.
Public constructor Material(string, Color, Color, float, Image) Appearance constructor.
Public constructor Material(string, Color, Color, float, float, Image) Standard constructor.
Public constructor Material(string, Color) Name and color constructor.
Public constructor Material(string, Color, double, double, double, double, double) Fem constructor.
Public constructor Material(string, Color, double, double, double, double, double, elementType, double) 2D FEM constructor.
Public constructor Material(string, Image) Name and texture index constructor.
Top
Name Description
Public property AlphaMap Gets the internal alphaMap texture.
Public property AlphaMapImage Gets or sets the material alpha image.
Public property Static Aluminium
Public property Ambient Gets or sets the ambient reflectance of the material.
Public property Static BlackRubber
Public property Static Brass
Public property Static Bronze
Public property Static Chrome
Public property CoeffOfThermalExp Gets or sets material coefficient of thermal expansion.
Public property Static Copper
Public property Density Gets or sets material density.
Public property Description Gets or sets the material description.
Public property Diffuse Gets or sets the diffuse reflectance of the material.
Public property ElementThickness Gets or sets the 2D FEM element thickness.
Public property ElementType Gets or sets the 2D FEM element type (FEM).
Public property Static Emerald
Public property Environment Gets or sets the environment reflectance of the material (range 0-1).
Public property EnvironmentMappingImage Gets or sets the material environment mapping image.
Public property EnvironmentMappingTexture Gets the internal Environment Mapping texture.
Public property Static Gold
Public property Static Jade
Public property Static Magnesium
Public property MagnifyingFunction Gets or sets the texture magnifying function. The texture magnifying function is used whenever the pixel being textured maps to an area smaller than one texture element. There are six defined minifying functions. Two of them use the nearest one or nearest four texture elements to compute the texture value. The other four use mipmaps.
Public property Matrix Gets or sets the material Matrix (FEM).
Public property MinifyingFunction Gets or sets the texture minifying function. The texture minifying function is used whenever the pixel being textured maps to an area greater than one texture element. There are six defined minifying functions. Two of them use the nearest one or nearest four texture elements to compute the texture value. The other four use mipmaps.
Public property Name Gets or sets material name.
Public property Static Obsidian
Public property Static Pearl
Public property Static Pewter
Public property Poisson Gets or sets material Poisson's ratio.
Public property Static PolishedBronze
Public property Static PolishedCopper
Public property Static PolishedGold
Public property Static PolishedSilver
Public property RepeatX Gets or sets the texture repeat mode in the X direction.
Public property RepeatY Gets or sets the texture repeat mode in the Y direction.
Public property Static Ruby
Public property ShearModulus Gets the shear modulus using the material Young and Poisson constants.
Public property Shininess Gets or sets the specular exponent of the material (range 0-1).
Public property Static Silver
Public property Specular Gets or sets the specular reflectance of the material.
Public property Static StainlessSteel
Public property Static StructuralSteel
Public property Texture Gets the internal texture.
Public property TextureImage Gets or sets the material texture image.
Public property TextureImageOverExposure Gets or sets a value that controls whether the scene lighting can make the image diffuse color brighter than the image color.
Public property Static Titanium
Public property Static Turquoise
Public property WireColor Gets the color used for wire entities.
Public property YieldStrength Gets or sets material yield strength.
Public property Young Gets or sets material modulus of elasticity.
Top
Methods
 
Name Description
Public method CalcMaterialPropertyMatrix(int, elementType) Updates the D matrix for this material (FEM).
Public method ClearTexture() Clears the texture associated to this material.
Public method Clone() Creates a deep copy of this material.
Public method ConvertToSurrogate()
Public method Dispose() Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (System.Object).
Public method Equals(Material) Compares material names ignoring cases.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method FreeResources() Frees the material graphics resources.
Public method GetHashCode()
Public method GetKey() Gets the key for the item of the collection.
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Public method Static GetPoissonFromShearModulus(double, double) Computes the Poisson ratio that needs to be set to have the desired shear modulus.
Public method GetType Gets the Type of the current instance. (inherited from Object).
Public method IsTransparent() Tells if the material has a AlphaMapImage or if its Diffuse has alpha < 255.
Public method LoadTexture(RenderContextBase) Loads the texture for this material. This is done automatically the first time the material is added to the Materials collection.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (inherited from Object).
Protected method OnKeyChanged(string, string) When the Name changes I need to notify it to the related keyed collections before changing it.
Public method SetKey(string) Sets the key for the item of the collection.
Public method SetTexture(RenderContextBase)
Public method ToString()
Public method WriteObj(string, TextWriter, string) Writes the material definition to OBJ material (*.mtl) file. For internal use only.
Top
Events
 
Name Description
Public event KeyChanged
Top
Fields
 
Name Description
Protected field D D material matrix (FEM)
Top
devDept.Graphics.Material

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition