mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
statistics: implement rectangle selection in scatter plot
Allow the user to select regions of the scatter plot using a rectangular selection. When shift is pressed, do an incremental selection. Unfortunately, the list-selection code is so slow that this becomes unusable for a large number of selected dives. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e38b78b2aa
commit
d63d4cd3c3
16 changed files with 207 additions and 36 deletions
|
@ -19,6 +19,7 @@ struct StatsVariable;
|
|||
class StatsSeries;
|
||||
class CategoryAxis;
|
||||
class ChartItem;
|
||||
class ChartRectLineItem;
|
||||
class ChartTextItem;
|
||||
class CountAxis;
|
||||
class HistogramAxis;
|
||||
|
@ -142,7 +143,10 @@ private:
|
|||
ChartItemPtr<Legend> legend;
|
||||
Legend *draggedItem;
|
||||
ChartItemPtr<RegressionItem> regressionItem;
|
||||
ChartItemPtr<ChartRectLineItem> selectionRect;
|
||||
QPointF dragStartMouse, dragStartItem;
|
||||
bool shiftSelection;
|
||||
std::vector<dive *> oldSelection;
|
||||
|
||||
void hoverEnterEvent(QHoverEvent *event) override;
|
||||
void hoverMoveEvent(QHoverEvent *event) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue