scidavis
2.3.0
About: SciDAVis is a free application for Scientific Data Analysis and Visualization (a fork off of QtiPlot). Fossies Dox: scidavis-2.3.0.tar.gz ("unofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file.
30 #ifndef DOUBLE2MONTH_FILTER_H
31 #define DOUBLE2MONTH_FILTER_H
33 #include "../AbstractSimpleFilter.h"
37 #include <QXmlStreamWriter>
44 virtual QDate
dateAt(
int row)
const {
47 virtual QTime
timeAt(
int row)
const {
51 if (!
d_inputs.value(0))
return QDateTime();
52 double input_value =
d_inputs.value(0)->valueAt(row);
55 QDate result_date = QDate(1900,1,1).addMonths(qRound(input_value - 1.0));
56 QTime result_time = QTime(0,0,0,0);
57 return QDateTime(result_date, result_time);
69 #endif // ifndef DOUBLE2MONTH_FILTER_H
ColumnDataType
Column data type.
virtual QTime timeAt(int row) const
Return the time part of row 'row'.
virtual SciDAVis::ColumnDataType dataType() const
Return the data type of the column.
virtual SciDAVis::ColumnDataType dataType() const =0
Return the data type of the column.
virtual bool inputAcceptable(int, const AbstractColumn *source)
Give implementations a chance to reject connections to their input ports.
Conversion filter double -> QDateTime, interpreting the input numbers as months of the year.
virtual QDateTime dateTimeAt(int row) const
Set the content of row 'row'.
Simplified filter interface for filters with only one output port.
QVector< const AbstractColumn * > d_inputs
The data sources connected to my input ports.
virtual QDate dateAt(int row) const
Return the date part of row 'row'.
Interface definition for data with column logic.