Class InterlacedEffect
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Provides an interlaced blending effect.
public sealed class InterlacedEffect : ShaderEffect, IAnimatable
- Inheritance
-
InterlacedEffect
- Implements
- Inherited Members
- Extension Methods
Remarks
Usage:
- Add the effect to the LEFT EYE UIElement.
- Set RightInput to a VisualBrush of the RIGHT EYE UIElement. See the InterlacedView3D for an example.
Constructors
InterlacedEffect()
Initializes a new instance of the InterlacedEffect class.
public InterlacedEffect()
Fields
EvenLeftProperty
Identifies the EvenLeft dependency property.
public static readonly DependencyProperty EvenLeftProperty
Field Value
LeftInputProperty
Identifies the LeftInput dependency property.
public static readonly DependencyProperty LeftInputProperty
Field Value
Remarks
Brush-valued properties turn into sampler-property in the shader. This helper sets "ImplicitInput" as the default, meaning the default sampler is whatever the rendering of the element it's being applied to is.
RightInputProperty
Identifies the RightInput dependency property.
public static readonly DependencyProperty RightInputProperty
Field Value
Remarks
Brush-valued properties turn into sampler-property in the shader. This helper sets "ImplicitInput" as the default, meaning the default sampler is whatever the rendering of the element it's being applied to is.
Properties
EvenLeft
Gets or sets a value indicating whether even lines should be for the left or right view.
public bool EvenLeft { get; set; }
Property Value
- bool
Trueif even lines should show the left view,falseotherwise.
LeftInput
Gets or sets the left input brush.
public Brush LeftInput { get; set; }
Property Value
- Brush
The left input.
Offset
Gets or sets the horizontal offset.
public float Offset { get; set; }
Property Value
RightInput
Gets or sets the right input brush.
public Brush RightInput { get; set; }
Property Value
- Brush
The right input.