Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
refactor(SLandmarksAdaptor): improved landmarks deselection
Browse files Browse the repository at this point in the history
The point is deselected on right click. Depending on the scene (images or meshes),
we received PressEvent or ReleaseEvent.
  • Loading branch information
emiliehar committed Mar 8, 2017
1 parent 7cf67d5 commit 46d5b6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void SLandmarks::doStart() throw(fwTools::Failed)
vtkDeselectLandmarksCallBack* callback = vtkDeselectLandmarksCallBack::New();
callback->setAdaptor(this->getSptr());
m_noSelectionCommand = callback;
this->getInteractor()->AddObserver(vtkCommand::LeftButtonPressEvent, m_noSelectionCommand);
this->getInteractor()->AddObserver(vtkCommand::RightButtonPressEvent, m_noSelectionCommand);
this->getInteractor()->AddObserver(vtkCommand::RightButtonReleaseEvent, m_noSelectionCommand);

this->doUpdate();
Expand Down

0 comments on commit 46d5b6d

Please sign in to comment.