]> Creatis software - clitk.git/blob - vv/vvStructSelector.h
removed headers
[clitk.git] / vv / vvStructSelector.h
1 #ifndef vvStructSelector_h
2 #define vvStructSelector_h
3 #include "ui_vvStructSelector.h"
4
5 class vvStructSelector : public QDialog, private Ui::vvStructSelector
6 {
7     Q_OBJECT
8
9 public:
10     vvStructSelector();
11     typedef std::vector<std::pair<int, std::string> > StructureType;
12     ///Sets the different structures and displays them
13     void SetStructures(StructureType structures);
14     ///Returns the indexes of selected ROIs
15     std::vector<int> getSelectedItems();
16     ///Enables the propagation checkbox
17     void EnablePropagationCheckBox() {this->propagateCheckBox->setEnabled(true);
18         this->propagateCheckBox->setChecked(true);}
19     ///Returns true if contours should be propagated over the sequence using the vf
20     bool PropagationEnabled() {return this->propagateCheckBox->isChecked();}
21
22 protected:
23     StructureType mStructures;
24
25 };
26
27 #endif