DisplayMaterial
Inheritance Hierarchy
System.Object
Rhino.Display.DisplayMaterial
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class DisplayMaterial : IDisposable
The DisplayMaterial type exposes the following members.
Constructors
Name
Description
Public Method
DisplayMaterial.
Constructs a default material.
Public Method
DisplayMaterial(Color)
Constructs a default material with a specific diffuse color.
Public Method
DisplayMaterial(DisplayMaterial)
Duplicate another material.
Public Method
DisplayMaterial(Material)
Initializes a new instance of the DisplayMaterial class
Public Method
DisplayMaterial(Color, Double)
Constructs a default material with a specific diffuse color and transparency.
Public Method
DisplayMaterial(Color, Color, Color, Color, Double, Double)
Constructs a material with custom properties.
Properties
Name
Description
Public Property
BackDiffuse
Gets or sets the Diffuse color of the back side of the Material. The alpha component of the color will be ignored.
Public Property
BackEmission
Gets or sets the Emissive color of the back side of the Material. The alpha component of the color will be ignored.
Public Property
BackShine
Gets or sets the shine factor of the back side of the material (0.0 to 1.0)
Public Property
BackSpecular
Gets or sets the Specular color of the back side of the Material. The alpha component of the color will be ignored.
Public Property
BackTransparency
Gets or sets the transparency of the back side material (0.0 = opaque to 1.0 = transparent)
Public Property
Diffuse
Gets or sets the Diffuse color of the Material. The alpha component of the color will be ignored.
Public Property
Emission
Gets or sets the Emissive color of the Material. The alpha component of the color will be ignored.
Public Property
IsTwoSided
Public Property
Shine
Gets or sets the shine factor of the material (0.0 to 1.0)
Public Property
Specular
Gets or sets the Specular color of the Material. The alpha component of the color will be ignored.
Public Property
Transparency
Gets or sets the transparency of the material (0.0 = opaque to 1.0 = transparent)
Methods
Name
Description
Public Method
Dispose.
Releases all resources used by the DisplayMaterial
Protected Method
Dispose(Boolean)
Releases the unmanaged resources used by the DisplayMaterial and optionally releases the managed resources
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
(Overrides Object.Finalize..)
Public Method
GetBitmapTexture
Public Method
GetBumpTexture
Gets the bump texture for this display material.
Public Method
GetEnvironmentTexture
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetTransparencyTexture
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
SetBitmapTexture(String, Boolean)
Public Method
SetBitmapTexture(Texture, Boolean)
Public Method
SetBumpTexture(String, Boolean)
Public Method
SetBumpTexture(Texture, Boolean)
Public Method
SetEnvironmentTexture(String, Boolean)
Public Method
SetEnvironmentTexture(Texture, Boolean)
Public Method
SetTransparencyTexture(String, Boolean)
Public Method
SetTransparencyTexture(Texture, Boolean)
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)