QXRD  0.11.16
qxrdfitter.cpp
Go to the documentation of this file.
1 #include "qxrdfitter.h"
2 
4  m_CenterFinder(cf),
5  m_Reason(NoResult)
6 {
7 }
8 
10  m_CenterFinder(NULL),
11  m_Reason(NoResult)
12 {
13 }
14 
15 QString QxrdFitter::reasonString() const
16 {
18 }
19 
21 {
22  QString res = "Unknown";
23 
24  switch (reason) {
25 
26  case NoResult:
27  res = "No Result";
28  break;
29 
30  case OutsideData:
31  res = "Outside range of data";
32  break;
33 
34  case Successful:
35  res = "Successful";
36  break;
37 
38  case BadWidth:
39  res = "Bad Width";
40  break;
41 
42  case BadPosition:
43  res = "Bad Position";
44  break;
45 
46  case BadHeight:
47  res = "Bad Height";
48  break;
49  }
50 
51  return res;
52 }
FitResult m_Reason
Definition: qxrdfitter.h:32
QString reasonString() const
Definition: qxrdfitter.cpp:15