iRoCS Toolbox  1.1.0
LayerAssignmentParametersDialog.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 LAYERASSIGNMENTPARAMETERSDIALOG_HH
24 #define LAYERASSIGNMENTPARAMETERSDIALOG_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
30 #include <QtGui/QDialog>
31 
39 
40 #include <string>
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 
62  void setIRoCSChannel(IRoCSChannelSpecs *channel);
63 
64  std::string cacheFileName() const;
65  void setCacheFileName(std::string const &cacheFileName);
66 
67  std::string modelFileName() const;
68  void setModelFileName(std::string const &modelFileName);
69 
70  bool cacheCoordinates() const;
71  void setCacheCoordinates(bool cache);
72 
73  bool updateMitoses() const;
74  void setUpdateMitoses(bool update);
75 
76  bool forceFeatureComputation() const;
77  void setForceFeatureComputation(bool force);
78 
79  std::string check();
80 
81 public slots:
82 
83  void checkAndAccept();
84 
85 private:
86 
87  LabellingMainWidget* p_mainWidget;
88 
89  ChannelSelectionControlElement *p_dataChannelSelector;
90  ChannelSelectionControlElement *p_annotationChannelSelector;
91  ChannelSelectionControlElement *p_iRoCSChannelSelector;
92  FileNameSelectionControlElement *p_cacheFileControlElement;
93  FileNameSelectionControlElement *p_modelFileNameControlElement;
94  BoolControlElement *p_cacheCoordinates;
95  BoolControlElement *p_updateMitoses;
96  BoolControlElement *p_forceFeatureComputationControl;
97 
98 };
99 
100 #endif
std::string modelFileName() const
AnnotationChannelSpecs * annotationChannel() const
void setModelFileName(std::string const &modelFileName)
LayerAssignmentParametersDialog(LabellingMainWidget *mainWidget, QWidget *parent=NULL, Qt::WindowFlags f=NULL)
void setForceFeatureComputation(bool force)
std::string cacheFileName() const
void setAnnotationChannel(AnnotationChannelSpecs *channel)
IRoCSChannelSpecs * iRoCSChannel() const
void setCacheFileName(std::string const &cacheFileName)
ChannelSpecs * dataChannel() const
void setCacheCoordinates(bool cache)
void setIRoCSChannel(IRoCSChannelSpecs *channel)
void setUpdateMitoses(bool update)
void setDataChannel(ChannelSpecs *channel)