1 /*****************************************************************************
5 ** Purpose: Header file for Dialogs of CTSim program
6 ** Programmer: Kevin Rosenberg
7 ** Date Started: July 2000
9 ** This is part of the CTSim program
10 ** Copyright (C) 1983-2000 Kevin Rosenberg
12 ** $Id: dialogs.h,v 1.4 2000/07/19 04:33:27 kevin Exp $
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.
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.
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 ******************************************************************************/
35 class DialogGetPhantom : public wxDialog
38 DialogGetPhantom (wxFrame* pParent, const char* szDefaultPhantom);
39 virtual ~DialogGetPhantom (void) {}
41 string getPhantom (void);
44 wxListBox* m_pListBoxPhantom;
45 string m_sDefaultPhantom;
50 class DialogGetImageMinMax : public wxDialog
53 DialogGetImageMinMax (wxFrame* pParent, const ImageFile& rImagefile, double dDefaultMin = 0., double dDefaultMax = 0.);
54 virtual ~DialogGetImageMinMax (void);
56 double getMinimum (void);
57 double getMaximum (void);
60 wxTextCtrl* m_pTextCtrlMin;
61 wxTextCtrl* m_pTextCtrlMax;
68 class DialogGetRasterParameters : public wxDialog
71 DialogGetRasterParameters (wxFrame* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, int iDefaultNSamples = 1);
72 virtual ~DialogGetRasterParameters (void);
74 unsigned int getXSize (void);
75 unsigned int getYSize (void);
76 unsigned int getNSamples (void);
79 wxTextCtrl* m_pTextCtrlXSize;
80 wxTextCtrl* m_pTextCtrlYSize;
81 wxTextCtrl* m_pTextCtrlNSamples;
85 int m_iDefaultNSamples;
89 class DialogGetProjectionParameters : public wxDialog
92 DialogGetProjectionParameters (wxFrame* pParent, int iDefaultNDet = 0, int iDefaultNView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., const char* szDefaultGeometry = NULL);
93 ~DialogGetProjectionParameters (void);
95 unsigned int getNDet (void);
96 unsigned int getNView (void);
97 unsigned int getNSamples (void);
98 double getRotAngle (void);
99 const string& getGeometry(void);
102 wxTextCtrl* m_pTextCtrlNDet;
103 wxTextCtrl* m_pTextCtrlNView;
104 wxTextCtrl* m_pTextCtrlNSamples;
105 wxTextCtrl* m_pTextCtrlRotAngle;
106 wxTextCtrl* m_pTextCtrlGeometry;
110 int m_iDefaultNSamples;
111 double m_dDefaultRotAngle;
112 string m_sDefaultGeometry;
116 class DialogGetReconstructionParameters : public wxDialog
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);
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);
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;
142 wxListBox* m_pListBoxFilter;
143 wxListBox* m_pListBoxFilterMethod;
144 wxListBox* m_pListBoxInterp;
145 wxListBox* m_pListBoxBackproj;
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;