#include <Libs/MRML/Widgets/qMRMLNodeAttributeTableView.h>
|
QScopedPointer< qMRMLNodeAttributeTableViewPrivate > | d_ptr |
|
◆ qMRMLNodeAttributeTableView()
qMRMLNodeAttributeTableView::qMRMLNodeAttributeTableView |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~qMRMLNodeAttributeTableView()
qMRMLNodeAttributeTableView::~qMRMLNodeAttributeTableView |
( |
| ) |
|
|
override |
◆ addAttribute
void qMRMLNodeAttributeTableView::addAttribute |
( |
| ) |
|
|
slot |
Add empty attribute row. The name of the added attribute is unique, NewAttributeName for the first added name, NewAttributeName1 if attribute NewAttributeName already exists, NewAttributeName2 if attribute NewAttributeName1 already exists, etc.
◆ attributeCount()
int qMRMLNodeAttributeTableView::attributeCount |
( |
| ) |
const |
Return number of attributes (rows) in the table.
◆ attributes()
QStringList qMRMLNodeAttributeTableView::attributes |
( |
| ) |
const |
Return lost of names of all attributes in the table.
◆ attributeValue()
QString qMRMLNodeAttributeTableView::attributeValue |
( |
const QString & |
attributeName | ) |
const |
Get value of an attribute with a given name.
◆ findAttributeNameItem()
QTableWidgetItem* qMRMLNodeAttributeTableView::findAttributeNameItem |
( |
const QString & |
attributeName | ) |
const |
|
protected |
Get table widget item of an attribute name cell containing the given attribute name.
◆ generateNewAttributeName()
QString qMRMLNodeAttributeTableView::generateNewAttributeName |
( |
| ) |
const |
|
protected |
Generate the next new attribute name that is added.
◆ inspectedNode()
vtkMRMLNode* qMRMLNodeAttributeTableView::inspectedNode |
( |
| ) |
|
Get the inspected MRML node.
◆ onAttributeChanged
void qMRMLNodeAttributeTableView::onAttributeChanged |
( |
QTableWidgetItem * |
changedItem | ) |
|
|
protectedslot |
Handles changing of text in a cell (attribute name or value)
◆ populateAttributeTable
void qMRMLNodeAttributeTableView::populateAttributeTable |
( |
| ) |
|
|
protectedslot |
Populate attribute table according to the inspected node.
◆ removeSelectedAttributes
void qMRMLNodeAttributeTableView::removeSelectedAttributes |
( |
| ) |
|
|
slot |
Remove selected attributes.
◆ renameAttribute
void qMRMLNodeAttributeTableView::renameAttribute |
( |
const QString & |
oldName, |
|
|
const QString & |
newName |
|
) |
| |
|
slot |
Rename an attribute with a given name.
◆ selectionModel()
QItemSelectionModel* qMRMLNodeAttributeTableView::selectionModel |
( |
| ) |
|
Get item selection model (for testing purposes)
◆ selectItemRange()
void qMRMLNodeAttributeTableView::selectItemRange |
( |
const int |
topRow, |
|
|
const int |
leftColumn, |
|
|
const int |
bottomRow, |
|
|
const int |
rightColumn |
|
) |
| |
Make an item range selected (for testing purposes)
◆ setAttribute
void qMRMLNodeAttributeTableView::setAttribute |
( |
const QString & |
attributeName, |
|
|
const QString & |
attributeValue |
|
) |
| |
|
slot |
Set value of an attribute with a given name.
◆ setInspectedNode()
void qMRMLNodeAttributeTableView::setInspectedNode |
( |
vtkMRMLNode * |
node | ) |
|
Set the inspected MRML node.
◆ d_ptr
QScopedPointer<qMRMLNodeAttributeTableViewPrivate> qMRMLNodeAttributeTableView::d_ptr |
|
protected |
The documentation for this class was generated from the following file: