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)  

SimpleCopyThroughFilter.h
Go to the documentation of this file.
1 
12 
30 #ifndef SIMPLE_COPY_THROUGH_FILTER_H
31 #define SIMPLE_COPY_THROUGH_FILTER_H
32 
34 #include "lib/XmlStreamReader.h"
35 #include <QXmlStreamWriter>
36 
48 {
49  Q_OBJECT
50 
51  public:
53 
54  virtual bool isMasked(int row) const { return d_inputs.value(0) ? d_inputs.at(0)->isMasked(row) : false; }
57  virtual bool isMasked(Interval<int> i) const { return d_inputs.value(0) ? d_inputs.at(0)->isMasked(i) : false; }
59  virtual QList< Interval<int> > maskedIntervals() const
60  {
61  return d_inputs.value(0) ? d_inputs.at(0)->maskedIntervals() : QList< Interval<int> >();
62  }
64 
65  protected:
67  virtual bool inputAcceptable(int, const AbstractColumn *)
68  {
69  return true;
70  }
71 
73 
75  {
77  }
78  virtual void inputMaskingChanged(const AbstractColumn*)
79  {
81  }
83 };
84 
85 #endif // ifndef SIMPLE_COPY_THROUGH_FILTER_H
86 
SimpleCopyThroughFilter::inputMaskingChanged
virtual void inputMaskingChanged(const AbstractColumn *)
Definition: SimpleCopyThroughFilter.h:78
SimpleCopyThroughFilter::isMasked
virtual bool isMasked(int row) const
Return whether a certain row is masked.
Definition: SimpleCopyThroughFilter.h:55
AbstractColumn::maskingChanged
void maskingChanged(const AbstractColumn *source)
IntervalAttribute related signal.
AbstractSimpleFilter.h
AbstractColumn::maskingAboutToChange
void maskingAboutToChange(const AbstractColumn *source)
IntervalAttribute related signal.
AbstractSimpleFilter::d_output_column
SimpleFilterColumn * d_output_column
Definition: AbstractSimpleFilter.h:276
SimpleCopyThroughFilter::inputAcceptable
virtual bool inputAcceptable(int, const AbstractColumn *)
All types are accepted.
Definition: SimpleCopyThroughFilter.h:67
SimpleCopyThroughFilter::isMasked
virtual bool isMasked(Interval< int > i) const
Return whether a certain interval of rows rows is fully masked.
Definition: SimpleCopyThroughFilter.h:57
XmlStreamReader.h
SimpleCopyThroughFilter::inputMaskingAboutToChange
virtual void inputMaskingAboutToChange(const AbstractColumn *)
Definition: SimpleCopyThroughFilter.h:74
SimpleCopyThroughFilter::maskedIntervals
virtual QList< Interval< int > > maskedIntervals() const
Return all intervals of masked rows.
Definition: SimpleCopyThroughFilter.h:59
SimpleCopyThroughFilter
Filter which copies the provided input unaltered to the output.
Definition: SimpleCopyThroughFilter.h:48
AbstractSimpleFilter
Simplified filter interface for filters with only one output port.
Definition: AbstractSimpleFilter.h:129
Interval< int >
AbstractFilter::d_inputs
QVector< const AbstractColumn * > d_inputs
The data sources connected to my input ports.
Definition: AbstractFilter.h:275
AbstractColumn
Interface definition for data with column logic.
Definition: AbstractColumn.h:82