SelectedPixelModel Class Reference

#include <selectedpixelmodel.h>

Collaboration diagram for SelectedPixelModel:

Collaboration graph
[legend]
List of all members.

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< SelectedPixelPixList
 list
 stats
 status
enum  Modes { list, stats, status }

Private Attributes

Modes mode
int nrows
int ncols
PixList pixs
QStringList headers
std::vector< int > pidx
SelectedPixelModeldata4stats
QStringList statnames
int n

Detailed Description

Definition at line 34 of file selectedpixelmodel.h.


Member Typedef Documentation

typedef std::vector<SelectedPixel> SelectedPixelModel::PixList [private]

Definition at line 65 of file selectedpixelmodel.h.


Member Enumeration Documentation

enum SelectedPixelModel::Modes [private]

Enumerator:
list 
stats 
status 

Definition at line 66 of file selectedpixelmodel.h.


Constructor & Destructor Documentation

SelectedPixelModel::SelectedPixelModel ( QObject *  parent = 0  ) 

Definition at line 21 of file selectedpixelmodel.cpp.

References data4stats, list, mode, n, ncols, and nrows.


Member Function Documentation

void SelectedPixelModel::asStats ( Skymap map  ) 

Definition at line 278 of file selectedpixelmodel.cpp.

References headers, mode, n, nrows, pidx, pixs, set(), Skymap::size(), statnames, and stats.

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]

Definition at line 41 of file selectedpixelmodel.cpp.

References list, mode, n, pidx, pixs, statnames, stats, and status.

Referenced by asStats(), and ControlDialog::doubleClicked().

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]

Definition at line 89 of file selectedpixelmodel.cpp.

References headers.

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 
)

Definition at line 135 of file selectedpixelmodel.cpp.

References pi, and pixs.

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().


Member Data Documentation

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]

Definition at line 77 of file selectedpixelmodel.h.

Referenced by asStats(), and data().


The documentation for this class was generated from the following files:
Generated on Fri Feb 6 15:33:01 2009 for Skyviewer by  doxygen 1.4.7