X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdialogs.h;h=69f111f542e69d18194c04e5ab6d270627167cde;hb=1a050c98763fbbc0662731b0b76953acede6f5d7;hp=ca82fc1d84b159503a46d123646514373015d69d;hpb=de411914da8b157958e9caae917bf1edeafbb713;p=ctsim.git diff --git a/src/dialogs.h b/src/dialogs.h index ca82fc1..69f111f 100644 --- a/src/dialogs.h +++ b/src/dialogs.h @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: dialogs.h,v 1.34 2001/03/11 15:27:30 kevin Exp $ +** $Id$ ** ** 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 @@ -37,6 +37,7 @@ #include "procsignal.h" #include "filter.h" #include "projections.h" +#include "ctsim-map.h" class CTSimHelpButton : public wxButton @@ -89,6 +90,18 @@ class DialogGetPhantom : public wxDialog StringValueAndTitleRadioBox* m_pRadioBoxPhantom; }; +class DialogGetThetaRange : public wxDialog +{ + public: + DialogGetThetaRange (wxWindow* pParent, int iDefaultThetaRange = ParallelRaysums::THETA_RANGE_UNCONSTRAINED); + virtual ~DialogGetThetaRange () {} + + int getThetaRange (); + + private: + wxRadioBox* m_pRadioBoxThetaRange; +}; + #include class ImageFileDocument; @@ -153,7 +166,7 @@ class DialogGetMinMax : public wxDialog class DialogGetRasterParameters : public wxDialog { public: - DialogGetRasterParameters (wxWindow* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, + DialogGetRasterParameters (wxWindow* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, int iDefaultNSamples = 1, double dDefaultViewRatio = 1); virtual ~DialogGetRasterParameters (); @@ -178,14 +191,15 @@ class DialogGetRasterParameters : public wxDialog class DialogGetProjectionParameters : public wxDialog { public: - DialogGetProjectionParameters (wxWindow* pParent, int iDefaultNDet = 0, - int iDefaultNView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., - double dDefaultFocalLength = 1, double dDefaultCenterDetectorLength = 1, double dDefaultViewRatio = 1., + DialogGetProjectionParameters (wxWindow* pParent, int iDefaultNDet = 0, + int iDefaultNView = 0, int iDefaultOffsetView = 0, int iDefaultNSamples = 1, double dDefaultRotAngle = 1., + double dDefaultFocalLength = 1, double dDefaultCenterDetectorLength = 1, double dDefaultViewRatio = 1., double dDefaultScanRatio = 1., int iDefaultGeometry = Scanner::GEOMETRY_PARALLEL, int iDefaultTrace = Trace::TRACE_NONE); ~DialogGetProjectionParameters (); unsigned int getNDet (); unsigned int getNView (); + unsigned int getOffsetView (); unsigned int getNSamples (); int getTrace (); @@ -199,6 +213,7 @@ class DialogGetProjectionParameters : public wxDialog private: wxTextCtrl* m_pTextCtrlNDet; wxTextCtrl* m_pTextCtrlNView; + wxTextCtrl* m_pTextCtrlOffsetView; wxTextCtrl* m_pTextCtrlNSamples; wxTextCtrl* m_pTextCtrlRotAngle; wxTextCtrl* m_pTextCtrlFocalLength; @@ -210,6 +225,7 @@ class DialogGetProjectionParameters : public wxDialog int m_iDefaultNDet; int m_iDefaultNView; + int m_iDefaultOffsetView; int m_iDefaultNSamples; int m_iDefaultTrace; int m_iDefaultGeometry; @@ -225,12 +241,12 @@ class DialogGetProjectionParameters : public wxDialog class DialogGetReconstructionParameters : public wxDialog { public: - DialogGetReconstructionParameters (wxWindow* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, - int iDefaultFilterID = SignalFilter::FILTER_ABS_BANDLIMIT, double dDefaultFilterParam = 1., - int iDefaultFilterMethodID = ProcessSignal::FILTER_METHOD_CONVOLUTION, - int iDefaultFilterGeneration = ProcessSignal::FILTER_GENERATION_DIRECT, - int iDefaultZeropad = 3, int iDefaultInterpID = Backprojector::INTERP_LINEAR, - int iDefaultInterpParam = 1, int iDefaultBackprojectID = Backprojector::BPROJ_IDIFF, + DialogGetReconstructionParameters (wxWindow* pParent, int iDefaultXSize = 0, int iDefaultYSize = 0, + int iDefaultFilterID = SignalFilter::FILTER_ABS_BANDLIMIT, double dDefaultFilterParam = 1., + int iDefaultFilterMethodID = ProcessSignal::FILTER_METHOD_CONVOLUTION, + int iDefaultFilterGeneration = ProcessSignal::FILTER_GENERATION_DIRECT, + int iDefaultZeropad = 3, int iDefaultInterpID = Backprojector::INTERP_LINEAR, + int iDefaultInterpParam = 1, int iDefaultBackprojectID = Backprojector::BPROJ_IDIFF, int iDefaultTrace = Trace::TRACE_NONE, ReconstructionROI* pROI = NULL); virtual ~DialogGetReconstructionParameters (); @@ -346,9 +362,9 @@ class DialogAutoScaleParameters : public wxDialog private: const double m_dMean; - const double m_dMode; - const double m_dMedian; - const double m_dStdDev; + const double m_dMode; + const double m_dMedian; + const double m_dStdDev; wxTextCtrl* m_pTextCtrlStdDevFactor; wxRadioBox* m_pRadioBoxCenter; @@ -375,9 +391,9 @@ class DialogGetXYSize : public wxDialog class DialogGetConvertPolarParameters : public wxDialog { public: - DialogGetConvertPolarParameters (wxWindow* pParent, const char* const pszTitle, int iDefaultXSize = 0, - int iDefaultYSize = 0, int iDefaultInterpolationID = Projections::POLAR_INTERP_BILINEAR, - int iDefaultZeropad = 1); + DialogGetConvertPolarParameters (wxWindow* pParent, const char* const pszTitle, int iDefaultXSize = 0, + int iDefaultYSize = 0, int iDefaultInterpolationID = Projections::POLAR_INTERP_BILINEAR, + int iDefaultZeropad = 3, int iHelpID = IDH_DLG_POLAR); virtual ~DialogGetConvertPolarParameters (); unsigned int getXSize();