C# Class HelixToolkit.Wpf.ScreenSpaceVisual3D

An abstract base class for visuals that use screen space dimensions when rendering.
Inheritance: RenderingModelVisual3D
显示文件 Open project: litdev1/LitDev

Public Properties

Property Type Description
ColorProperty System.Windows.DependencyProperty
DepthOffsetProperty System.Windows.DependencyProperty
PointsProperty System.Windows.DependencyProperty

Protected Methods

Method Description
GeometryChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when geometry properties have changed.

OnCompositionTargetRendering ( object sender, System.Windows.Media.RenderingEventArgs e ) : void

The composition target_ rendering.

OnVisualParentChanged ( DependencyObject oldParent ) : void

Called when the parent of the 3-D visual object is changed.

ScreenSpaceVisual3D ( ) : System.Collections.Generic

Initializes a new instance of the ScreenSpaceVisual3D class.

UpdateGeometry ( ) : void

Updates the geometry.

UpdateTransforms ( ) : bool

Updates the transforms.

Private Methods

Method Description
ColorChanged ( ) : void

Changes the material when the color changed.

ColorChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Changes the material when the color changed.

UpdateClipping ( ) : void

Updates the clipping object.

Method Details

GeometryChanged() protected static method

Called when geometry properties have changed.
protected static GeometryChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.DependencyPropertyChangedEventArgs /// The instance containing the event data. ///
return void

OnCompositionTargetRendering() protected method

The composition target_ rendering.
protected OnCompositionTargetRendering ( object sender, System.Windows.Media.RenderingEventArgs e ) : void
sender object /// The sender. ///
e System.Windows.Media.RenderingEventArgs /// The event arguments. ///
return void

OnVisualParentChanged() protected method

Called when the parent of the 3-D visual object is changed.
protected OnVisualParentChanged ( DependencyObject oldParent ) : void
oldParent System.Windows.DependencyObject /// A value of type that represents the previous parent of the object. If the object did not have a previous parent, the value of the parameter is null. ///
return void

ScreenSpaceVisual3D() protected method

Initializes a new instance of the ScreenSpaceVisual3D class.
protected ScreenSpaceVisual3D ( ) : System.Collections.Generic
return System.Collections.Generic

UpdateGeometry() protected abstract method

Updates the geometry.
protected abstract UpdateGeometry ( ) : void
return void

UpdateTransforms() protected abstract method

Updates the transforms.
protected abstract UpdateTransforms ( ) : bool
return bool

Property Details

ColorProperty public_oe static_oe property

Identifies the Color dependency property.
public static DependencyProperty,System.Windows ColorProperty
return System.Windows.DependencyProperty

DepthOffsetProperty public_oe static_oe property

Identifies the DepthOffset dependency property.
public static DependencyProperty,System.Windows DepthOffsetProperty
return System.Windows.DependencyProperty

PointsProperty public_oe static_oe property

Identifies the Points dependency property.
public static DependencyProperty,System.Windows PointsProperty
return System.Windows.DependencyProperty