Snapshot loading loads std dev graph
[tecorrec.git] / geo / tcExportText.h
blob0e3fddb89d39e41c901efed0a07078bc629112e6
1 /***************************************************************************
2 * This file is part of Tecorrec. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
4 * *
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. *
9 * *
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. *
14 * *
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_
23 /**
24 * @file tcExportText.h
25 * @brief Exports a set of channels to a file.
28 #include <QWidget>
29 #include <QList>
31 class tcChannel;
32 class tcGeoImageData;
34 class QComboBox;
35 class QListWidget;
37 /// Exports a set of channels to a file.
38 class tcExportText : public QWidget
40 Q_OBJECT
42 public:
45 * Constructors + destructor
48 /// Primary constructor.
49 tcExportText(const QList<tcGeoImageData*>& imagery, QWidget* parent);
51 /// Destructor.
52 virtual ~tcExportText();
54 public slots:
57 * Public slots
60 /// Export to a file.
61 void exportToFile();
63 private slots:
66 * Private slots
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);
78 private:
81 * Variables
84 /// Image data.
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;
100 #endif