[vtkusers] vtkChartXY picking

nclemeur nclemeur at gmail.com
Thu Dec 9 01:38:55 EST 2010



Eric E. Monson wrote:
> 
> I'm not quite sure how to solve your problem, but I wanted to let you know
> that the 2D API classes (which includes the Charts like vtkChartXY) do not
> use the standard VTK interactors for their event handling, so that's why
> your tests with changing interactor style didn't work. 
> 

Does that mean I should not try to use the vtkPropPicker as suggested above?


Eric E. Monson wrote:
> 
> I'm not an expert in this, but to do what you want with the way the Charts
> and 2D API are implemented right now you might need to go into the classes
> themselves and add in custom events that fire when things like axes are
> hit. I'm not sure about things like line colors. There is already code in
> the charts that is used for tooltips that finds the closest points to the
> mouse, so that may be useful.
> 

Thanks that really usefull to know. I might start by trying to subclass the
vtkXYChart class and see if I can generate custom event. I'll give it a go
soon and will report any success...



-- 
View this message in context: http://vtk.1045678.n5.nabble.com/vtkChartXY-picking-tp3297279p3298505.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list