iRoCS Toolbox  1.1.0
DetectNucleiParametersDialog.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 DETECTNUCLEIPARAMETERSDIALOG_HH
24 #define DETECTNUCLEIPARAMETERSDIALOG_HH
25 
26 #ifdef HAVE_CONFIG_H
27 #include <config.hh>
28 #endif
29 
30 #include <QtGui/QDialog>
31 
36 
37 #include <string>
38 
39 class DetectNucleiParametersDialog : public QDialog
40 {
41 
42  Q_OBJECT
43 
44  public:
45 
47  LabellingMainWidget* mainWidget,
48  QWidget* parent = NULL, Qt::WindowFlags f = NULL);
50 
51  ChannelSpecs* dataChannel() const;
52  void setDataChannel(ChannelSpecs *channel);
53 
54  std::string annotationChannelName() const;
55  void setAnnotationChannelName(std::string const &name);
56 
57  std::string cacheFileName() const;
58  void setCacheFileName(std::string const &cacheFileName);
59 
60  std::string modelFileName() const;
61  void setModelFileName(std::string const &modelFileName);
62 
63  ptrdiff_t memoryLimit() const;
64  void setMemoryLimit(ptrdiff_t memoryLimit);
65 
66  std::string check();
67 
68 public slots:
69 
70  void checkAndAccept();
71 
72 private:
73 
74  LabellingMainWidget* p_mainWidget;
75 
76  ChannelSelectionControlElement* p_dataChannelSelector;
77  StringControlElement* p_annotationChannelControlElement;
78  FileNameSelectionControlElement* p_cacheFileControlElement;
79  FileNameSelectionControlElement* p_modelFileNameControlElement;
80 
81  ptrdiff_t _memoryLimit;
82 
83 };
84 
85 #endif
void setCacheFileName(std::string const &cacheFileName)
ptrdiff_t memoryLimit() const
DetectNucleiParametersDialog(LabellingMainWidget *mainWidget, QWidget *parent=NULL, Qt::WindowFlags f=NULL)
std::string modelFileName() const
void setModelFileName(std::string const &modelFileName)
void setAnnotationChannelName(std::string const &name)
std::string annotationChannelName() const
void setMemoryLimit(ptrdiff_t memoryLimit)
std::string cacheFileName() const
ChannelSpecs * dataChannel() const
void setDataChannel(ChannelSpecs *channel)