libpappsomspp
Library for mass spectrometry
|
#include <datapointjs.h>
Signals | |
void | xChanged () |
void | yChanged () |
void | validChanged () |
void | stringChanged () |
Public Member Functions | |
Q_INVOKABLE | DataPointJs (QObject *parent=nullptr) |
Q_INVOKABLE | DataPointJs (double x, double y, QObject *parent=nullptr) |
Q_INVOKABLE | DataPointJs (const DataPoint &data_ppoint, QObject *parent=nullptr) |
Q_INVOKABLE double | getX () const |
Q_INVOKABLE void | setX (double x) |
Q_INVOKABLE double | getY () const |
Q_INVOKABLE void | setY (double y) |
Q_INVOKABLE void | setData (double x, double y) |
bool | isValid () const |
QString | toString () const |
QString | toString (int decimals) const |
Q_INVOKABLE void | reset () |
Q_INVOKABLE void | incrementX (double value) |
Q_INVOKABLE void | incrementY (double value) |
Q_INVOKABLE void | initialize (double x, double y) |
Q_INVOKABLE void | initialize (const QString &text) |
const DataPoint & | dataPoint () const |
void | setDataPoint (const DataPoint &point) |
Static Public Member Functions | |
static void | registerJsConstructor (QJSEngine *engine) |
Properties | |
double | x |
double | y |
bool | valid |
QString | string |
Private Attributes | |
DataPoint | m_dataPoint |
Definition at line 24 of file datapointjs.h.
|
explicit |
Definition at line 8 of file datapointjs.cpp.
References m_dataPoint.
|
explicit |
|
explicit |
Definition at line 16 of file datapointjs.cpp.
References m_dataPoint.
const DataPoint & pappso::DataPointJs::dataPoint | ( | ) | const |
Definition at line 132 of file datapointjs.cpp.
References m_dataPoint.
Referenced by pappso::TraceJs::append().
double pappso::DataPointJs::getX | ( | ) | const |
Definition at line 34 of file datapointjs.cpp.
References m_dataPoint.
double pappso::DataPointJs::getY | ( | ) | const |
Definition at line 53 of file datapointjs.cpp.
References m_dataPoint.
void pappso::DataPointJs::incrementX | ( | double | value | ) |
Definition at line 94 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), and xChanged().
void pappso::DataPointJs::incrementY | ( | double | value | ) |
Definition at line 102 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), and yChanged().
void pappso::DataPointJs::initialize | ( | const QString & | text | ) |
Definition at line 120 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), validChanged(), xChanged(), and yChanged().
void pappso::DataPointJs::initialize | ( | double | x, |
double | y ) |
Definition at line 110 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), validChanged(), x, xChanged(), y, and yChanged().
bool pappso::DataPointJs::isValid | ( | ) | const |
Definition at line 66 of file datapointjs.cpp.
References m_dataPoint.
|
static |
Definition at line 148 of file datapointjs.cpp.
void pappso::DataPointJs::reset | ( | ) |
Definition at line 84 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), validChanged(), xChanged(), and yChanged().
void pappso::DataPointJs::setData | ( | double | x, |
double | y ) |
Definition at line 59 of file datapointjs.cpp.
void pappso::DataPointJs::setDataPoint | ( | const DataPoint & | point | ) |
Definition at line 138 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), validChanged(), xChanged(), and yChanged().
void pappso::DataPointJs::setX | ( | double | x | ) |
Definition at line 22 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), validChanged(), x, and xChanged().
Referenced by setData().
void pappso::DataPointJs::setY | ( | double | y | ) |
Definition at line 41 of file datapointjs.cpp.
References m_dataPoint, stringChanged(), validChanged(), y, and yChanged().
Referenced by setData().
|
signal |
References stringChanged().
Referenced by incrementX(), incrementY(), initialize(), initialize(), reset(), setDataPoint(), setX(), setY(), and stringChanged().
QString pappso::DataPointJs::toString | ( | ) | const |
Definition at line 72 of file datapointjs.cpp.
References m_dataPoint.
QString pappso::DataPointJs::toString | ( | int | decimals | ) | const |
Definition at line 78 of file datapointjs.cpp.
References m_dataPoint.
|
signal |
References validChanged().
Referenced by initialize(), initialize(), reset(), setDataPoint(), setX(), setY(), and validChanged().
|
signal |
References xChanged().
Referenced by incrementX(), initialize(), initialize(), reset(), setDataPoint(), setX(), and xChanged().
|
signal |
References yChanged().
Referenced by incrementY(), initialize(), initialize(), reset(), setDataPoint(), setY(), and yChanged().
|
private |
Definition at line 70 of file datapointjs.h.
Referenced by DataPointJs(), DataPointJs(), DataPointJs(), dataPoint(), getX(), getY(), incrementX(), incrementY(), initialize(), initialize(), isValid(), reset(), setDataPoint(), setX(), setY(), toString(), and toString().
|
read |
Definition at line 31 of file datapointjs.h.
|
read |
Definition at line 30 of file datapointjs.h.
|
readwrite |
Definition at line 28 of file datapointjs.h.
Referenced by DataPointJs(), initialize(), setData(), and setX().
|
readwrite |
Definition at line 29 of file datapointjs.h.
Referenced by DataPointJs(), initialize(), setData(), and setY().