mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
790d2b2ddb
Slowly converting the QGraphicsScene items to QSGNodes to avoid full replot of the scene. This adds a new abstraction for line-nodes. Since the render() function here is fundamentally different from the pixmap-nodes we had so far, this has to be made virtual. Also, move the quartile markers to their own source file, since the StatsView source file is quite huge already. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
20 lines
412 B
C++
20 lines
412 B
C++
// A short line used to mark quartiles
|
|
#ifndef QUARTILE_MARKER_H
|
|
#define QUARTILE_MARKER_H
|
|
|
|
#include "chartitem.h"
|
|
|
|
class StatsAxis;
|
|
class StatsView;
|
|
|
|
class QuartileMarker : public ChartLineItem {
|
|
public:
|
|
QuartileMarker(StatsView &view, double pos, double value, StatsAxis *xAxis, StatsAxis *yAxis);
|
|
~QuartileMarker();
|
|
void updatePosition();
|
|
private:
|
|
StatsAxis *xAxis, *yAxis;
|
|
double pos, value;
|
|
};
|
|
|
|
#endif
|