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

Natalie natis261270 at yahoo.com
Fri Nov 4 14:03:39 EDT 2011


Hi Julien,

what I want to implement is a chart editor. My program creates a chart in
default layout and the user should be able to change line color, grid, axis
label etc. The initial idea was to have a separate action for all parts of
the chart, e.g. a click on the line would pop up a line editor etc. For now
I am fine with a double click which results in a pop up of a window to edit
the chart. At the moment, however, if the user clicks outside the chart area
nothing will happen. 

I think everybody wants different actions. Therefore it would be very
important to be able to implement many different actions easily. My problem
was which class I need to subclass to implement an action. I still would
like to know why subclassing vtkContextView and vtkContextInteractorStyle
did not work....

Anyway, I hope that this thread will help others in the same situation.
Many thanks 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-tp4943170p4964816.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list