-
- Downloads
Introduced a new chart selection mode
This commit introduces a new chart selection mode to the charts, based on plots rather than rows. The default remains row-based selection, where a selection in one plot causes all corresponding points in the same row of the table to be selected in other plot objects. This behavior was improved slightly to iterate through and accumulate selections in all plots (rather than just using that of the last plot which resulted in confusing behavior). The plot based selection keeps any selection specific to a plot. The vtkPlot object that originated a selection is stored in the PROP property of the vtkSelectionNode, with the SOURCE property being used to store the table the selection is on. The vtkSelection object will have a vtkSelectionNode object for each plot with a selection on it. All of the normal selection combination rules are applied per-plot. The rectangle and polygon selection mode code was refactored to reduce the amount of code duplication necessary. Two tests were introduced allowing interactive use of the chart with row or plot based selection using polygon selection (left mouse) or rectangle selection (right mouse). Change-Id: Ib739ec620b7094bcf4940767000e8620c432e341
Showing
- Charts/Core/Testing/Cxx/CMakeLists.txt 2 additions, 0 deletionsCharts/Core/Testing/Cxx/CMakeLists.txt
- Charts/Core/Testing/Cxx/TestLinePlotSelection.cxx 110 additions, 0 deletionsCharts/Core/Testing/Cxx/TestLinePlotSelection.cxx
- Charts/Core/Testing/Cxx/TestLinePlotSelection2.cxx 110 additions, 0 deletionsCharts/Core/Testing/Cxx/TestLinePlotSelection2.cxx
- Charts/Core/vtkChart.cxx 19 additions, 0 deletionsCharts/Core/vtkChart.cxx
- Charts/Core/vtkChart.h 23 additions, 0 deletionsCharts/Core/vtkChart.h
- Charts/Core/vtkChartSelectionHelper.h 48 additions, 11 deletionsCharts/Core/vtkChartSelectionHelper.h
- Charts/Core/vtkChartXY.cxx 207 additions, 104 deletionsCharts/Core/vtkChartXY.cxx
- Charts/Core/vtkChartXY.h 15 additions, 0 deletionsCharts/Core/vtkChartXY.h
Loading
Please register or sign in to comment