#include <Libs/MRML/Widgets/qMRMLTableModel.h>
|
static void | onMRMLNodeEvent (vtkObject *vtk_obj, unsigned long event, void *client_data, void *call_data) |
|
|
QScopedPointer< qMRMLTableModelPrivate > | d_ptr |
|
Definition at line 43 of file qMRMLTableModel.h.
◆ Superclass
◆ ItemDataRole
◆ transposed
bool qMRMLTableModel::transposed |
|
readwrite |
◆ qMRMLTableModel() [1/2]
qMRMLTableModel::qMRMLTableModel |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~qMRMLTableModel()
qMRMLTableModel::~qMRMLTableModel |
( |
| ) |
|
|
override |
◆ qMRMLTableModel() [2/2]
qMRMLTableModel::qMRMLTableModel |
( |
qMRMLTableModelPrivate * |
pimpl, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
protected |
◆ mrmlTableColumnIndex()
int qMRMLTableModel::mrmlTableColumnIndex |
( |
QModelIndex |
modelIndex | ) |
const |
Get MRML table index from model index.
◆ mrmlTableNode()
◆ mrmlTableRowIndex()
int qMRMLTableModel::mrmlTableRowIndex |
( |
QModelIndex |
modelIndex | ) |
const |
Get MRML table index from model index.
◆ onItemChanged
void qMRMLTableModel::onItemChanged |
( |
QStandardItem * |
item | ) |
|
|
protectedslot |
◆ onMRMLNodeEvent()
static void qMRMLTableModel::onMRMLNodeEvent |
( |
vtkObject * |
vtk_obj, |
|
|
unsigned long |
event, |
|
|
void * |
client_data, |
|
|
void * |
call_data |
|
) |
| |
|
staticprotected |
◆ onMRMLTableNodeModified
void qMRMLTableModel::onMRMLTableNodeModified |
( |
vtkObject * |
node | ) |
|
|
protectedslot |
◆ removeSelectionFromMRML()
int qMRMLTableModel::removeSelectionFromMRML |
( |
QModelIndexList |
selection, |
|
|
bool |
removeModelRow |
|
) |
| |
Delete entire row or column from the MRML table that contains item in the selection. Returns the number of deleted rows or columns. If removeModelRow is true then entire model rows are deleted, otherwise entire model columns are deleted.
◆ setMRMLTableNode()
◆ setTransposed()
void qMRMLTableModel::setTransposed |
( |
bool |
transposed | ) |
|
Set/Get transposed flag If transposed is true then columns of the MRML table are added as rows in the model.
◆ transposed()
bool qMRMLTableModel::transposed |
( |
| ) |
const |
◆ updateModelFromMRML()
void qMRMLTableModel::updateModelFromMRML |
( |
| ) |
|
Update the entire table from the MRML node.
◆ updateMRMLFromModel()
void qMRMLTableModel::updateMRMLFromModel |
( |
QStandardItem * |
item | ) |
|
Return the VTK table cell associated to the node index.
◆ d_ptr
QScopedPointer<qMRMLTableModelPrivate> qMRMLTableModel::d_ptr |
|
protected |
The documentation for this class was generated from the following file: