r499: no message
[ctsim.git] / src / dialogs.h
index 8bdada08368d8c990afdd59f6bb898742c1330cc..0284924aeed4dfc119ca829212367da84b2a306f 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (c) 1983-2001 Kevin Rosenberg
 **
-**  $Id: dialogs.h,v 1.22 2001/01/28 19:10:18 kevin Exp $
+**  $Id: dialogs.h,v 1.23 2001/02/08 06:25:07 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -110,28 +110,35 @@ class DialogGetMinMax : public wxDialog
 class DialogGetRasterParameters : public wxDialog
 {
  public:
-    DialogGetRasterParameters (wxWindow* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, int iDefaultNSamples = 1);
+    DialogGetRasterParameters (wxWindow* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, 
+      int iDefaultNSamples = 1, double dDefaultViewRatio = 1);
     virtual ~DialogGetRasterParameters ();
 
     unsigned int getXSize ();
     unsigned int getYSize ();
     unsigned int getNSamples ();
+    double getViewRatio();
 
  private:
     wxTextCtrl* m_pTextCtrlXSize;
     wxTextCtrl* m_pTextCtrlYSize;
     wxTextCtrl* m_pTextCtrlNSamples;
+    wxTextCtrl* m_pTextCtrlViewRatio;
 
     int m_iDefaultXSize;
     int m_iDefaultYSize;
     int m_iDefaultNSamples;
+    double m_dDefaultViewRatio;
 };
 
 
 class DialogGetProjectionParameters : public wxDialog
 {
  public:
-    DialogGetProjectionParameters (wxWindow* pParent, int iDefaultNDet = 0, int iDefaultNView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., double dDefaultFocalLength = 1, double dDefaultFieldOfView = 1., int iDefaultGeometry = Scanner::GEOMETRY_PARALLEL, int iDefaultTrace = Trace::TRACE_NONE);
+    DialogGetProjectionParameters (wxWindow* pParent, int iDefaultNDet = 0, 
+      int iDefaultNView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., 
+      double dDefaultFocalLength = 1, double dDefaultViewRatio = 1., 
+      double dDefaultScanRatio = 1., int iDefaultGeometry = Scanner::GEOMETRY_PARALLEL, int iDefaultTrace = Trace::TRACE_NONE);
     ~DialogGetProjectionParameters ();
 
     unsigned int getNDet ();
@@ -140,7 +147,8 @@ class DialogGetProjectionParameters : public wxDialog
     int getTrace ();
 
     double getRotAngle ();
-    double getFieldOfViewRatio ();
+    double getViewRatio ();
+    double getScanRatio ();
     double getFocalLengthRatio ();
     const char* getGeometry();
 
@@ -150,8 +158,8 @@ class DialogGetProjectionParameters : public wxDialog
     wxTextCtrl* m_pTextCtrlNSamples;
     wxTextCtrl* m_pTextCtrlRotAngle;
     wxTextCtrl* m_pTextCtrlFocalLength;
-    wxTextCtrl* m_pTextCtrlFieldOfView;
-
+    wxTextCtrl* m_pTextCtrlViewRatio;
+    wxTextCtrl* m_pTextCtrlScanRatio;
     StringValueAndTitleListBox* m_pListBoxGeometry;
     StringValueAndTitleListBox* m_pListBoxTrace;
 
@@ -162,7 +170,8 @@ class DialogGetProjectionParameters : public wxDialog
     int m_iDefaultGeometry;
     double m_dDefaultRotAngle;
     double m_dDefaultFocalLength;
-    double m_dDefaultFieldOfView;
+    double m_dDefaultViewRatio;
+    double m_dDefaultScanRatio;
 };