[vtkusers] vtkChartXY: How to catch mouse click events, user interaction? (VTK 5.8.0)

Julien Finet julien.finet at kitware.com
Thu Nov 3 14:42:59 EDT 2011


Have you looked at:
 - vtkControlPointsItem::MouseDoubleClickEvent ?

It doesn't work for you if you reimplement
vtkChartXY::MouseDoubleClickEvent?

j.

On Thu, Nov 3, 2011 at 2:26 PM, Natalie <natis261270 at yahoo.com> wrote:

> 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.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111103/797a4230/attachment.htm>


More information about the vtkusers mailing list