Click or drag to resize

HemisphericAmbientLight Class

Immutable class that represents hemispheric ambient lighting. The color of a face is determined by its normal. If the normal points in the direction of the member DirectionBelowToAbove, the color is ColorAbove. If the normal points in the opposite direction, the color is ColorBelow. The color for all other directions is an interpolated value between ColorBelow and ColorAbove.
Inheritance Hierarchy
SystemObject
  Altaxo.Graph.Graph3D.LightingHemisphericAmbientLight

Namespace: Altaxo.Graph.Graph3D.Lighting
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class HemisphericAmbientLight : IImmutable

The HemisphericAmbientLight type exposes the following members.

Constructors
 NameDescription
Public methodHemisphericAmbientLight Initializes a new instance of the HemisphericAmbientLight class with default values.
Public methodHemisphericAmbientLight(Double, NamedColor, NamedColor, VectorD3D, Boolean) Initializes a new instance of the HemisphericAmbientLight class.
Top
Properties
 NameDescription
Public propertyColorAbove Gets the color of the face if its normal vector points in the same direction as DirectionBelowToAbove.
Public propertyColorBelow Gets the color of the face if its normal vector points in the direction opposite to DirectionBelowToAbove.
Public propertyDirectionBelowToAbove Gets the direction from "below" to "above".
Public propertyIsAffixedToCamera Gets a value indicating whether this light source is affixed to the camera coordinate system or to the world coordinate system.
Public propertyLightAmplitude Gets the light amplitude. The default value is 1. This value is multiplied with the light colors (ColorBelow and ColorAbove) to get the effective light's color.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from 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.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
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 methodWithColorAbove Gets a new instance of HemisphericAmbientLight with the provided value for ColorAbove.
Public methodWithColorBelow Gets a new instance of HemisphericAmbientLight with the provided value for ColorBelow.
Public methodWithDirectionBelowToAbove Gets a new instance of HemisphericAmbientLight with the provided value for DirectionBelowToAbove.
Public methodWithLightAmplitude Gets a new instance of HemisphericAmbientLight with the provided value for LightAmplitude.
Public methodWithValueAffixedToCamera Gets a new instance of HemisphericAmbientLight with the provided value for IsAffixedToCamera.
Top
Remarks
The interpolation value r (0..1) between ColorBelow and ColorAbove is determined by r = 0.5*(1+dotproduct(facenormal, directionBelowToAbove)).
See Also