Skip to content

Commit 8ada7a7

Browse files
committed
Some small cleanup
1 parent ba11fe2 commit 8ada7a7

File tree

4 files changed

+10
-48
lines changed

4 files changed

+10
-48
lines changed

InterSpec/ShieldingSourceDisplay.h

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,21 @@
2626
#include "InterSpec_config.h"
2727

2828
#include <map>
29-
#include <tuple>
3029
#include <mutex>
3130
#include <utility>
3231

3332
#if( INCLUDE_ANALYSIS_TEST_SUITE )
33+
#include <tuple>
34+
3435
#include <boost/optional.hpp>
3536
#endif
3637

37-
#include <Wt/WColor>
38-
#include <Wt/WRectF>
39-
#include <Wt/WPainter>
4038
#include <Wt/WModelIndex>
41-
#include <Wt/WGridLayout>
4239
#include <Wt/WContainerWidget>
4340
#include <Wt/WAbstractItemModel>
4441

42+
#include "InterSpec/DetectorPeakResponse.h"
4543
#include "InterSpec/ShieldingSourceFitPlot.h"
46-
#include "InterSpec/DetectorPeakResponse.h" //DetectorPeakResponse::EffGeometryType
4744
#include "InterSpec/ShieldingSourceFitCalc.h"
4845

4946
//Forward declarations
@@ -88,8 +85,6 @@ namespace Wt
8885
{
8986
class WText;
9087
class WLabel;
91-
class WAnchor;
92-
class WSvgImage;
9388
class WCheckBox;
9489
class WLineEdit;
9590
class WTreeView;
@@ -98,11 +93,6 @@ namespace Wt
9893
class WFileUpload;
9994
class WSelectionBox;
10095
class WSuggestionPopup;
101-
class WStandardItemModel;
102-
// namespace Chart
103-
// {
104-
// class WCartesianChart;
105-
// }//namespace Chart
10696
}//namespace Wt
10797

10898

@@ -356,9 +346,6 @@ class ShieldingSourceDisplay : public Wt::WContainerWidget
356346

357347
/** Returns <num values specified, num fit values, is valid> */
358348
std::tuple<int,int,bool> numTruthValuesForFitValues();
359-
360-
/** Renders the Chi2Chart to a SVG image */
361-
void renderChi2Chart( Wt::WSvgImage &image );
362349

363350
/** Tests the current values, for all quantities being fit for, against truth-level values.
364351

src/DetectionLimitTool.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@
4343
#include <Wt/WApplication>
4444
#include <Wt/WRegExpValidator>
4545
#include <Wt/WSuggestionPopup>
46-
#include <Wt/WStandardItemModel>
47-
#include <Wt/Chart/WCartesianChart>
4846

4947
#include <Wt/Json/Array>
5048
#include <Wt/Json/Value>

src/ShieldingSourceDisplay.cpp

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -41,44 +41,28 @@
4141

4242

4343
#include <Wt/WText>
44-
#include <Wt/WTime>
45-
#include <Wt/WImage>
44+
#if( INCLUDE_ANALYSIS_TEST_SUITE )
4645
#include <Wt/WTable>
46+
#endif
4747
#include <Wt/WLabel>
48-
#include <Wt/WAnchor>
49-
#include <Wt/WBorder>
5048
#include <Wt/WServer>
5149
#include <Wt/WPainter>
5250
#include <Wt/WGroupBox>
5351
#include <Wt/WTextArea>
54-
#include <Wt/WRectArea>
5552
#include <Wt/WResource>
56-
#include <Wt/WSvgImage>
57-
#include <Wt/WTableCell>
58-
#include <Wt/WTabWidget>
5953
#include <Wt/WIOService>
54+
#include <Wt/WTabWidget>
6055
#include <Wt/WGridLayout>
6156
#include <Wt/WPushButton>
6257
#include <Wt/WJavaScript>
6358
#include <Wt/WFileUpload>
64-
#include <Wt/WEnvironment>
6559
#include <Wt/Http/Response>
6660
#include <Wt/WSelectionBox>
67-
#include <Wt/WStandardItem>
6861
#include <Wt/WItemDelegate>
69-
#include <Wt/WDoubleSpinBox>
7062
#include <Wt/Dbo/QueryModel>
71-
#include <Wt/WMemoryResource>
7263
#include <Wt/WSuggestionPopup>
7364
#include <Wt/WRegExpValidator>
7465
#include <Wt/WDoubleValidator>
75-
#include <Wt/WStandardItemModel>
76-
#if( WT_VERSION >= 0x3030600 )
77-
#include <Wt/Chart/WStandardChartProxyModel>
78-
#endif
79-
#include <Wt/WCssDecorationStyle>
80-
#include <Wt/Chart/WChartPalette>
81-
#include <Wt/Chart/WCartesianChart>
8266

8367
#include "SandiaDecay/SandiaDecay.h"
8468

@@ -4121,15 +4105,6 @@ std::tuple<int,int,bool> ShieldingSourceDisplay::numTruthValuesForFitValues()
41214105
}//bool haveTruthValuesForAllFitValues()
41224106

41234107

4124-
void ShieldingSourceDisplay::renderChi2Chart( Wt::WSvgImage &image )
4125-
{
4126-
// The Chi2 chart is now implemented in D3.js, so this function is no longer needed
4127-
// WPainter p( &image );
4128-
// m_chi2Plot->paint( p );
4129-
// p.end();
4130-
}//void renderChi2Chart( Wt::WSvgImage &image );
4131-
4132-
41334108
tuple<bool,int,int,vector<string>> ShieldingSourceDisplay::testCurrentFitAgainstTruth()
41344109
{
41354110
bool successful = true;

src/SpectrumViewerTester.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,8 @@ SpectrumViewerTester::Score SpectrumViewerTester::testShieldSourceFit()
19941994
note.m_title = "Fit Chi2 Graphic";
19951995
note.m_originalImage = make_shared<Wt::WSvgImage>(m_picWidth, m_picHeight);
19961996
disp->updateChi2ChartActual( nullptr );
1997-
disp->renderChi2Chart( *note.m_originalImage );
1997+
// TODO: 20251110 The Wt-based Chi2 chart was replaced by `ShieldingSourceFitPlot` - so should update to that...
1998+
//disp->renderChi2Chart( *note.m_originalImage );
19981999

19992000
// Set all the quantities being fit for to some default values, so we wont be starting off in
20002001
// unfairly close to the real answer.
@@ -2006,7 +2007,8 @@ SpectrumViewerTester::Score SpectrumViewerTester::testShieldSourceFit()
20062007
result = disp->doModelFit( false );
20072008

20082009
note.m_testImage = make_shared<Wt::WSvgImage>(m_picWidth, m_picHeight);
2009-
disp->renderChi2Chart( *note.m_testImage );
2010+
// TODO: 20251110 The Wt-based Chi2 chart was replaced by `ShieldingSourceFitPlot` - so should update to that...
2011+
//disp->renderChi2Chart( *note.m_testImage );
20102012
answer.m_notes.push_back( note );
20112013

20122014
switch( result->successful )

0 commit comments

Comments
 (0)