iRoCS Toolbox  1.1.0
EpidermisLabellingParametersDialog.hh
Go to the documentation of this file.
1 /**************************************************************************
2  *
3  * Copyright (C) 2015 Thorsten Falk
4  *
5  * Image Analysis Lab, University of Freiburg, Germany
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  **************************************************************************/
22 
23 #ifndef EPIDERMISLABELLINGPARAMETERSDIALOG_HH
24 #define EPIDERMISLABELLINGPARAMETERSDIALOG_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
30 #include <QtGui/QDialog>
31 
36 
37 #include <string>
38 
41 
43  public QDialog
44 {
45 
46  Q_OBJECT
47 
48  public:
49 
51  LabellingMainWidget* mainWidget,
52  QWidget* parent = NULL, Qt::WindowFlags f = NULL);
54 
55  ChannelSpecs *dataChannel() const;
56  void setDataChannel(ChannelSpecs *channel);
57 
60 
61  std::string cacheFileName() const;
62  void setCacheFileName(std::string const &cacheFileName);
63 
64  std::string modelFileName() const;
65  void setModelFileName(std::string const &modelFileName);
66 
67  bool forceFeatureComputation() const;
68  void setForceFeatureComputation(bool force);
69 
70  std::string check();
71 
72 public slots:
73 
74  void checkAndAccept();
75 
76 private:
77 
78  LabellingMainWidget* p_mainWidget;
79 
80  ChannelSelectionControlElement *p_dataChannelSelector;
81  ChannelSelectionControlElement *p_annotationChannelSelector;
82  FileNameSelectionControlElement *p_cacheFileControlElement;
83  FileNameSelectionControlElement *p_modelFileNameControlElement;
84  BoolControlElement *p_forceFeatureComputationControl;
85 
86 };
87 
88 #endif
std::string modelFileName() const
void setDataChannel(ChannelSpecs *channel)
std::string cacheFileName() const
AnnotationChannelSpecs * annotationChannel() const
void setForceFeatureComputation(bool force)
void setAnnotationChannel(AnnotationChannelSpecs *channel)
void setModelFileName(std::string const &modelFileName)
ChannelSpecs * dataChannel() const
EpidermisLabellingParametersDialog(LabellingMainWidget *mainWidget, QWidget *parent=NULL, Qt::WindowFlags f=NULL)
void setCacheFileName(std::string const &cacheFileName)