r155: *** empty log message ***
[ctsim.git] / src / dialogs.h
1 /*****************************************************************************
2 ** FILE IDENTIFICATION
3 **
4 **   Name:          dialogs.h
5 **   Purpose:       Header file for Dialogs of CTSim program
6 **   Programmer:    Kevin Rosenberg
7 **   Date Started:  July 2000
8 **
9 **  This is part of the CTSim program
10 **  Copyright (C) 1983-2000 Kevin Rosenberg
11 **
12 **  $Id: dialogs.h,v 1.4 2000/07/19 04:33:27 kevin Exp $
13 **
14 **  This program is free software; you can redistribute it and/or modify
15 **  it under the terms of the GNU General Public License (version 2) as
16 **  published by the Free Software Foundation.
17 **
18 **  This program is distributed in the hope that it will be useful,
19 **  but WITHOUT ANY WARRANTY; without even the implied warranty of
20 **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 **  GNU General Public License for more details.
22 **
23 **  You should have received a copy of the GNU General Public License
24 **  along with this program; if not, write to the Free Software
25 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
26 ******************************************************************************/
27
28
29 #ifndef __DIALOGSH__
30 #define __DIALOGSH__
31
32 #include "wx/wx.h"
33 #include <string>
34
35 class DialogGetPhantom : public wxDialog
36 {
37  public:
38     DialogGetPhantom (wxFrame* pParent, const char* szDefaultPhantom);
39     virtual ~DialogGetPhantom (void) {}
40
41     string getPhantom (void);
42
43  private:
44     wxListBox* m_pListBoxPhantom;
45     string m_sDefaultPhantom;
46 };
47
48
49 class ImageFile;
50 class DialogGetImageMinMax : public wxDialog
51 {
52  public:
53     DialogGetImageMinMax (wxFrame* pParent, const ImageFile& rImagefile, double dDefaultMin = 0., double dDefaultMax = 0.);
54     virtual ~DialogGetImageMinMax (void);
55
56     double getMinimum (void);
57     double getMaximum (void);
58
59  private:
60     wxTextCtrl* m_pTextCtrlMin;
61     wxTextCtrl* m_pTextCtrlMax;
62
63     double m_dDefaultMin;
64     double m_dDefaultMax;
65 };
66
67
68 class DialogGetRasterParameters : public wxDialog
69 {
70  public:
71     DialogGetRasterParameters (wxFrame* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, int iDefaultNSamples = 1);
72     virtual ~DialogGetRasterParameters (void);
73
74     unsigned int getXSize (void);
75     unsigned int getYSize (void);
76     unsigned int getNSamples (void);
77
78  private:
79     wxTextCtrl* m_pTextCtrlXSize;
80     wxTextCtrl* m_pTextCtrlYSize;
81     wxTextCtrl* m_pTextCtrlNSamples;
82
83     int m_iDefaultXSize;
84     int m_iDefaultYSize;
85     int m_iDefaultNSamples;
86 };
87
88
89 class DialogGetProjectionParameters : public wxDialog
90 {
91  public:
92     DialogGetProjectionParameters (wxFrame* pParent, int iDefaultNDet = 0, int iDefaultNView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., const char* szDefaultGeometry = NULL);
93     ~DialogGetProjectionParameters (void);
94
95     unsigned int getNDet (void);
96     unsigned int getNView (void);
97     unsigned int getNSamples (void);
98     double getRotAngle (void);
99     const string& getGeometry(void);
100
101  private:
102     wxTextCtrl* m_pTextCtrlNDet;
103     wxTextCtrl* m_pTextCtrlNView;
104     wxTextCtrl* m_pTextCtrlNSamples;
105     wxTextCtrl* m_pTextCtrlRotAngle;
106     wxTextCtrl* m_pTextCtrlGeometry;
107
108     int m_iDefaultNDet;
109     int m_iDefaultNView;
110     int m_iDefaultNSamples;
111     double m_dDefaultRotAngle;
112     string m_sDefaultGeometry;
113 };
114
115
116 class DialogGetReconstructionParameters : public wxDialog
117 {
118  public:
119     DialogGetReconstructionParameters (wxFrame* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, const char* szDefaultFilterName = NULL, double dDefaultFilterParam = 1., const char* szDefaultFilterMethodName = NULL, int iDefaultZeropad = 3, const char* szDefaultInterpName = NULL, int iDefaultInterpParam = 1, const char* szDefaultBackprojName = NULL);
120     virtual ~DialogGetReconstructionParameters (void);
121
122     unsigned int getXSize(void);
123     unsigned int getYSize(void);
124     const string& getFilterName(void);
125     double getFilterParam(void);
126     const string& getFilterMethodName(void);
127     unsigned int getZeropad(void);
128     const string& getInterpName(void);
129     unsigned int getInterpParam(void);
130     const string& getBackprojName(void);
131
132  private:
133     wxTextCtrl* m_pTextCtrlXSize;
134     wxTextCtrl* m_pTextCtrlYSize;
135     wxTextCtrl* m_pTextCtrlFilterParam;
136     wxTextCtrl* m_pTextCtrlFilterMethodName;
137     wxTextCtrl* m_pTextCtrlZeropad;
138     wxTextCtrl* m_pTextCtrlInterpName;
139     wxTextCtrl* m_pTextCtrlInterpParam;
140     wxTextCtrl* m_pTextCtrlBackprojName;
141
142     wxListBox* m_pListBoxFilter;
143     wxListBox* m_pListBoxFilterMethod;
144     wxListBox* m_pListBoxInterp;
145     wxListBox* m_pListBoxBackproj;
146
147     int m_iDefaultXSize;
148     int m_iDefaultYSize;
149     string m_sDefaultFilterName;
150     double m_dDefaultFilterParam;
151     string m_sDefaultFilterMethodName;
152     int m_iDefaultZeropad;
153     string m_sDefaultInterpName;
154     int m_iDefaultInterpParam;
155     string m_sDefaultBackprojName;
156 };
157
158 #endif
159