1 /***************************************************************************
2 * This file is part of Tecorrec. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
5 * Tecorrec is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * Tecorrec is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with Tecorrec. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
20 #ifndef _tcExportText_h_
21 #define _tcExportText_h_
24 * @file tcExportText.h
25 * @brief Exports a set of channels to a file.
37 /// Exports a set of channels to a file.
38 class tcExportText
: public QWidget
45 * Constructors + destructor
48 /// Primary constructor.
49 tcExportText(const QList
<tcGeoImageData
*>& imagery
, QWidget
* parent
);
52 virtual ~tcExportText();
69 /// Set the channel to classify the pixels.
70 void setClassificationChannel(int channel
);
72 /// Set the channel to filter which pixels to export.
73 void setFilterChannel(int channel
);
75 /// Set the type of filtering.
76 void setFilterType(int channel
);
85 QList
<tcGeoImageData
*> m_imagery
;
87 /// Combo box to select classification channel.
88 QComboBox
* m_comboClassificationChannel
;
90 /// Combo box to select filter channel.
91 QComboBox
* m_comboFilterChannel
;
93 /// Combo box to select filter type.
94 QComboBox
* m_comboFilterType
;
96 /// List box of channels to export.
97 QListWidget
* m_listChannels
;