Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkPythonVariableStackTableModel Class Reference

#include <QmitkPythonVariableStackTableModel.h>

Inheritance diagram for QmitkPythonVariableStackTableModel:
Collaboration diagram for QmitkPythonVariableStackTableModel:

Public Member Functions

 QmitkPythonVariableStackTableModel (QObject *parent=nullptr)
 
 ~QmitkPythonVariableStackTableModel () override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
QStringList mimeTypes () const override
 
bool dropMimeData (const QMimeData *, Qt::DropAction, int, int, const QModelIndex &) override
 
Qt::DropActions supportedDropActions () const override
 
void CommandExecuted (const std::string &pythonCommand) override
 
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 27 of file QmitkPythonVariableStackTableModel.h.

Constructor & Destructor Documentation

◆ QmitkPythonVariableStackTableModel()

QmitkPythonVariableStackTableModel::QmitkPythonVariableStackTableModel ( QObject *  parent = nullptr)

◆ ~QmitkPythonVariableStackTableModel()

QmitkPythonVariableStackTableModel::~QmitkPythonVariableStackTableModel ( )
override

Member Function Documentation

◆ columnCount()

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

◆ CommandExecuted()

void QmitkPythonVariableStackTableModel::CommandExecuted ( const std::string &  pythonCommand)
overridevirtual

◆ data()

QVariant QmitkPythonVariableStackTableModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ dropMimeData()

bool QmitkPythonVariableStackTableModel::dropMimeData ( const QMimeData *  ,
Qt::DropAction  ,
int  ,
int  ,
const QModelIndex &   
)
override

◆ flags()

Qt::ItemFlags QmitkPythonVariableStackTableModel::flags ( const QModelIndex &  index) const
override

◆ GetVariableStack()

std::vector<mitk::PythonVariable> QmitkPythonVariableStackTableModel::GetVariableStack ( ) const

◆ headerData()

QVariant QmitkPythonVariableStackTableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

◆ mimeTypes()

QStringList QmitkPythonVariableStackTableModel::mimeTypes ( ) const
override

◆ rowCount()

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

◆ supportedDropActions()

Qt::DropActions QmitkPythonVariableStackTableModel::supportedDropActions ( ) const
override

Member Data Documentation

◆ MITK_IMAGE_VAR_NAME

const QString QmitkPythonVariableStackTableModel::MITK_IMAGE_VAR_NAME
static

Definition at line 32 of file QmitkPythonVariableStackTableModel.h.

◆ MITK_SURFACE_VAR_NAME

const QString QmitkPythonVariableStackTableModel::MITK_SURFACE_VAR_NAME
static

Definition at line 33 of file QmitkPythonVariableStackTableModel.h.


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