Table of Contents

Class StereoControl

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Base class for controls that use stereo cameras

public class StereoControl : ContentControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild
Inheritance
StereoControl
Implements
Derived
Inherited Members
Extension Methods

Constructors

StereoControl()

Initializes a new instance of the StereoControl class.

public StereoControl()

Fields

CameraProperty

Identifies the Camera dependency property.

public static readonly DependencyProperty CameraProperty

Field Value

DependencyProperty

CameraRotationModeProperty

Identifies the CameraRotationMode dependency property.

public static readonly DependencyProperty CameraRotationModeProperty

Field Value

DependencyProperty

CopyDirectionVectorProperty

Identifies the CopyDirectionVector dependency property.

public static readonly DependencyProperty CopyDirectionVectorProperty

Field Value

DependencyProperty

CopyUpVectorProperty

Identifies the CopyUpVector dependency property.

public static readonly DependencyProperty CopyUpVectorProperty

Field Value

DependencyProperty

CrossViewingProperty

Identifies the CrossViewing dependency property.

public static readonly DependencyProperty CrossViewingProperty

Field Value

DependencyProperty

StereoBaseProperty

Identifies the StereoBase dependency property.

public static readonly DependencyProperty StereoBaseProperty

Field Value

DependencyProperty

Properties

Camera

Gets or sets the camera.

public PerspectiveCamera Camera { get; set; }

Property Value

PerspectiveCamera

The camera.

CameraRotationMode

Gets or sets the camera rotation mode.

public CameraRotationMode CameraRotationMode { get; set; }

Property Value

CameraRotationMode

The camera rotation mode.

Children

Gets the children.

public ObservableCollection<Visual3D> Children { get; }

Property Value

ObservableCollection<Visual3D>

The children.

CopyDirectionVector

Gets or sets a value indicating whether [copy direction vector].

public bool CopyDirectionVector { get; set; }

Property Value

bool

true if [copy direction vector]; otherwise, false.

CopyUpVector

Gets or sets a value indicating whether [copy up vector].

public bool CopyUpVector { get; set; }

Property Value

bool

true if [copy up vector]; otherwise, false.

CrossViewing

Gets or sets a value indicating whether the cameras are set up for cross viewing.

public bool CrossViewing { get; set; }

Property Value

bool

true if [cross viewing]; otherwise, false.

LeftCamera

Gets or sets the left camera.

public PerspectiveCamera? LeftCamera { get; set; }

Property Value

PerspectiveCamera

The left camera.

LeftViewport

Gets or sets the left viewport.

public Viewport3D? LeftViewport { get; set; }

Property Value

Viewport3D

The left viewport.

RightCamera

Gets or sets the right camera.

public PerspectiveCamera? RightCamera { get; set; }

Property Value

PerspectiveCamera

The right camera.

RightViewport

Gets or sets the right viewport.

public Viewport3D? RightViewport { get; set; }

Property Value

Viewport3D

The right viewport.

StereoBase

Gets or sets the stereo base.

public double StereoBase { get; set; }

Property Value

double

The stereo base.

Methods

BindViewports(Viewport3D, Viewport3D)

Binds the viewports.

public void BindViewports(Viewport3D left, Viewport3D right)

Parameters

left Viewport3D

The left.

right Viewport3D

The right.

BindViewports(Viewport3D, Viewport3D?, bool, bool)

Binds the viewports.

public void BindViewports(Viewport3D left, Viewport3D? right, bool createLights, bool createCamera)

Parameters

left Viewport3D

The left.

right Viewport3D

The right.

createLights bool

if set to true [create lights].

createCamera bool

if set to true [create camera].

Clear()

Clears the children collection.

public void Clear()

ExportKerkythea(string, string)

Exports the views to kerkythea.

public void ExportKerkythea(string leftFileName, string rightFileName)

Parameters

leftFileName string

Name of the left file.

rightFileName string

Name of the right file.

StereoViewChanged(DependencyObject, DependencyPropertyChangedEventArgs)

The stereo view changed.

protected static void StereoViewChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)

Parameters

d DependencyObject

The d.

e DependencyPropertyChangedEventArgs

The event arguments.

SynchronizeStereoModel()

Synchronizes the stereo model.

public void SynchronizeStereoModel()

UpdateCameras()

Updates the cameras.

public void UpdateCameras()