Click or drag to resize

MaterialInvisible Class

Invisible placeholder material used when no material should be rendered.
Inheritance Hierarchy
SystemObject
  Altaxo.Drawing.D3D.MaterialMaterialInvisible

Namespace: Altaxo.Drawing.D3D.Material
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class MaterialInvisible : IMaterial, 
	IImmutable, IEquatable<IMaterial>

The MaterialInvisible type exposes the following members.

Properties
 NameDescription
Public propertyColor Gets the diffuse color of the material.
Public propertyHasColor Gets a value indicating whether this instance has a color by itself.
Public propertyHasTexture Gets a value indicating whether this instance has texture.
Public propertyIndexOfRefraction Gets the index of refraction of the material.
Public propertyStatic memberInstance Gets the singleton instance.
Public propertyIsVisible Gets a value indicating whether this material is visible at all. There might be one material instance that could be used as a convenient place holder for null, that is treated as "no material". Drawing contexts should not draw anything if the material returns false for this property.
Public propertyMetalness Value between 0 and 1. If 0, the reflected specular light is multiplied with the material diffuse color. This is often the case for metals, e.g. gold. If 1, the reflected specular light has the same color as the incident light (thus as if it is reflected at a white surface). This is often the case for plastics.
Public propertyPhongModelDiffuseIntensity Gets the diffuse intensity normalized for phong model.
Public propertyPhongModelSpecularExponent Gets the specular exponent for the Phong model.
Public propertyPhongModelSpecularIntensity Gets the specular intensity normalized for phong model. This is the expression SpecularIntensity*(1+SpecularExponent). This pre-factor in the Phong equation ensures that the total light intensity reflected in all directions of the half sphere will not change when changing the SpecularExponent.
Public propertySmoothness Gets the specular exponent. The higher this value, the more shiny the material (i.e. the smaller the reflex on the surface).
Top
Methods
 NameDescription
Public methodEquals(IMaterial)Indicates whether the current object is equal to another object of the same type.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasSameSpecularPropertiesAs Determines whether this material has the same specular properties as the material provided in anotherMaterial.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWithColor Gets a new instance of this material with the color set to the provided values. Material classes that don't support color should not throw an exception, but simply return the same instance.
Public methodWithSpecularProperties Gets a new instance of this material with the specular properties set to the provided values.
Public methodWithSpecularPropertiesAs Returns a new material based on this material, but with all specular properties taken from the template material provided in templateMaterial.
Top
See Also