[vtkusers] Add tooltipl to a vtkChartXY

Paul Douglas Hahn pdhahn at compintensehpc.com
Fri May 4 12:34:17 EDT 2018


Maybe check "mouse.GetButton() == this->Actions.Pan()"?

On 05/04/2018 10:38 AM, Martina Litterio wrote:
> I have a class that extend vtkChartXY and I've tried to override 
> its MouseMoveEvent(). I've added the following line
>
> if(mouse.GetButton()== vtkContextMouseEvent::LEFT_BUTTON)
>
> to intercept the start of the dragging event, but it returns false.
>
> The only condition that returns true put in that function is this one
>
> if(mouse.GetButton()== vtkContextMouseEvent::NO_BUTTON)
>
>
> I know something is missing but I can't understand what 😅
>
> /Martina/
>
> 2018-05-04 14:05 GMT+02:00 Paul Douglas Hahn <pdhahn at comcast.net 
> <mailto:pdhahn at comcast.net>>:
>
>     You can override the MouseMoveEvent() method in your subclass of
>     vtkChartXY.
>
>
>     On 05/04/2018 04:46 AM, Martina Litterio wrote:
>>     Updates: I'm finally able to show a tooltip when I left click on
>>     my vtkChartXY.
>>     My problem now is that I would like that the tooltip changes its
>>     values when I drag the point with the mouse.
>>     How can I intercept that event?
>>
>>     /Martina/
>>
>>     2018-05-04 9:53 GMT+02:00 Martina Litterio
>>     <litteriomartina at gmail.com <mailto:litteriomartina at gmail.com>>:
>>
>>         Hello everybody!
>>
>>         I have a vtkChartXY like the which one in figure and I would
>>         like to add a tooltip when I select a point with the mouse
>>         left button. Is it possible? I've tried a little bit, but I
>>         failed!
>>         Thank you for the help!
>>
>>         /Martina/
>>
>>
>>
>>
>>     _______________________________________________
>>     Powered bywww.kitware.com <http://www.kitware.com>
>>
>>     Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>     <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 <http://www.vtk.org/Wiki/VTK_FAQ>
>>
>>     Search the list archives at:http://markmail.org/search/?q=vtkusers
>>     <http://markmail.org/search/?q=vtkusers>
>>
>>     Follow this link to subscribe/unsubscribe:
>>     https://vtk.org/mailman/listinfo/vtkusers
>>     <https://vtk.org/mailman/listinfo/vtkusers>
>
>


-- 
Paul D. Hahn
CompIntense HPC, LLC

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180504/3e193dae/attachment.html>


More information about the vtkusers mailing list