SciDAVis
1.D4
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scidavis
src
future
core
datatypes
SimpleCopyThroughFilter.h
Go to the documentation of this file.
1
/***************************************************************************
2
File : SimpleCopyThroughFilter.h
3
Project : SciDAVis
4
--------------------------------------------------------------------
5
Copyright : (C) 2007 by Knut Franke, Tilman Benkert
6
Email (use @ for *) : knut.franke*gmx.de, thzs*gmx.net
7
Description : Filter which copies the provided input unaltered
8
to the output
9
10
***************************************************************************/
11
12
/***************************************************************************
13
* *
14
* This program is free software; you can redistribute it and/or modify *
15
* it under the terms of the GNU General Public License as published by *
16
* the Free Software Foundation; either version 2 of the License, or *
17
* (at your option) any later version. *
18
* *
19
* This program is distributed in the hope that it will be useful, *
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22
* GNU General Public License for more details. *
23
* *
24
* You should have received a copy of the GNU General Public License *
25
* along with this program; if not, write to the Free Software *
26
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
27
* Boston, MA 02110-1301 USA *
28
* *
29
***************************************************************************/
30
#ifndef SIMPLE_COPY_THROUGH_FILTER_H
31
#define SIMPLE_COPY_THROUGH_FILTER_H
32
33
#include "
core/AbstractSimpleFilter.h
"
34
#include "
lib/XmlStreamReader.h
"
35
#include <QXmlStreamWriter>
36
47
class
SimpleCopyThroughFilter
:
public
AbstractSimpleFilter
48
{
49
Q_OBJECT
50
51
public
:
53
54
55
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
74
virtual
void
inputMaskingAboutToChange
(
const
AbstractColumn
*)
75
{
76
emit
d_output_column
->
maskingAboutToChange
(
d_output_column
);
77
}
78
virtual
void
inputMaskingChanged
(
const
AbstractColumn
*)
79
{
80
emit
d_output_column
->
maskingChanged
(
d_output_column
);
81
}
83
};
84
85
#endif // ifndef SIMPLE_COPY_THROUGH_FILTER_H
86
Generated by
1.8.1