Fraxinus  16.5.0-fx-rc1
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::DICOMModel Class Reference

#include <cxDICOMModel.h>

Inheritance diagram for cx::DICOMModel:

Public Types

enum  { UIDRole = Qt::UserRole, TypeRole }
 
enum  IndexType {
  RootType, PatientType, StudyType, SeriesType,
  ImageType, NoneType
}
 

Public Slots

virtual void reset ()
 

Public Member Functions

 DICOMModel (QObject *parent=0)
 
virtual ~DICOMModel ()
 
void setDatabase (QSharedPointer< ctkDICOMDatabase > dataBase)
 
DICOMModel::IndexType endLevel () const
 Set it before populating the model. More...
 
void setEndLevel (DICOMModel::IndexType level)
 
virtual bool canFetchMore (const QModelIndex &parent) const
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
virtual void fetchMore (const QModelIndex &parent)
 
virtual bool hasChildren (const QModelIndex &parent=QModelIndex()) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
virtual QModelIndex parent (const QModelIndex &index) const
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
 
virtual bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 

Protected Attributes

QScopedPointer< DICOMModelPrivated_ptr
 

Detailed Description

Definition at line 39 of file cxDICOMModel.h.

Member Enumeration Documentation

anonymous enum
Enumerator
UIDRole 
TypeRole 

Definition at line 47 of file cxDICOMModel.h.

Enumerator
RootType 
PatientType 
StudyType 
SeriesType 
ImageType 
NoneType 

Definition at line 52 of file cxDICOMModel.h.

Constructor & Destructor Documentation

cx::DICOMModel::DICOMModel ( QObject *  parent = 0)
explicit

Definition at line 147 of file cxDICOMModel.cpp.

cx::DICOMModel::~DICOMModel ( )
virtual

Definition at line 155 of file cxDICOMModel.cpp.

Member Function Documentation

bool cx::DICOMModel::canFetchMore ( const QModelIndex &  parent) const
virtual

Definition at line 160 of file cxDICOMModel.cpp.

int cx::DICOMModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 168 of file cxDICOMModel.cpp.

QVariant cx::DICOMModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 176 of file cxDICOMModel.cpp.

DICOMModel::IndexType cx::DICOMModel::endLevel ( ) const

Set it before populating the model.

Definition at line 304 of file cxDICOMModel.cpp.

void cx::DICOMModel::fetchMore ( const QModelIndex &  parent)
virtual

Definition at line 200 of file cxDICOMModel.cpp.

bool cx::DICOMModel::hasChildren ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 207 of file cxDICOMModel.cpp.

QVariant cx::DICOMModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
virtual

Definition at line 219 of file cxDICOMModel.cpp.

QModelIndex cx::DICOMModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
virtual

Definition at line 240 of file cxDICOMModel.cpp.

QModelIndex cx::DICOMModel::parent ( const QModelIndex &  index) const
virtual

Definition at line 260 of file cxDICOMModel.cpp.

bool cx::DICOMModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
virtual

Definition at line 326 of file cxDICOMModel.cpp.

void cx::DICOMModel::reset ( )
virtualslot

Definition at line 319 of file cxDICOMModel.cpp.

int cx::DICOMModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
virtual

Definition at line 278 of file cxDICOMModel.cpp.

void cx::DICOMModel::setDatabase ( QSharedPointer< ctkDICOMDatabase >  dataBase)

Definition at line 289 of file cxDICOMModel.cpp.

void cx::DICOMModel::setEndLevel ( DICOMModel::IndexType  level)

Definition at line 312 of file cxDICOMModel.cpp.

Member Data Documentation

QScopedPointer<DICOMModelPrivate> cx::DICOMModel::d_ptr
protected

Definition at line 88 of file cxDICOMModel.h.


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