27 #include "../../../dataaccess/dataset/ObjectIdSet.h" 28 #include "../../../datatype/Date.h" 29 #include "../../../datatype/DateTime.h" 30 #include "../../../datatype/TimeInstant.h" 31 #include "../../../qt/widgets/se/Utils.h" 32 #include "../../../st/core/timeseries/TimeSeries.h" 33 #include "../../../st/core/timeseries/TimeSeriesIterator.h" 42 #include <qwt_symbol.h> 47 #include "boost/date_time/gregorian/gregorian.hpp" 58 setStyle(QwtPlotCurve::Lines);
59 setPaintAttribute(QwtPlotCurve::ClipPolygons);
76 setStyle(QwtPlotCurve::Lines);
77 setPaintAttribute(QwtPlotCurve::ClipPolygons);
86 std::set<std::string> dates;
97 QDate qdatei(time->getDate().getYear(), time->getDate().getMonth(), time->getDate().getDay());
98 QTime qtimei(time->getTime().getHours(), time->getTime().getMinutes(), time->getTime().getSeconds());
99 QDateTime qdate(qdatei, qtimei);
100 date = QwtDate::toDouble(qdate);
105 QDate qdatei(d->getDate().year(), d->getDate().month(), d->getDate().day());
107 QDateTime qdate(qdatei, qtimei);
108 date = QwtDate::toDouble(qdate);
111 samples += QPointF(date, it.
getDouble());
115 setSamples( samples );
131 plot->axisScaleDraw(QwtPlot::xBottom)->setLabelAlignment(Qt::AlignLeft | Qt::AlignVCenter);
132 plot->axisScaleDraw(QwtPlot::xBottom)->setLabelRotation(-60);
133 QwtPlotCurve::attach(plot);
double getDouble() const
It returns the attribute value as a double pointed by the internal cursor.
A class to represent a timeSeries' chart.
A class to traverse the observations of a TimeSeries.
virtual DateTimeType getDateTimeType() const =0
It returns the subtype of the date and time type.
A class used to define the style of a TimeSeries's chart.
te::dt::DateTime * getTime() const
It returns the datetime pointed by the internal cursor.
A class to represent a set of labels to be used on a histogram's chart.
A class that adjusts the labels that based on temporal data on a chart.
A class to represent time instant.
A base class for date data types.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
A class to represent time series.
TimeSeriesIterator end() const
It returns an iterator that points to the end of the time series.
TimeSeriesIterator begin() const
It returns an iterator that points to the first observation of the time series.