qMRMLItemModel Class Reference

#include <qMRMLItemModel.h>

Inheritance diagram for qMRMLItemModel:
QAbstractItemModel

List of all members.

Public Member Functions

virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual Qt::ItemFlags flags (const QModelIndex &index) const
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
QModelIndex indexFromMRMLNode (vtkMRMLNode *node, int column=0) const
virtual QMimeData * mimeData (const QModelIndexList &indexes) const
virtual QStringList mimeTypes () const
vtkMRMLNodemrmlNodeFromIndex (const QModelIndex &index) const
vtkMRMLScenemrmlScene () const
virtual QModelIndex parent (const QModelIndex &index) const
 qMRMLItemModel (QObject *parent=0)
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
void setMRMLScene (vtkMRMLScene *scene)
virtual Qt::DropActions supportedDropActions () const
virtual ~qMRMLItemModel ()

Private Member Functions

 QCTK_DECLARE_PRIVATE (qMRMLItemModel)

Constructor & Destructor Documentation

qMRMLItemModel::qMRMLItemModel ( QObject parent = 0  ) 

References QCTK_INIT_PRIVATE.

qMRMLItemModel::~qMRMLItemModel (  )  [virtual]

Member Function Documentation

int qMRMLItemModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]
QVariant qMRMLItemModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [virtual]

References mrmlNodeFromIndex().

Referenced by dropMimeData().

bool qMRMLItemModel::dropMimeData ( const QMimeData *  data,
Qt::DropAction  action,
int  row,
int  column,
const QModelIndex &  parent 
) [virtual]
Qt::ItemFlags qMRMLItemModel::flags ( const QModelIndex &  index  )  const [virtual]
bool qMRMLItemModel::hasChildren ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]
QVariant qMRMLItemModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const [virtual]
QModelIndex qMRMLItemModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const [virtual]
QModelIndex qMRMLItemModel::indexFromMRMLNode ( vtkMRMLNode node,
int  column = 0 
) const

References qMRMLUtils::nodeIndex().

Referenced by dropMimeData(), and parent().

QMimeData * qMRMLItemModel::mimeData ( const QModelIndexList &  indexes  )  const [virtual]

References index(), and mrmlNodeFromIndex().

QStringList qMRMLItemModel::mimeTypes (  )  const [virtual]
vtkMRMLNode * qMRMLItemModel::mrmlNodeFromIndex ( const QModelIndex &  index  )  const
vtkMRMLScene * qMRMLItemModel::mrmlScene (  )  const
QModelIndex qMRMLItemModel::parent ( const QModelIndex &  index  )  const [virtual]
qMRMLItemModel::QCTK_DECLARE_PRIVATE ( qMRMLItemModel   )  [private]
int qMRMLItemModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]
bool qMRMLItemModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
) [virtual]

References mrmlNodeFromIndex().

void qMRMLItemModel::setMRMLScene ( vtkMRMLScene scene  ) 
Qt::DropActions qMRMLItemModel::supportedDropActions (  )  const [virtual]

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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1