#include <qxrdcalibrantdspacing.h>
Definition at line 10 of file qxrdcalibrantdspacing.h.
QxrdCalibrantDSpacing::QxrdCalibrantDSpacing |
( |
int |
calIndex, |
|
|
int |
h, |
|
|
int |
k, |
|
|
int |
l, |
|
|
int |
n, |
|
|
double |
d, |
|
|
double |
tth |
|
) |
| |
QxrdCalibrantDSpacing::QxrdCalibrantDSpacing |
( |
| ) |
|
void QxrdCalibrantDSpacing::customSaver |
( |
const QVariant & |
val, |
|
|
QSettings * |
settings, |
|
|
QString |
name |
|
) |
| |
|
static |
double QxrdCalibrantDSpacing::d |
( |
| ) |
const |
|
inline |
double& QxrdCalibrantDSpacing::d |
( |
| ) |
|
|
inline |
Definition at line 102 of file qxrdcalibrantdspacing.cpp.
References d(), h(), index(), k(), l(), n(), and tth().
104 spc.
index() = obj.property(
"index").toInteger();
105 spc.
h() = obj.property(
"h").toInteger();
106 spc.
k() = obj.property(
"k").toInteger();
107 spc.
l() = obj.property(
"l").toInteger();
108 spc.
n() = obj.property(
"n").toInteger();
109 spc.
d() = obj.property(
"d").toNumber();
110 spc.
tth() = obj.property(
"tth").toNumber();
int QxrdCalibrantDSpacing::h |
( |
| ) |
const |
|
inline |
int& QxrdCalibrantDSpacing::h |
( |
| ) |
|
|
inline |
int QxrdCalibrantDSpacing::index |
( |
| ) |
const |
|
inline |
int& QxrdCalibrantDSpacing::index |
( |
| ) |
|
|
inline |
bool QxrdCalibrantDSpacing::isValid |
( |
| ) |
const |
int QxrdCalibrantDSpacing::k |
( |
| ) |
const |
|
inline |
int& QxrdCalibrantDSpacing::k |
( |
| ) |
|
|
inline |
int QxrdCalibrantDSpacing::l |
( |
| ) |
const |
|
inline |
int& QxrdCalibrantDSpacing::l |
( |
| ) |
|
|
inline |
int QxrdCalibrantDSpacing::n |
( |
| ) |
const |
|
inline |
int& QxrdCalibrantDSpacing::n |
( |
| ) |
|
|
inline |
void QxrdCalibrantDSpacing::registerMetaTypes |
( |
| ) |
|
|
static |
void QxrdCalibrantDSpacing::setSettingsValue |
( |
QSettings * |
settings, |
|
|
QString |
name |
|
) |
| |
Definition at line 51 of file qxrdcalibrantdspacing.cpp.
References d(), h(), index(), k(), l(), n(), and tth().
Referenced by customSaver().
53 settings->beginGroup(name);
54 settings->setValue(
"index",
index());
55 settings->setValue(
"h",
h());
56 settings->setValue(
"k",
k());
57 settings->setValue(
"l",
l());
58 settings->setValue(
"n",
n());
59 settings->setValue(
"d",
d());
60 settings->setValue(
"tth",
tth());
QScriptValue QxrdCalibrantDSpacing::toScriptValue |
( |
QScriptEngine * |
engine, |
|
|
const QxrdCalibrantDSpacing & |
spc |
|
) |
| |
|
static |
Definition at line 87 of file qxrdcalibrantdspacing.cpp.
References d(), h(), index(), k(), l(), n(), and tth().
89 QScriptValue obj = engine->newObject();
91 obj.setProperty(
"index", spc.
index());
92 obj.setProperty(
"h", spc.
h());
93 obj.setProperty(
"k", spc.
k());
94 obj.setProperty(
"l", spc.
l());
95 obj.setProperty(
"n", spc.
n());
96 obj.setProperty(
"d", spc.
d());
97 obj.setProperty(
"tth", spc.
tth());
QString QxrdCalibrantDSpacing::toString |
( |
| ) |
const |
Definition at line 72 of file qxrdcalibrantdspacing.cpp.
References d(), h(), index(), k(), l(), n(), and tth().
74 return QObject::tr(
"{index:%1, h:%2, k:%3, l:%4, n:%5, d:%6, tth:%7}")
75 .arg(
index()).arg(
h()).arg(
k()).arg(
l()).arg(
n()).arg(
d()).arg(
tth());
double QxrdCalibrantDSpacing::tth |
( |
| ) |
const |
|
inline |
double& QxrdCalibrantDSpacing::tth |
( |
| ) |
|
|
inline |
double QxrdCalibrantDSpacing::m_D |
|
private |
int QxrdCalibrantDSpacing::m_H |
|
private |
int QxrdCalibrantDSpacing::m_Index |
|
private |
int QxrdCalibrantDSpacing::m_K |
|
private |
int QxrdCalibrantDSpacing::m_L |
|
private |
int QxrdCalibrantDSpacing::m_N |
|
private |
double QxrdCalibrantDSpacing::m_TTH |
|
private |
The documentation for this class was generated from the following files: