DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
windfarmsstatsplot.h
Go to the documentation of this file.
1 #ifndef WINDFARMSSTATSPLOT_H
2 #define WINDFARMSSTATSPLOT_H
3 
4 #include "BaseStatsPlotImpl.h"
5 #include "plottypes.h"
6 #include <palettemanager.h>
7 
8 #include <QPen>
9 #include <QColor>
10 
12 
13 class DisplaceModel;
14 class QCustomPlot;
15 class QCPItemLine;
16 
18 {
19  QCustomPlot *mPlot;
20  QCPItemLine *mTimeline;
21  QPen pen;
22  double timelineMax = 1e20;
23  double timelineMin = -1e20;
24  Palette mPalette;
25 
26  DisplaceModel *lastModel;
28 
29  QString mSaveFilename;
30 public:
31  WindfarmsStatsPlot(QCustomPlot *plot, QCPItemLine *timeLine);
32 
33  void setTimelineLimits(double min, double max) {
34  timelineMin = min;
35  timelineMax = max;
36  }
37 
40 private:
41  void saveTo();
42 
43 protected:
44  void update(QCustomPlot *plot) override;
45 };
46 
47 
48 
49 #endif // WINDFARMSSTATSPLOT_H
void setTimelineLimits(double min, double max)
Definition: windfarmsstatsplot.h:33
WindfarmsStat
Definition: plottypes.h:13
Definition: BaseStatsPlotImpl.h:13
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:3582
Definition: displacemodel.h:71
virtual void update()
Definition: StatsPlot.h:19
PopupMenuLocation
Definition: graphinteractioncontroller.h:56
WindfarmsStatsPlot(QCustomPlot *plot, QCPItemLine *timeLine)
Definition: windfarmsstatsplot.cpp:13
void createPopup(GraphInteractionController::PopupMenuLocation location, QMenu *menu)
Definition: windfarmsstatsplot.cpp:180
A line from one point to another.
Definition: qcustomplot.h:6123
Definition: windfarmsstatsplot.h:17
Definition: palettemanager.h:62