** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: procsignal.cpp,v 1.18 2001/01/12 14:21:06 kevin Exp $
+** $Id: procsignal.cpp,v 1.19 2001/01/12 16:41:56 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
#include "ct.h"
+#ifdef HAVE_WXWINDOWS
+#include "../src/dlgezplot.h"
+#endif
+
// FilterMethod ID/Names
const int ProcessSignal::FILTER_METHOD_INVALID = -1;
const int ProcessSignal::FILTER_METHOD_CONVOLUTION = 0;
SignalFilter filter (m_idFilter, m_dFilterMin, m_dFilterMax, nSpatialPoints, m_dBandwidth,
m_dFilterParam, SignalFilter::DOMAIN_SPATIAL);
filter.copyFilterData (adSpatialFilter, 0, nSpatialPoints);
-#ifdef HAVE_SGP
- EZPlot* pEZPlot = NULL;
- if (pSGP && m_traceLevel >= Trace::TRACE_PLOT) {
- pEZPlot = new EZPlot;
- pEZPlot->ezset ("title Spatial Filter: Natural Order");
- pEZPlot->ezset ("ylength 0.50");
- pEZPlot->ezset ("yporigin 0.00");
- pEZPlot->addCurve (adSpatialFilter, nSpatialPoints);
- pEZPlot->plot (pSGP);
- delete pEZPlot;
+#if defined(HAVE_WXWINDOWS) && defined(DEBUG)
+ EZPlotDialog pEZPlotDlg = NULL;
+ if (g_bRunningWXWindows && m_traceLevel > 0) {
+ pEZPlotDlg = new EZPlotDialog;
+ pEZPlot->getEZPlot()->ezset ("title Spatial Filter: Natural Order");
+ pEZPlot->getEZPlot()->ezset ("ylength 0.50");
+ pEZPlot->getEZPlot()->ezset ("yporigin 0.00");
+ pEZPlot->getEZPlot()->addCurve (adSpatialFilter, nSpatialPoints);
}
#endif
}
#endif
-#ifdef HAVE_SGP
- if (pEZPlot && m_traceLevel >= Trace::TRACE_PLOT) {
- pEZPlot->ezset ("title Spatial Filter: Inverse");
- pEZPlot->ezset ("ylength 0.50");
- pEZPlot->ezset ("yporigin 0.50");
- pEZPlot->addCurve (m_adFilter, m_nFilterPoints);
- pEZPlot->plot (pSGP);
- delete pEZPlot;
+#if defined(HAVE_WXWINDOWS) && defined(DEBUG)
+ if (g_bRunningWXWindows && pEZPlotDlg && m_traceLevel > 0) {
+ pEZPlotDlg->getEZPlot()->ezset ("title Spatial Filter: Inverse");
+ pEZPlotDlg->getEZPlot()->ezset ("ylength 0.50");
+ pEZPlotDlg->getEZPlot()->ezset ("yporigin 0.50");
+ pEZPlotDlg->getEZPlot()->addCurve (m_adFilter, m_nFilterPoints);
+ pEZPlotDlg->ShowModal();
+ delete pEZPlotDlg;
}
#endif
}