28 #include <QTextDocument> 29 #include <QReadWriteLock> 31 #include <QCoreApplication> 33 #include <LibDLS/Time.h> 36 #include "ValueScale.h" 65 friend class SectionModel;
75 void load(
const QDomElement &, QtDls::Model *,
const QDir &);
76 void save(QDomElement &, QDomDocument &);
78 void connectChannels(QtDls::Model *,
const QDir &);
81 Graph *getGraph() {
return graph; }
83 bool getAutoScale()
const {
return autoScale; }
84 void setAutoScale(
bool);
85 bool getShowScale()
const {
return showScale; }
86 void setShowScale(
bool);
87 double getScaleMinimum()
const {
return scaleMin; }
88 void setScaleMinimum(
double);
89 double getScaleMaximum()
const {
return scaleMax; }
90 void setScaleMaximum(
double);
91 int getHeight()
const {
return height; };
93 double getRelativePrintHeight()
const {
return relativePrintHeight; };
94 void setRelativePrintHeight(
double);
97 int getScaleWidth()
const {
return scale.getWidth(); }
98 void draw(QPainter &,
const QRect &,
int,
int,
bool);
99 int legendHeight()
const {
return legend.size().height(); }
100 double relativeHeight(
int)
const;
102 Layer *appendLayer(QtDls::Channel *);
112 bool getExtrema(
double &,
double &);
116 Exception(
const QString &msg):
124 QSet<QtDls::Channel *> channels();
129 QReadWriteLock rwLockLayers;
130 QList<Layer *> layers;
136 double relativePrintHeight;
137 QTextDocument legend;
143 static const QColor colorList[];
147 void updateExtrema();
149 void loadLayers(
const QDomElement &, QtDls::Model *,
const QDir &);
Datentyp zur Speicherung der Zeit in Mikrosekunden.