Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Properties | Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes
qMRMLTableView Class Reference

Spreadsheet view for table nodes. Allow view/edit of a vtkMRMLTableNode. More...

#include <Libs/MRML/Widgets/qMRMLTableView.h>

Inheritance diagram for qMRMLTableView:
Inheritance graph
Collaboration diagram for qMRMLTableView:
Collaboration graph


bool firstColumnLocked
bool firstRowLocked
bool transposed

Public Slots

void copySelection ()
void deleteColumn ()
void deleteRow ()
void insertColumn ()
void insertRow ()
void pasteSelection ()
void plotSelection ()
void setFirstColumnLocked (bool locked)
void setFirstRowLocked (bool locked)
void setMRMLScene (vtkMRMLScene *newScene)
void setMRMLTableNode (vtkMRMLTableNode *tableNode)
void setMRMLTableNode (vtkMRMLNode *tableNode)
 Utility function to simply connect signals/slots with Qt Designer. More...
void setMRMLTableViewNode (vtkMRMLTableViewNode *newTableViewNode)
 Set the current viewNode to observe. If nullptr then view properties are not stored in the scene. More...
void setTransposed (bool transposed)


void mrmlSceneChanged (vtkMRMLScene *)
void selectionChanged ()
 Emitted when a different table node is selected or different cells are selected. More...

Public Member Functions

bool firstColumnLocked () const
bool firstRowLocked () const
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
Q_INVOKABLE vtkMRMLTableNodemrmlTableNode () const
Q_INVOKABLE vtkMRMLTableViewNodemrmlTableViewNode () const
 Get the TableView node observed by view. More...
 qMRMLTableView (QWidget *parent=nullptr)
QList< int > selectedMRMLTableColumnIndices () const
Q_INVOKABLE QSortFilterProxyModel * sortFilterProxyModel () const
Q_INVOKABLE qMRMLTableModeltableModel () const
bool transposed () const
 ~qMRMLTableView () override

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override
void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override

Protected Attributes

QScopedPointer< qMRMLTableViewPrivate > d_ptr

Detailed Description

Spreadsheet view for table nodes. Allow view/edit of a vtkMRMLTableNode.

Definition at line 42 of file qMRMLTableView.h.

Property Documentation

◆ firstColumnLocked

bool qMRMLTableView::firstColumnLocked

Definition at line 47 of file qMRMLTableView.h.

◆ firstRowLocked

bool qMRMLTableView::firstRowLocked

Definition at line 46 of file qMRMLTableView.h.

◆ transposed

bool qMRMLTableView::transposed

Definition at line 45 of file qMRMLTableView.h.

Constructor & Destructor Documentation

◆ qMRMLTableView()

qMRMLTableView::qMRMLTableView ( QWidget *  parent = nullptr)

◆ ~qMRMLTableView()

qMRMLTableView::~qMRMLTableView ( )

Member Function Documentation

◆ copySelection

void qMRMLTableView::copySelection ( )

◆ deleteColumn

void qMRMLTableView::deleteColumn ( )

◆ deleteRow

void qMRMLTableView::deleteRow ( )

◆ firstColumnLocked()

bool qMRMLTableView::firstColumnLocked ( ) const

◆ firstRowLocked()

bool qMRMLTableView::firstRowLocked ( ) const

◆ insertColumn

void qMRMLTableView::insertColumn ( )

◆ insertRow

void qMRMLTableView::insertRow ( )

◆ keyPressEvent()

void qMRMLTableView::keyPressEvent ( QKeyEvent *  event)

◆ mrmlScene()

Q_INVOKABLE vtkMRMLScene* qMRMLTableView::mrmlScene ( ) const

Return a pointer on the current MRML scene.

◆ mrmlSceneChanged

void qMRMLTableView::mrmlSceneChanged ( vtkMRMLScene )

When designing custom qMRMLWidget in the designer, you can connect the mrmlSceneChanged signal directly to the aggregated MRML widgets that have a setMRMLScene slot.

◆ mrmlTableNode()

Q_INVOKABLE vtkMRMLTableNode* qMRMLTableView::mrmlTableNode ( ) const

◆ mrmlTableViewNode()

Q_INVOKABLE vtkMRMLTableViewNode* qMRMLTableView::mrmlTableViewNode ( ) const

Get the TableView node observed by view.

◆ pasteSelection

void qMRMLTableView::pasteSelection ( )

◆ plotSelection

void qMRMLTableView::plotSelection ( )

◆ selectedMRMLTableColumnIndices()

QList<int> qMRMLTableView::selectedMRMLTableColumnIndices ( ) const

◆ selectionChanged [1/2]

void qMRMLTableView::selectionChanged ( )

Emitted when a different table node is selected or different cells are selected.

◆ selectionChanged() [2/2]

void qMRMLTableView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 

◆ setFirstColumnLocked

void qMRMLTableView::setFirstColumnLocked ( bool  locked)

◆ setFirstRowLocked

void qMRMLTableView::setFirstRowLocked ( bool  locked)

◆ setMRMLScene

void qMRMLTableView::setMRMLScene ( vtkMRMLScene newScene)

Set the MRML scene that should be listened for events. If scene is set then MRMLTableViewNode has to be set, too. If scene is set then scene has to be set before MRMLTableNode is set.

◆ setMRMLTableNode [1/2]

void qMRMLTableView::setMRMLTableNode ( vtkMRMLTableNode tableNode)

◆ setMRMLTableNode [2/2]

void qMRMLTableView::setMRMLTableNode ( vtkMRMLNode tableNode)

Utility function to simply connect signals/slots with Qt Designer.

◆ setMRMLTableViewNode

void qMRMLTableView::setMRMLTableViewNode ( vtkMRMLTableViewNode newTableViewNode)

Set the current viewNode to observe. If nullptr then view properties are not stored in the scene.

◆ setTransposed

void qMRMLTableView::setTransposed ( bool  transposed)

Set transposed flag. If transposed is true then columns of the MRML table are added as rows in the model. This affects only this particular view, the settings is not stored in MRML.

◆ sortFilterProxyModel()

Q_INVOKABLE QSortFilterProxyModel* qMRMLTableView::sortFilterProxyModel ( ) const

◆ tableModel()

Q_INVOKABLE qMRMLTableModel* qMRMLTableView::tableModel ( ) const

◆ transposed()

bool qMRMLTableView::transposed ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLTableViewPrivate> qMRMLTableView::d_ptr

Definition at line 113 of file qMRMLTableView.h.

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