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
viewportViewport3DThe viewport.
modelsSelectedEventHandlerEventHandler<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
viewportViewport3DThe viewport.
modelsSelectedEventHandlerEventHandler<ModelsSelectedEventArgs>The selection event handler.
visualsSelectedEventHandlerEventHandler<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
viewportViewport3DThe viewport.
visualsSelectedEventHandlerEventHandler<VisualsSelectedEventArgs>The selection event handler.
Methods
Completed(ManipulationEventArgs)
The customized complete operation when the manipulation is completed.
protected override void Completed(ManipulationEventArgs e)
Parameters
eManipulationEventArgsThe 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
eManipulationEventArgsThe ManipulationEventArgs instance containing the event data.