CTK  0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
Public Member Functions | List of all members
ctkXnatTreeModel Class Reference

#include <Libs/XNAT/Core/ctkXnatTreeModel.h>

Inheritance diagram for ctkXnatTreeModel:
Inheritance graph
[legend]
Collaboration diagram for ctkXnatTreeModel:
Collaboration graph
[legend]

Public Member Functions

void addChildNode (const QModelIndex &index, ctkXnatObject *child)
 
void addDataModel (ctkXnatDataModel *dataModel)
 
virtual bool canFetchMore (const QModelIndex &parent) const
 
virtual int columnCount (const QModelIndex &parent) const
 
 ctkXnatTreeModel ()
 
virtual QVariant data (const QModelIndex &index, int role) const
 
void downloadFile (const QModelIndex &index, const QString &zipFilename)
 
virtual void fetchMore (const QModelIndex &parent)
 
virtual bool hasChildren (const QModelIndex &parent) const
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent) const
 
virtual QModelIndex parent (const QModelIndex &child) const
 
virtual void refresh (const QModelIndex &parent=QModelIndex())
 Convenience method for refreshing an entry of the tree model. More...
 
bool removeAllRows (const QModelIndex &parent)
 
void removeDataModel (ctkXnatDataModel *dataModel)
 
virtual int rowCount (const QModelIndex &parent) const
 
ctkXnatObjectxnatObject (const QModelIndex &index) const
 
virtual ~ctkXnatTreeModel ()
 

Detailed Description

Definition at line 36 of file ctkXnatTreeModel.h.

Constructor & Destructor Documentation

◆ ctkXnatTreeModel()

ctkXnatTreeModel::ctkXnatTreeModel ( )
explicit

◆ ~ctkXnatTreeModel()

virtual ctkXnatTreeModel::~ctkXnatTreeModel ( )
virtual

Member Function Documentation

◆ addChildNode()

void ctkXnatTreeModel::addChildNode ( const QModelIndex &  index,
ctkXnatObject child 
)

◆ addDataModel()

void ctkXnatTreeModel::addDataModel ( ctkXnatDataModel dataModel)

◆ canFetchMore()

virtual bool ctkXnatTreeModel::canFetchMore ( const QModelIndex &  parent) const
virtual

◆ columnCount()

virtual int ctkXnatTreeModel::columnCount ( const QModelIndex &  parent) const
virtual

◆ data()

virtual QVariant ctkXnatTreeModel::data ( const QModelIndex &  index,
int  role 
) const
virtual

◆ downloadFile()

void ctkXnatTreeModel::downloadFile ( const QModelIndex &  index,
const QString &  zipFilename 
)

◆ fetchMore()

virtual void ctkXnatTreeModel::fetchMore ( const QModelIndex &  parent)
virtual

◆ hasChildren()

virtual bool ctkXnatTreeModel::hasChildren ( const QModelIndex &  parent) const
virtual

◆ index()

virtual QModelIndex ctkXnatTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent 
) const
virtual

◆ parent()

virtual QModelIndex ctkXnatTreeModel::parent ( const QModelIndex &  child) const
virtual

◆ refresh()

virtual void ctkXnatTreeModel::refresh ( const QModelIndex &  parent = QModelIndex())
virtual

Convenience method for refreshing an entry of the tree model.

Parameters
Theparent item, whose children will be refreshed

◆ removeAllRows()

bool ctkXnatTreeModel::removeAllRows ( const QModelIndex &  parent)

◆ removeDataModel()

void ctkXnatTreeModel::removeDataModel ( ctkXnatDataModel dataModel)

◆ rowCount()

virtual int ctkXnatTreeModel::rowCount ( const QModelIndex &  parent) const
virtual

◆ xnatObject()

ctkXnatObject* ctkXnatTreeModel::xnatObject ( const QModelIndex &  index) const

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