DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Functions
f
g
i
l
m
o
r
s
t
Variables
Typedefs
Enumerations
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
v
w
y
+
Enumerations
a
b
c
d
e
f
g
i
l
m
o
p
r
s
t
u
v
w
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
+
Related Functions
o
q
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
w
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
_
a
b
c
d
f
i
k
p
q
s
t
v
w
Enumerations
Enumerator
+
Macros
_
a
b
c
d
f
g
i
m
n
o
p
q
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
fishfarmsstatsplot.h
Go to the documentation of this file.
1
#ifndef FISHFARMSSTATSPLOT_H
2
#define FISHFARMSSTATSPLOT_H
3
4
#include "
BaseStatsPlotImpl.h
"
5
#include "
plottypes.h
"
6
#include <
palettemanager.h
>
7
#include <
graphinteractioncontroller.h
>
8
9
#include <QPen>
10
#include <QColor>
11
12
#include <vector>
13
14
class
DisplaceModel
;
15
class
QCustomPlot
;
16
class
QCPItemLine
;
17
18
class
FishfarmsStatsPlot
:
public
BaseStatsPlotImpl
19
{
20
QCustomPlot
*mPlot =
nullptr
;
21
QCPItemLine
*mTimeline =
nullptr
;
22
QCPItemText
*textLabel =
nullptr
;
23
QPen pen;
24
double
timelineMax = 1e20;
25
double
timelineMin = -1e20;
26
Palette
mPalette;
27
28
DisplaceModel
*lastModel =
nullptr
;
29
displace::plot::FishfarmsStat
lastStat;
30
public
:
31
FishfarmsStatsPlot
(
QCustomPlot
*plot,
QCPItemLine
*timeLine);
32
33
void
setTimelineLimits
(
double
min,
double
max) {
34
timelineMin = min;
35
timelineMax = max;
36
}
37
38
void
update
(
DisplaceModel
*model,
displace::plot::FishfarmsStat
stat,
QCustomPlot
*plot);
39
void
createPopup
(
GraphInteractionController::PopupMenuLocation
location, QMenu *menu);
40
41
protected
:
42
void
update
(
QCustomPlot
*plot)
override
;
43
44
private
:
45
void
displayPlot(
DisplaceModel
*model,
displace::plot::FishfarmsStat
stat);
46
std::tuple<QVector<double>, QVector<double> > getData(
DisplaceModel
*model,
47
displace::plot::FishfarmsStat
stattype,
48
displace::plot::AggregationType
aggtype,
49
int
popid, std::vector<int> szid);
50
void
saveTo();
51
};
52
53
54
#endif // FISHFARMSSTATSPLOT_H
plottypes.h
palettemanager.h
graphinteractioncontroller.h
BaseStatsPlotImpl
Definition:
BaseStatsPlotImpl.h:13
QCustomPlot
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition:
qcustomplot.h:3582
displace::plot::AggregationType
AggregationType
Definition:
plottypes.h:29
FishfarmsStatsPlot
Definition:
fishfarmsstatsplot.h:18
BaseStatsPlotImpl.h
DisplaceModel
Definition:
displacemodel.h:71
FishfarmsStatsPlot::FishfarmsStatsPlot
FishfarmsStatsPlot(QCustomPlot *plot, QCPItemLine *timeLine)
Definition:
fishfarmsstatsplot.cpp:10
displace::plot::FishfarmsStat
FishfarmsStat
Definition:
plottypes.h:11
FishfarmsStatsPlot::createPopup
void createPopup(GraphInteractionController::PopupMenuLocation location, QMenu *menu)
Definition:
fishfarmsstatsplot.cpp:212
FishfarmsStatsPlot::setTimelineLimits
void setTimelineLimits(double min, double max)
Definition:
fishfarmsstatsplot.h:33
StatsPlot::update
virtual void update()
Definition:
StatsPlot.h:19
GraphInteractionController::PopupMenuLocation
PopupMenuLocation
Definition:
graphinteractioncontroller.h:56
QCPItemText
A text label.
Definition:
qcustomplot.h:6283
QCPItemLine
A line from one point to another.
Definition:
qcustomplot.h:6123
Palette
Definition:
palettemanager.h:62
qtgui
plots
fishfarmsstatsplot.h
Generated by
1.8.15