#include <qcepintegrateddata.h>
|
| QcepIntegratedData (QcepSettingsSaverWPtr saver, QString name, QcepDoubleImageDataPtr data, int maxSize, QcepObject *parent) |
|
| ~QcepIntegratedData () |
|
void | append (double x, double y) |
|
void | setValue (int n, double x, double y) |
|
void | selfNormalize (double minx, double maxx) |
|
void | set_Center (double cx, double cy) |
|
void | set_Image (QcepDoubleImageDataPtr image) |
|
QcepDoubleImageDataPtr | get_Image () const |
|
QString | get_XUnitsLabel () const |
|
void | set_XUnitsLabel (QString units) |
|
int | get_Oversample () const |
|
void | set_Oversample (int ovs) |
|
const double * | x () const |
|
const double * | y () const |
|
double | cx () const |
|
double | cy () const |
|
| QcepDataObject (QcepSettingsSaverWPtr saver, QString name, int byteSize, QcepObject *parent) |
|
virtual | ~QcepDataObject () |
|
QcepSettingsSaverWPtr | saver () |
|
virtual int | childCount () const |
|
virtual QcepDataObjectPtr | item (int n) |
|
virtual QcepDataObjectPtr | item (QString nm) |
|
virtual void | setParentItem (QcepDataGroupWPtr parent) |
|
virtual int | indexInParent () const |
|
virtual int | rowCount () const |
|
virtual int | columnCount () const |
|
virtual QVariant | columnData (int col) const |
|
virtual QString | fileFormatFilterString () |
|
virtual void | saveData (QString &name, QString filter, Overwrite canOverwrite=NoOverwrite) |
|
| QcepObject (QString name, QcepObject *parent) |
|
virtual | ~QcepObject () |
|
virtual void | writeSettings (QSettings *set, QString section) |
|
virtual void | readSettings (QSettings *set, QString section) |
|
QString | get_Name () const |
|
void | set_Name (QString name) |
|
Definition at line 10 of file qcepintegrateddata.h.
Definition at line 6 of file qcepintegrateddata.cpp.
References QcepAllocator::allocate(), and m_MaxSize.
Referenced by newIntegratedData().
10 m_Title(
saver,
this,
"title",
"",
"Integrated Data Title"),
22 set_Type(
"Integrated Data");
QcepDoubleImageDataPtr m_Image
QcepDataObject(QcepSettingsSaverWPtr saver, QString name, int byteSize, QcepObject *parent)
static void allocate(int sz, int width, int height)
QcepSettingsSaverWPtr saver()
QcepIntegratedData::~QcepIntegratedData |
( |
| ) |
|
void QcepIntegratedData::append |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
double QcepIntegratedData::cx |
( |
| ) |
const |
double QcepIntegratedData::cy |
( |
| ) |
const |
QString QcepIntegratedData::description |
( |
| ) |
const |
|
virtualslot |
void QcepIntegratedData::fromIntegratedDataScriptValue |
( |
const QScriptValue & |
obj, |
|
|
QcepIntegratedDataPtr & |
data |
|
) |
| |
|
static |
Definition at line 182 of file qcepintegrateddata.cpp.
184 QObject *qobj = obj.toQObject();
QSharedPointer< QcepIntegratedData > QcepIntegratedDataPtr
QSharedPointer< QcepDataObject > QcepDataObjectPtr
int QcepIntegratedData::get_Oversample |
( |
| ) |
const |
QString QcepIntegratedData::get_XUnitsLabel |
( |
| ) |
const |
void QcepIntegratedData::resize |
( |
int |
n | ) |
|
|
slot |
void QcepIntegratedData::selfNormalize |
( |
double |
minx, |
|
|
double |
maxx |
|
) |
| |
Definition at line 117 of file qcepintegrateddata.cpp.
References m_Size, m_X, m_Y, x(), and y().
119 double sumn = 0, sumv = 0;
121 for (
int i=0; i<
m_Size; i++) {
122 double x =
m_X.value(i);
123 double y =
m_Y.value(i);
125 if (x == x && y == y) {
126 if (x >= minx && x <= maxx) {
134 double norm = sumn/sumv;
136 for (
int i=0; i<
m_Size; i++) {
137 double x =
m_X.value(i);
138 double y =
m_Y.value(i);
140 if (x == x && y == y) {
void QcepIntegratedData::set_Center |
( |
double |
cx, |
|
|
double |
cy |
|
) |
| |
void QcepIntegratedData::set_Oversample |
( |
int |
ovs | ) |
|
void QcepIntegratedData::set_XUnitsLabel |
( |
QString |
units | ) |
|
void QcepIntegratedData::setValue |
( |
int |
n, |
|
|
double |
x, |
|
|
double |
y |
|
) |
| |
int QcepIntegratedData::size |
( |
| ) |
const |
|
slot |
QScriptValue QcepIntegratedData::toIntegratedDataScriptValue |
( |
QScriptEngine * |
engine, |
|
|
const QcepIntegratedDataPtr & |
data |
|
) |
| |
|
static |
double QcepIntegratedData::x |
( |
int |
i | ) |
const |
|
slot |
const double * QcepIntegratedData::x |
( |
| ) |
const |
double QcepIntegratedData::y |
( |
int |
i | ) |
const |
|
slot |
const double * QcepIntegratedData::y |
( |
| ) |
const |
const int QcepIntegratedData::m_AllocStep |
|
private |
double QcepIntegratedData::m_cx |
|
private |
double QcepIntegratedData::m_cy |
|
private |
int QcepIntegratedData::m_MaxSize |
|
private |
int QcepIntegratedData::m_Oversample |
|
private |
int QcepIntegratedData::m_Size |
|
private |
QVector<double> QcepIntegratedData::m_X |
|
private |
QString QcepIntegratedData::m_XUnitsLabel |
|
private |
QVector<double> QcepIntegratedData::m_Y |
|
private |
QString QcepIntegratedData::title |
|
readwrite |
The documentation for this class was generated from the following files: