Table of Contents

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:

  1. Add the effect to the LEFT EYE UIElement.
  2. 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

DependencyProperty

LeftInputProperty

Identifies the LeftInput dependency property.

public static readonly DependencyProperty LeftInputProperty

Field Value

DependencyProperty

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

DependencyProperty

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

True if even lines should show the left view, false otherwise.

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

float

RightInput

Gets or sets the right input brush.

public Brush RightInput { get; set; }

Property Value

Brush

The right input.