Class GenericHeadLight<T>
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Provides a base class for lights that operates in camera space.
public abstract class GenericHeadLight<T> : LightSetup, IAnimatable, IAddChild where T : Light, new()
Type Parameters
TThe light type.
- Inheritance
-
GenericHeadLight<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
BrightnessProperty
Identifies the Brightness dependency property.
public static readonly DependencyProperty BrightnessProperty
Field Value
ColorProperty
Identifies the Color dependency property.
public static readonly DependencyProperty ColorProperty
Field Value
PositionProperty
Identifies the Position dependency property.
public static readonly DependencyProperty PositionProperty
Field Value
Properties
Brightness
Gets or sets the brightness of the headlight. If set, this property overrides the Color property.
public double Brightness { get; set; }
Property Value
- double
The brightness.
Color
Gets or sets the color of the headlight. This property is used if Brightness is set to NaN.
public Color Color { get; set; }
Property Value
- Color
The color.
Position
Gets or sets the position of the headlight (in camera space).
public Point3D Position { get; set; }
Property Value
- Point3D
The position.
Methods
AddLights(Model3DGroup)
Adds the lights to the element.
protected override void AddLights(Model3DGroup lightGroup)
Parameters
lightGroupModel3DGroupThe light group.
OnVisualParentChanged(DependencyObject)
Called when the parent of the 3-D visual object is changed.
protected override void OnVisualParentChanged(DependencyObject oldParent)
Parameters
oldParentDependencyObjectA value of type DependencyObject that represents the previous parent of the Visual3D object. If the Visual3D object did not have a previous parent, the value of the parameter is null.