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.3 2000/07/18 16:20:53 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 ******************************************************************************/
36 class DialogGetImageMinMax : public wxDialog
39 DialogGetImageMinMax (wxFrame* pParent, const ImageFile& rImagefile, double dDefaultMin = 0., double dDefaultMax = 0.);
40 virtual ~DialogGetImageMinMax (void);
42 double getMinimum (void);
43 double getMaximum (void);
46 wxTextCtrl* m_pTextCtrlMin;
47 wxTextCtrl* m_pTextCtrlMax;
54 class DialogGetRasterParameters : public wxDialog
57 DialogGetRasterParameters (wxFrame* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, int iDefaultNSamples = 1);
58 virtual ~DialogGetRasterParameters (void);
60 unsigned int getXSize (void);
61 unsigned int getYSize (void);
62 unsigned int getNSamples (void);
65 wxTextCtrl* m_pTextCtrlXSize;
66 wxTextCtrl* m_pTextCtrlYSize;
67 wxTextCtrl* m_pTextCtrlNSamples;
71 int m_iDefaultNSamples;
75 class DialogGetProjectionParameters : public wxDialog
78 DialogGetProjectionParameters (wxFrame* pParent, int iDefaultNDet = 0, int iDefaultNView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., const char* szDefaultGeometry = NULL);
79 ~DialogGetProjectionParameters (void);
81 unsigned int getNDet (void);
82 unsigned int getNView (void);
83 unsigned int getNSamples (void);
84 double getRotAngle (void);
85 const string& getGeometry(void);
88 wxTextCtrl* m_pTextCtrlNDet;
89 wxTextCtrl* m_pTextCtrlNView;
90 wxTextCtrl* m_pTextCtrlNSamples;
91 wxTextCtrl* m_pTextCtrlRotAngle;
92 wxTextCtrl* m_pTextCtrlGeometry;
96 int m_iDefaultNSamples;
97 double m_dDefaultRotAngle;
98 string m_sDefaultGeometry;
102 class DialogGetReconstructionParameters : public wxDialog
105 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);
106 virtual ~DialogGetReconstructionParameters (void);
108 unsigned int getXSize(void);
109 unsigned int getYSize(void);
110 const string& getFilterName(void);
111 double getFilterParam(void);
112 const string& getFilterMethodName(void);
113 unsigned int getZeropad(void);
114 const string& getInterpName(void);
115 unsigned int getInterpParam(void);
116 const string& getBackprojName(void);
119 wxTextCtrl* m_pTextCtrlXSize;
120 wxTextCtrl* m_pTextCtrlYSize;
121 wxTextCtrl* m_pTextCtrlFilterName;
122 wxTextCtrl* m_pTextCtrlFilterParam;
123 wxTextCtrl* m_pTextCtrlFilterMethodName;
124 wxTextCtrl* m_pTextCtrlZeropad;
125 wxTextCtrl* m_pTextCtrlInterpName;
126 wxTextCtrl* m_pTextCtrlInterpParam;
127 wxTextCtrl* m_pTextCtrlBackprojName;
131 string m_sDefaultFilterName;
132 double m_dDefaultFilterParam;
133 string m_sDefaultFilterMethodName;
134 int m_iDefaultZeropad;
135 string m_sInterpName;
136 int m_iDefaultInterpParam;
137 string m_sBackprojName;