mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
bf12756819
Since the ProfileScene does the actual rendering, it needs access to the "printMode", "isGrayScale" and "fontPrintScale" variables. Move them down from ProfileView to ProfileScene. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
42 lines
1 KiB
C++
42 lines
1 KiB
C++
// SPDX-License-Identifier: GPL-2.0
|
|
// Displays the dive profile. Used by the interactive profile widget
|
|
// and the printing/exporting code.
|
|
#ifndef PROFILESCENE_H
|
|
#define PROFILESCENE_H
|
|
|
|
#include <QGraphicsScene>
|
|
|
|
class DivePlotDataModel;
|
|
|
|
class DepthAxis;
|
|
class DiveCartesianAxis;
|
|
class PartialGasPressureAxis;
|
|
class TemperatureAxis;
|
|
class TimeAxis;
|
|
|
|
class ProfileScene : public QGraphicsScene {
|
|
public:
|
|
ProfileScene(double fontPrintScale);
|
|
~ProfileScene();
|
|
|
|
void updateAxes(); // Update axes according to preferences
|
|
bool isPointOutOfBoundaries(const QPointF &point) const;
|
|
|
|
int animSpeed;
|
|
private:
|
|
friend class ProfileWidget2; // For now, give the ProfileWidget full access to the objects on the scene
|
|
double fontPrintScale;
|
|
bool printMode;
|
|
bool isGrayscale;
|
|
|
|
DivePlotDataModel *dataModel;
|
|
DepthAxis *profileYAxis;
|
|
PartialGasPressureAxis *gasYAxis;
|
|
TemperatureAxis *temperatureAxis;
|
|
TimeAxis *timeAxis;
|
|
DiveCartesianAxis *cylinderPressureAxis;
|
|
DiveCartesianAxis *heartBeatAxis;
|
|
DiveCartesianAxis *percentageAxis;
|
|
};
|
|
|
|
#endif
|