[vtkusers] vtkChartXY: How to catch mouse click events, user interaction? (VTK 5.8.0)
Natalie
natis261270 at yahoo.com
Thu Nov 3 14:26:47 EDT 2011
Hi Julien,
thanks a lot for your explanation. For sure, I will need specific point
selection in the future. But to start with, I just want a right mouse
double click (if possible, if not a single click might be OK) giving a
specific action. As you said there are multiple ways of doing, which one
would you think is best? I think a double click is not really detected yet,
right?
1. I tried with AddObserver, but there was no action.
2. I subclassed vtkContextInteractorStyle to change the action and I
subcalssed vtkContextView to change the constructor as I said in my last
post. It compiles fine, but I get a runtime crash in the line
view->GetInteractor()->Start();
Here view is the subclassed vtkContextView. It crashes in the
"vtkContextInteractorStyle::ProcessSceneEvents" method coming from
"vtkWin32RenderWindowInteractor::Start()" in the message loop.
So far I did not find the cause.
What is wrong???
Thanks a lot for your help!
Natalie
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkChartXY-How-to-catch-mouse-click-events-user-interaction-VTK-5-8-0-tp4943170p4961905.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list