]> Creatis software - clitk.git/blob - vv/vvStructSelector.h
Initial revision
[clitk.git] / vv / vvStructSelector.h
1 /*=========================================================================
2
3  Program:   vv
4  Language:  C++
5  Author :   Joel Schaerer (joel.schaerer@insa-lyon.fr)
6  Program:   vv
7
8 Copyright (C) 2008
9 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
10 CREATIS-LRMN http://www.creatis.insa-lyon.fr
11
12 This program is free software: you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation, version 3 of the License.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program.  If not, see <http://www.gnu.org/licenses/>.
23
24 =========================================================================*/
25 #ifndef vvStructSelector_h
26 #define vvStructSelector_h
27
28 #include "ui_vvStructSelector.h"
29
30 class vvStructSelector : public QDialog, private Ui::vvStructSelector
31 {
32     Q_OBJECT
33
34 public:
35     vvStructSelector();
36     typedef std::vector<std::pair<int, std::string> > StructureType;
37     ///Sets the different structures and displays them
38     void SetStructures(StructureType structures);
39     ///Returns the indexes of selected ROIs
40     std::vector<int> getSelectedItems();
41     ///Enables the propagation checkbox
42     void EnablePropagationCheckBox() {this->propagateCheckBox->setEnabled(true);
43         this->propagateCheckBox->setChecked(true);}
44     ///Returns true if contours should be propagated over the sequence using the vf
45     bool PropagationEnabled() {return this->propagateCheckBox->isChecked();}
46
47 protected:
48     StructureType mStructures;
49
50 };
51
52 #endif