An NDoc Documented Class Library

Material Members

Material overview

Public Instance Constructors

Material Overloaded. Initializes a new instance of the Material class.

Public Instance Fields

Name For every material a Name is given, how describes the material. It can be void.

Public Instance Properties

Ambient Retrieves and sets the ambient part.
Diffuse Retrieves and sets the diffuse part.
Emission Retrieves and sets the emission part.
Shininess Retrieves and sets the Shininessvalue.
Specular Retrieves and sets the specular part.
Translucent Retrieves and sets the translucentvalue. It must be between 0 ( translucent ) and 1 ( solid)

Public Instance Methods

assign Sets the meterialproperties to an other material
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 
Update This method should be overridden for a real graphicengine. Further a call to the event Changed is done.
Updated Should be called at end of a change of materialproperties in combination of Updating
Updating If you want to change properties of the material, please use at first Updating and at least Updated. These guaranties that only one time an Update-call is fired.
// Sample
Material m = new Material();
m.Updating();
m.Ambient    = Color.Red;
m.Specular    = Color.Blue;
.
.
m.Updated();
// now the virtual method Update will be called

Public Instance Events

Changed This event is fired every time, when a property of a material has changed

Protected Instance Methods

Finalize (inherited from Object) 
getAmbient Getmethod of the property Ambient
getDiffuse Virtual getmethod of Diffuse-property
getEmission Virtual getmethod of Emission-property
getShininess Virtual getmethod of Shininess-property
getSpecular Virtual getmethod of Specular-property
getTranslucent Virtual getmethod of Translucent-property
MemberwiseClone (inherited from Object) 
setAmbient Virtual setmethod of the property Ambient.
setDiffuse Virtual setmethod of Diffuse-property
setEmission Virtual setmethod of Emission-property
setShininess Virtual setmethod of Shininess-property
setSpecular Virtual setmethod of Specular-property
setTranslucent Virtual setmethod of Translucent-property

See Also

Material Class | Minais.Drawing3d.Materials Namespace