Class ScreenSpacedElement3D
- Namespace
- HelixToolkit.WinUI.SharpDX
- Assembly
- HelixToolkit.WinUI.SharpDX.dll
ScreenSpacedElement3D uses a fixed camera to render model (Mainly used for view box and coordinate system rendering) onto screen which is separated from viewport camera.
Default fix camera is perspective camera with FOV 45 degree and camera distance = 20. Look direction is always looking at (0,0,0).
User must properly scale the model to fit into the camera frustum. The usual maximum size is from (5,5,5) to (-5,-5,-5) bounding box.
User can use SizeScale to scale the size of the rendering.
public abstract class ScreenSpacedElement3D : GroupModel3D, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, IDisposable, IHitable, IVisible
- Inheritance
-
ScreenSpacedElement3D
- Implements
-
IWinRTObject
- Derived
- Inherited Members
- Extension Methods
Fields
AbsolutePosition3DProperty
The absolute position3 d property
public static readonly DependencyProperty AbsolutePosition3DProperty
Field Value
CameraTypeProperty
public static readonly DependencyProperty CameraTypeProperty
Field Value
EnableMoverProperty
The enable mover property
public static readonly DependencyProperty EnableMoverProperty
Field Value
FarPlaneDistanceProperty
public static readonly DependencyProperty FarPlaneDistanceProperty
Field Value
ModeProperty
The mode property
public static readonly DependencyProperty ModeProperty
Field Value
NearPlaneDistanceProperty
public static readonly DependencyProperty NearPlaneDistanceProperty
Field Value
RelativeScreenLocationXProperty
public static readonly DependencyProperty RelativeScreenLocationXProperty
Field Value
RelativeScreenLocationYProperty
public static readonly DependencyProperty RelativeScreenLocationYProperty
Field Value
SizeScaleProperty
public static readonly DependencyProperty SizeScaleProperty
Field Value
Properties
AbsolutePosition3D
Gets or sets the absolute position in 3d. Use by Mode = AbsolutePosition3D
public Vector3 AbsolutePosition3D { get; set; }
Property Value
- Vector3
The absolute position3 d.
CameraType
Only being used when Mode is RelativeScreenSpaced
public ScreenSpacedCameraType CameraType { get; set; }
Property Value
- ScreenSpacedCameraType
The type of the camera.
EnableMover
Gets or sets a value indicating whether [enable mover].
public bool EnableMover { get; set; }
Property Value
- bool
trueif [enable mover]; otherwise,false.
FarPlaneDistance
Gets or sets the far plane distance.
public double FarPlaneDistance { get; set; }
Property Value
- double
The far plane distance.
Mode
Gets or sets the mode.
public ScreenSpacedMode Mode { get; set; }
Property Value
- ScreenSpacedMode
The mode.
MoverCanvas
public RelativePositionCanvas2D MoverCanvas { get; }
Property Value
NearPlaneDistance
Gets or sets the near plane distance.
public double NearPlaneDistance { get; set; }
Property Value
- double
The near plane distance.
RelativeScreenLocationX
Relative Location X on screen. Range from -1~1
public double RelativeScreenLocationX { get; set; }
Property Value
RelativeScreenLocationY
Relative Location Y on screen. Range from -1~1
public double RelativeScreenLocationY { get; set; }
Property Value
SizeScale
Size scaling
public double SizeScale { get; set; }
Property Value
Methods
AssignDefaultValuesToSceneNode(SceneNode)
protected override void AssignDefaultValuesToSceneNode(SceneNode node)
Parameters
nodeSceneNode
OnCreateMover()
protected virtual ScreenSpacePositionMoverBase OnCreateMover()