Table of Contents

Class PointSelectionCommand

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Provides a command that raises an event returning the hit models at the mouse location when the mouse button is clicked.

public sealed class PointSelectionCommand : SelectionCommand, ICommand
Inheritance
PointSelectionCommand
Implements
Inherited Members

Constructors

PointSelectionCommand(Viewport3D, EventHandler<ModelsSelectedEventArgs>)

Initializes a new instance of the PointSelectionCommand class.

public PointSelectionCommand(Viewport3D viewport, EventHandler<ModelsSelectedEventArgs> modelsSelectedEventHandler)

Parameters

viewport Viewport3D

The viewport.

modelsSelectedEventHandler EventHandler<ModelsSelectedEventArgs>

The selection event handler.

PointSelectionCommand(Viewport3D, EventHandler<ModelsSelectedEventArgs>, EventHandler<VisualsSelectedEventArgs>)

Initializes a new instance of the PointSelectionCommand class.

public PointSelectionCommand(Viewport3D viewport, EventHandler<ModelsSelectedEventArgs> modelsSelectedEventHandler, EventHandler<VisualsSelectedEventArgs> visualsSelectedEventHandler)

Parameters

viewport Viewport3D

The viewport.

modelsSelectedEventHandler EventHandler<ModelsSelectedEventArgs>

The selection event handler.

visualsSelectedEventHandler EventHandler<VisualsSelectedEventArgs>

The selection event handler.

PointSelectionCommand(Viewport3D, EventHandler<VisualsSelectedEventArgs>)

Initializes a new instance of the PointSelectionCommand class.

public PointSelectionCommand(Viewport3D viewport, EventHandler<VisualsSelectedEventArgs> visualsSelectedEventHandler)

Parameters

viewport Viewport3D

The viewport.

visualsSelectedEventHandler EventHandler<VisualsSelectedEventArgs>

The selection event handler.

Methods

Completed(ManipulationEventArgs)

The customized complete operation when the manipulation is completed.

protected override void Completed(ManipulationEventArgs e)

Parameters

e ManipulationEventArgs

The ManipulationEventArgs instance containing the event data.

GetCursor()

Gets the cursor for the gesture.

protected override Cursor GetCursor()

Returns

Cursor

A cursor.

Started(ManipulationEventArgs)

Occurs when the manipulation is started.

protected override void Started(ManipulationEventArgs e)

Parameters

e ManipulationEventArgs

The ManipulationEventArgs instance containing the event data.