Table of Contents

Class ScreenSpacedElement3D

Namespace
HelixToolkit.Wpf.SharpDX
Assembly
HelixToolkit.Wpf.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, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IDisposable, IHitable, IVisible
Inheritance
ScreenSpacedElement3D
Implements
Derived
Inherited Members
Extension Methods

Fields

AbsolutePosition3DProperty

The absolute position3 d property

public static readonly DependencyProperty AbsolutePosition3DProperty

Field Value

DependencyProperty

CameraTypeProperty

public static readonly DependencyProperty CameraTypeProperty

Field Value

DependencyProperty

EnableMoverProperty

The enable mover property

public static readonly DependencyProperty EnableMoverProperty

Field Value

DependencyProperty

FarPlaneDistanceProperty

public static readonly DependencyProperty FarPlaneDistanceProperty

Field Value

DependencyProperty

ModeProperty

The mode property

public static readonly DependencyProperty ModeProperty

Field Value

DependencyProperty

NearPlaneDistanceProperty

public static readonly DependencyProperty NearPlaneDistanceProperty

Field Value

DependencyProperty

RelativeScreenLocationXProperty

public static readonly DependencyProperty RelativeScreenLocationXProperty

Field Value

DependencyProperty

RelativeScreenLocationYProperty

public static readonly DependencyProperty RelativeScreenLocationYProperty

Field Value

DependencyProperty

SizeScaleProperty

public static readonly DependencyProperty SizeScaleProperty

Field Value

DependencyProperty

Properties

AbsolutePosition3D

Gets or sets the absolute position in 3d. Use by Mode = AbsolutePosition3D

public Point3D AbsolutePosition3D { get; set; }

Property Value

Point3D

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

true if [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

RelativePositionCanvas2D

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

double

RelativeScreenLocationY

Relative Location Y on screen. Range from -1~1

public double RelativeScreenLocationY { get; set; }

Property Value

double

SizeScale

Size scaling

public double SizeScale { get; set; }

Property Value

double

Methods

AssignDefaultValuesToSceneNode(SceneNode)

protected override void AssignDefaultValuesToSceneNode(SceneNode node)

Parameters

node SceneNode

OnCreateMover()

protected virtual ScreenSpacePositionMoverBase OnCreateMover()

Returns

ScreenSpacePositionMoverBase