QXRD
0.11.16
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qxrd
source
qxrdfitter.cpp
Go to the documentation of this file.
1
#include "
qxrdfitter.h
"
2
3
QxrdFitter::QxrdFitter
(
QxrdCenterFinder
*cf) :
4
m_CenterFinder(cf),
5
m_Reason(NoResult)
6
{
7
}
8
9
QxrdFitter::QxrdFitter
() :
10
m_CenterFinder(NULL),
11
m_Reason(NoResult)
12
{
13
}
14
15
QString
QxrdFitter::reasonString
()
const
16
{
17
return
QxrdFitter::reasonString
(
m_Reason
);
18
}
19
20
QString
QxrdFitter::reasonString
(
FitResult
reason)
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
}
QxrdFitter::m_Reason
FitResult m_Reason
Definition:
qxrdfitter.h:32
QxrdFitter::OutsideData
Definition:
qxrdfitter.h:15
QxrdFitter::Successful
Definition:
qxrdfitter.h:13
QxrdFitter::BadHeight
Definition:
qxrdfitter.h:18
qxrdfitter.h
QxrdFitter::NoResult
Definition:
qxrdfitter.h:14
QxrdFitter::BadPosition
Definition:
qxrdfitter.h:17
QxrdFitter::FitResult
FitResult
Definition:
qxrdfitter.h:12
QxrdFitter::QxrdFitter
QxrdFitter()
Definition:
qxrdfitter.cpp:9
QxrdFitter::reasonString
QString reasonString() const
Definition:
qxrdfitter.cpp:15
QxrdCenterFinder
Definition:
qxrdcenterfinder.h:19
QxrdFitter::BadWidth
Definition:
qxrdfitter.h:16
Generated by
1.8.10