Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkPythonVariableStackTableModel Class Reference

#include <QmitkPythonVariableStackTableModel.h>

Inheritance diagram for QmitkPythonVariableStackTableModel:
Collaboration diagram for QmitkPythonVariableStackTableModel:

Public Member Functions

 QmitkPythonVariableStackTableModel (QObject *parent=0)
 
virtual ~QmitkPythonVariableStackTableModel ()
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
QStringList mimeTypes () const
 
bool dropMimeData (const QMimeData *, Qt::DropAction, int, int, const QModelIndex &)
 
Qt::DropActions supportedDropActions () const
 
void CommandExecuted (const std::string &pythonCommand)
 
std::vector< mitk::PythonVariableGetVariableStack () const
 

Static Public Attributes

static const QString MITK_IMAGE_VAR_NAME
 
static const QString MITK_SURFACE_VAR_NAME
 

Detailed Description

implements a table model to show the variables of the Python "__main__" dictionary furthermore implements dragging and dropping of datanodes (conversion from and to python)

Definition at line 31 of file QmitkPythonVariableStackTableModel.h.

Constructor & Destructor Documentation

QmitkPythonVariableStackTableModel::QmitkPythonVariableStackTableModel ( QObject *  parent = 0)
QmitkPythonVariableStackTableModel::~QmitkPythonVariableStackTableModel ( )
virtual

Member Function Documentation

int QmitkPythonVariableStackTableModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 177 of file QmitkPythonVariableStackTableModel.cpp.

void QmitkPythonVariableStackTableModel::CommandExecuted ( const std::string &  pythonCommand)
virtual
QVariant QmitkPythonVariableStackTableModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
Qt::ItemFlags QmitkPythonVariableStackTableModel::flags ( const QModelIndex &  index) const

Definition at line 162 of file QmitkPythonVariableStackTableModel.cpp.

std::vector< mitk::PythonVariable > QmitkPythonVariableStackTableModel::GetVariableStack ( ) const
QVariant QmitkPythonVariableStackTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
virtual

Definition at line 139 of file QmitkPythonVariableStackTableModel.cpp.

QStringList QmitkPythonVariableStackTableModel::mimeTypes ( ) const

Definition at line 200 of file QmitkPythonVariableStackTableModel.cpp.

int QmitkPythonVariableStackTableModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 172 of file QmitkPythonVariableStackTableModel.cpp.

Qt::DropActions QmitkPythonVariableStackTableModel::supportedDropActions ( ) const

Definition at line 209 of file QmitkPythonVariableStackTableModel.cpp.

Member Data Documentation

const QString QmitkPythonVariableStackTableModel::MITK_IMAGE_VAR_NAME
static

Definition at line 36 of file QmitkPythonVariableStackTableModel.h.

Referenced by dropMimeData().

const QString QmitkPythonVariableStackTableModel::MITK_SURFACE_VAR_NAME
static

Definition at line 37 of file QmitkPythonVariableStackTableModel.h.

Referenced by dropMimeData().


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