Slicer  4.8
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 NULL 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=0)
 
QList< int > selectedMRMLTableColumnIndices () const
 
Q_INVOKABLE QSortFilterProxyModel * sortFilterProxyModel () const
 
Q_INVOKABLE qMRMLTableModeltableModel () const
 
bool transposed () const
 
virtual ~qMRMLTableView ()
 

Protected Member Functions

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

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 = 0)

◆ ~qMRMLTableView()

virtual qMRMLTableView::~qMRMLTableView ( )
virtual

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

virtual void qMRMLTableView::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

◆ 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]

virtual void qMRMLTableView::selectionChanged ( const QItemSelection &  selected,
const QItemSelection &  deselected 
)
protectedvirtual

◆ 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 NULL 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: