C# Class HelixToolkit.Wpf.LightSetup

An abstract base class for light models.
Inheritance: System.Windows.Media.Media3D.ModelVisual3D
显示文件 Open project: litdev1/LitDev

Public Properties

Property Type Description
ShowLightsProperty System.Windows.DependencyProperty

Protected Methods

Method Description
AddLights ( System.Windows.Media.Media3D.Model3DGroup lightGroup ) : void

Adds the lights to the element.

LightSetup ( ) : System.Windows

Initializes a new instance of the LightSetup class.

OnSetupChanged ( ) : void

The on setup changed.

OnShowLightsChanged ( ) : void

Called when show lights is changed.

SetupChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The setup changed.

Private Methods

Method Description
ShowLightsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

The show lights changed.

Method Details

AddLights() protected abstract method

Adds the lights to the element.
protected abstract AddLights ( System.Windows.Media.Media3D.Model3DGroup lightGroup ) : void
lightGroup System.Windows.Media.Media3D.Model3DGroup /// The light group. ///
return void

LightSetup() protected method

Initializes a new instance of the LightSetup class.
protected LightSetup ( ) : System.Windows
return System.Windows

OnSetupChanged() protected method

The on setup changed.
protected OnSetupChanged ( ) : void
return void

OnShowLightsChanged() protected method

Called when show lights is changed.
protected OnShowLightsChanged ( ) : void
return void

SetupChanged() protected static method

The setup changed.
protected static SetupChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject /// The sender. ///
e System.Windows.DependencyPropertyChangedEventArgs /// The event arguments. ///
return void

Property Details

ShowLightsProperty public_oe static_oe property

Identifies the ShowLights dependency property.
public static DependencyProperty,System.Windows ShowLightsProperty
return System.Windows.DependencyProperty