Slicer  5.1
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
[legend]
Collaboration diagram for qMRMLTableView:
Collaboration graph
[legend]

Properties

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)
 

Signals

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
readwrite

Definition at line 47 of file qMRMLTableView.h.

◆ firstRowLocked

bool qMRMLTableView::firstRowLocked
readwrite

Definition at line 46 of file qMRMLTableView.h.

◆ transposed

bool qMRMLTableView::transposed
readwrite

Definition at line 45 of file qMRMLTableView.h.

Constructor & Destructor Documentation

◆ qMRMLTableView()

qMRMLTableView::qMRMLTableView ( QWidget *  parent = nullptr)

◆ ~qMRMLTableView()

qMRMLTableView::~qMRMLTableView ( )
override

Member Function Documentation

◆ copySelection

void qMRMLTableView::copySelection ( )
slot

◆ deleteColumn

void qMRMLTableView::deleteColumn ( )
slot

◆ deleteRow

void qMRMLTableView::deleteRow ( )
slot

◆ firstColumnLocked()

bool qMRMLTableView::firstColumnLocked ( ) const

◆ firstRowLocked()

bool qMRMLTableView::firstRowLocked ( ) const

◆ insertColumn

void qMRMLTableView::insertColumn ( )
slot

◆ insertRow

void qMRMLTableView::insertRow ( )
slot

◆ keyPressEvent()

void qMRMLTableView::keyPressEvent ( QKeyEvent *  event)
overrideprotected

◆ mrmlScene()

Q_INVOKABLE vtkMRMLScene* qMRMLTableView::mrmlScene ( ) const

Return a pointer on the current MRML scene.

◆ mrmlSceneChanged

void qMRMLTableView::mrmlSceneChanged ( vtkMRMLScene )
signal

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 ( )
slot

◆ plotSelection

void qMRMLTableView::plotSelection ( )
slot

◆ selectedMRMLTableColumnIndices()

QList<int> qMRMLTableView::selectedMRMLTableColumnIndices ( ) const

◆ selectionChanged [1/2]

void qMRMLTableView::selectionChanged ( )
signal

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 
)
overrideprotected

◆ setFirstColumnLocked

void qMRMLTableView::setFirstColumnLocked ( bool  locked)
slot

◆ setFirstRowLocked

void qMRMLTableView::setFirstRowLocked ( bool  locked)
slot

◆ setMRMLScene

void qMRMLTableView::setMRMLScene ( vtkMRMLScene newScene)
slot

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)
slot

◆ setMRMLTableNode [2/2]

void qMRMLTableView::setMRMLTableNode ( vtkMRMLNode tableNode)
slot

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

◆ setMRMLTableViewNode

void qMRMLTableView::setMRMLTableViewNode ( vtkMRMLTableViewNode newTableViewNode)
slot

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

◆ setTransposed

void qMRMLTableView::setTransposed ( bool  transposed)
slot

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
protected

Definition at line 113 of file qMRMLTableView.h.


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