#include <selectedpixelmodel.h>
Collaboration diagram for SelectedPixelModel:
Public Member Functions | |
| SelectedPixelModel (QObject *parent=0) | |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| virtual QVariant | headerData (const int i, Qt::Orientation o, int role=Qt::DisplayRole) const |
| void | set (Skymap *map) |
| void | asStats (SelectedPixelModel *) |
| void | asStats (Skymap *map) |
| void | asStatus () |
| void | hasField (Field f, bool b) |
| void | loadField (Field f) |
| bool | operator() (int i, BasePixel *pix) |
| int | size () const |
| int | pixnum (int i) const |
| void | clear () |
| void | updateStats () |
| void | writeListToFile (const QString &dst) |
Private Types | |
| typedef std::vector< SelectedPixel > | PixList |
| list | |
| stats | |
| status | |
| enum | Modes { list, stats, status } |
Private Attributes | |
| Modes | mode |
| int | nrows |
| int | ncols |
| PixList | pixs |
| QStringList | headers |
| std::vector< int > | pidx |
| SelectedPixelModel * | data4stats |
| QStringList | statnames |
| int | n |
Definition at line 34 of file selectedpixelmodel.h.
typedef std::vector<SelectedPixel> SelectedPixelModel::PixList [private] |
Definition at line 65 of file selectedpixelmodel.h.
enum SelectedPixelModel::Modes [private] |
| SelectedPixelModel::SelectedPixelModel | ( | QObject * | parent = 0 |
) |
Definition at line 21 of file selectedpixelmodel.cpp.
| void SelectedPixelModel::asStats | ( | Skymap * | map | ) |
| void SelectedPixelModel::asStats | ( | SelectedPixelModel * | ) |
Definition at line 156 of file selectedpixelmodel.cpp.
References data(), data4stats, headers, mode, ncols, nrows, pidx, pixs, statnames, and stats.
Referenced by ControlDialog::finished(), and ControlDialog::init().
| void SelectedPixelModel::asStatus | ( | ) |
Definition at line 205 of file selectedpixelmodel.cpp.
References headers, mode, ncols, nrows, pidx, pixs, and status.
Referenced by ControlDialog::clearStatus().
| void SelectedPixelModel::clear | ( | ) |
Definition at line 149 of file selectedpixelmodel.cpp.
References pixs.
Referenced by ControlDialog::on_clearall_clicked().
| int SelectedPixelModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 36 of file selectedpixelmodel.cpp.
References ncols.
Referenced by ControlDialog::init().
| QVariant SelectedPixelModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
| void SelectedPixelModel::hasField | ( | Field | f, | |
| bool | b | |||
| ) |
Definition at line 240 of file selectedpixelmodel.cpp.
References I, Nobs, P, pidx, pixs, Q, and U.
Referenced by ControlDialog::hasField().
| QVariant SelectedPixelModel::headerData | ( | const int | i, | |
| Qt::Orientation | o, | |||
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
| void SelectedPixelModel::loadField | ( | Field | f | ) |
Definition at line 259 of file selectedpixelmodel.cpp.
References I, Nobs, P, pidx, pixs, Q, and U.
Referenced by ControlDialog::loadField().
| bool SelectedPixelModel::operator() | ( | int | i, | |
| BasePixel * | pix | |||
| ) |
| int SelectedPixelModel::pixnum | ( | int | i | ) | const [inline] |
Definition at line 57 of file selectedpixelmodel.h.
References pixs.
Referenced by ControlDialog::on_clearall_clicked(), ControlDialog::on_clearsel_clicked(), and ControlDialog::pixnum().
| int SelectedPixelModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 31 of file selectedpixelmodel.cpp.
References pixs.
Referenced by ControlDialog::selectPixel().
| void SelectedPixelModel::set | ( | Skymap * | map | ) |
Definition at line 100 of file selectedpixelmodel.cpp.
References Skymap::has_Nobs(), Skymap::has_Polarization(), Skymap::has_Temperature(), headers, ncols, nrows, pidx, and pixs.
Referenced by asStats(), and ControlDialog::init().
| int SelectedPixelModel::size | ( | ) | const [inline] |
Definition at line 56 of file selectedpixelmodel.h.
References pixs.
Referenced by ControlDialog::numselected(), and ControlDialog::on_clearall_clicked().
| void SelectedPixelModel::updateStats | ( | ) |
Definition at line 179 of file selectedpixelmodel.cpp.
References data4stats, n, pidx, and pixs.
Referenced by ControlDialog::selectPixel().
| void SelectedPixelModel::writeListToFile | ( | const QString & | dst | ) |
Definition at line 315 of file selectedpixelmodel.cpp.
References headers, ncols, pidx, and pixs.
Referenced by ControlDialog::on_savelist_clicked().
SelectedPixelModel* SelectedPixelModel::data4stats [private] |
Definition at line 76 of file selectedpixelmodel.h.
Referenced by asStats(), SelectedPixelModel(), and updateStats().
QStringList SelectedPixelModel::headers [private] |
Definition at line 73 of file selectedpixelmodel.h.
Referenced by asStats(), asStatus(), headerData(), set(), and writeListToFile().
Modes SelectedPixelModel::mode [private] |
Definition at line 68 of file selectedpixelmodel.h.
Referenced by asStats(), asStatus(), data(), and SelectedPixelModel().
int SelectedPixelModel::n [private] |
Definition at line 78 of file selectedpixelmodel.h.
Referenced by asStats(), data(), SelectedPixelModel(), and updateStats().
int SelectedPixelModel::ncols [private] |
Definition at line 71 of file selectedpixelmodel.h.
Referenced by asStats(), asStatus(), columnCount(), SelectedPixelModel(), set(), and writeListToFile().
int SelectedPixelModel::nrows [private] |
Definition at line 70 of file selectedpixelmodel.h.
Referenced by asStats(), asStatus(), SelectedPixelModel(), and set().
std::vector<int> SelectedPixelModel::pidx [private] |
Definition at line 74 of file selectedpixelmodel.h.
Referenced by asStats(), asStatus(), data(), hasField(), loadField(), set(), updateStats(), and writeListToFile().
PixList SelectedPixelModel::pixs [private] |
Definition at line 72 of file selectedpixelmodel.h.
Referenced by asStats(), asStatus(), clear(), data(), hasField(), loadField(), operator()(), pixnum(), rowCount(), set(), size(), updateStats(), and writeListToFile().
QStringList SelectedPixelModel::statnames [private] |
1.4.7