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
CameraRotationModeProperty
Identifies the CameraRotationMode dependency property.
public static readonly DependencyProperty CameraRotationModeProperty
Field Value
CopyDirectionVectorProperty
Identifies the CopyDirectionVector dependency property.
public static readonly DependencyProperty CopyDirectionVectorProperty
Field Value
CopyUpVectorProperty
Identifies the CopyUpVector dependency property.
public static readonly DependencyProperty CopyUpVectorProperty
Field Value
CrossViewingProperty
Identifies the CrossViewing dependency property.
public static readonly DependencyProperty CrossViewingProperty
Field Value
StereoBaseProperty
Identifies the StereoBase dependency property.
public static readonly DependencyProperty StereoBaseProperty
Field Value
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
trueif [copy direction vector]; otherwise,false.
CopyUpVector
Gets or sets a value indicating whether [copy up vector].
public bool CopyUpVector { get; set; }
Property Value
- bool
trueif [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
trueif [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
leftViewport3DThe left.
rightViewport3DThe right.
BindViewports(Viewport3D, Viewport3D?, bool, bool)
Binds the viewports.
public void BindViewports(Viewport3D left, Viewport3D? right, bool createLights, bool createCamera)
Parameters
leftViewport3DThe left.
rightViewport3DThe right.
createLightsboolif set to
true[create lights].createCameraboolif 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
StereoViewChanged(DependencyObject, DependencyPropertyChangedEventArgs)
The stereo view changed.
protected static void StereoViewChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
dDependencyObjectThe d.
eDependencyPropertyChangedEventArgsThe event arguments.
SynchronizeStereoModel()
Synchronizes the stereo model.
public void SynchronizeStereoModel()
UpdateCameras()
Updates the cameras.
public void UpdateCameras()