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 DOUBLE2DAY_OF_WEEK_FILTER_H
31 #define DOUBLE2DAY_OF_WEEK_FILTER_H
33 #include "../AbstractSimpleFilter.h"
36 #include <QXmlStreamWriter>
43 virtual QDate
dateAt(
int row)
const {
44 if (!
d_inputs.value(0))
return QDate();
47 return QDate(1900,1,1).addDays(qRound(
d_inputs.value(0)->valueAt(row) - 1.0));
49 virtual QTime
timeAt(
int row)
const {
51 return QTime(0,0,0,0);
67 #endif // ifndef DOUBLE2DAY_OF_WEEK_FILTER_H
virtual QDate dateAt(int row) const
Return the date part of row 'row'.
virtual bool inputAcceptable(int, const AbstractColumn *source)
Using typed ports: only double inputs are accepted.
virtual SciDAVis::ColumnDataType dataType() const
Return the data type of the column.
ColumnDataType
Column data type.
virtual QTime timeAt(int row) const
Return the time part of row 'row'.
virtual SciDAVis::ColumnDataType dataType() const =0
Return the data type of the column.
Simplified filter interface for filters with only one output port.
QVector< const AbstractColumn * > d_inputs
The data sources connected to my input ports.
Conversion filter double -> QDateTime, interpreting the input numbers as days of the week (1 = Monday...
virtual QDateTime dateTimeAt(int row) const
Set the content of row 'row'.
Interface definition for data with column logic.