Class PerspectiveCameraExtension
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
A markup extension creating a perspective camera.
public sealed class PerspectiveCameraExtension : MarkupExtension
- Inheritance
-
PerspectiveCameraExtension
- Inherited Members
Examples
Camera={ht:PerspectiveCamera 10,10,20}
Constructors
PerspectiveCameraExtension(double, double, double)
Initializes a new instance of the PerspectiveCameraExtension class.
public PerspectiveCameraExtension(double x, double y, double z)
Parameters
PerspectiveCameraExtension(double, double, double, double, double, double)
Initializes a new instance of the PerspectiveCameraExtension class.
public PerspectiveCameraExtension(double x, double y, double z, double dx, double dy, double dz)
Parameters
xdoubleThe x.
ydoubleThe y.
zdoubleThe z.
dxdoubleThe dx.
dydoubleThe dy.
dzdoubleThe dz.
Properties
FieldOfView
Gets or sets the field of view.
public double FieldOfView { get; set; }
Property Value
- double
The field of view.
LookDirection
Gets or sets the look direction.
public Vector3D LookDirection { get; set; }
Property Value
- Vector3D
The look direction.
Position
Gets or sets the position.
public Point3D Position { get; set; }
Property Value
- Point3D
The position.
UpDirection
Gets or sets up direction.
public Vector3D UpDirection { get; set; }
Property Value
- Vector3D
Up direction.
Methods
ProvideValue(IServiceProvider)
When implemented in a derived class, returns an object that is set as the value of the target property for this markup extension.
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
serviceProviderIServiceProviderObject that can provide services for the markup extension.
Returns
- object
The object value to set on the property where the extension is applied.