SpectrumModel Class Reference

#include <spectrummodel.h>

Inheritance diagram for SpectrumModel:

Abstract1DSpectrumModel AbstractSpectrumModel QAbstractItemModel
Collaboration diagram for SpectrumModel:

Collaboration graph

List of all members.

Public Slots

void data (double)
 Adds data to the model.
void saveToFile (QString)
 Save the data of the model into the named file.
void clearSpectrum ()
 Clear the whole spectrum.

Public Member Functions

 SpectrumModel (QObject *)
virtual ~SpectrumModel ()
int rowCount (const QModelIndex &=QModelIndex()) const
QVariant data (const QModelIndex &, int=Qt::DisplayRole) const
QModelIndex index (int, int, const QModelIndex &) const
QVariant rowHeader (int) const
bool removeRows (int, int, const QModelIndex &=QModelIndex())
QString supportedFilters () const
 return the supported filters

Private Slots

void accuracyChanged ()

Private Attributes

QList< _Pair > _data
double _accuracy

Detailed Description


Constructor & Destructor Documentation

SpectrumModel::SpectrumModel ( QObject  ) 

virtual SpectrumModel::~SpectrumModel (  )  [virtual]

Member Function Documentation

int SpectrumModel::rowCount ( const QModelIndex &  = QModelIndex()  )  const

Referenced by clearSpectrum().

QVariant SpectrumModel::data ( const QModelIndex &  ,
int  = Qt::DisplayRole 
) const

QModelIndex SpectrumModel::index ( int  ,
int  ,
const QModelIndex &   
) const

QVariant SpectrumModel::rowHeader ( int   )  const [virtual]

bool SpectrumModel::removeRows ( int  ,
int  ,
const QModelIndex &  = QModelIndex() 

Referenced by clearSpectrum().

QString SpectrumModel::supportedFilters (  )  const [inline, virtual]

return the supported filters

Implement this to return the valid file-endings your model can save. Is used in the file selection dialog.

Implements AbstractSpectrumModel.

void SpectrumModel::data ( double   )  [virtual, slot]

Adds data to the model.

Implements Abstract1DSpectrumModel.

void SpectrumModel::saveToFile ( QString   )  [virtual, slot]

Save the data of the model into the named file.

Implements AbstractSpectrumModel.

void SpectrumModel::clearSpectrum (  )  [inline, virtual, slot]

Clear the whole spectrum.

Implements AbstractSpectrumModel.

References removeRows(), and rowCount().

void SpectrumModel::accuracyChanged (  )  [private, slot]

Member Data Documentation

QList<_Pair> SpectrumModel::_data [private]

double SpectrumModel::_accuracy [private]

The documentation for this class was generated from the following file:

Generated on Tue Apr 12 02:10:17 2011 for epos by  doxygen 1.5.5