Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qMRMLNodeAttributeTableWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 This file was originally developed by Csaba Pinter, PerkLab, Queen's University
17 and was supported through the Applied Cancer Research Unit program of Cancer Care
18 Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
19
20==============================================================================*/
21
22#ifndef __qMRMLNodeAttributeTableWidget_h
23#define __qMRMLNodeAttributeTableWidget_h
24
25// Qt includes
26#include <QWidget>
27
28// MRMLWidgets includes
29#include "qMRMLWidgetsExport.h"
30
31// CTK includes
32#include <ctkPimpl.h>
33#include <ctkVTKObject.h>
34
35class vtkMRMLNode;
36class qMRMLNodeAttributeTableWidgetPrivate;
38
39class QMRML_WIDGETS_EXPORT qMRMLNodeAttributeTableWidget : public QWidget
40{
41 Q_OBJECT
42 QVTK_OBJECT
43
44public:
46 explicit qMRMLNodeAttributeTableWidget(QWidget* parent = nullptr);
48
51
54
55public slots:
58
61
62protected:
63 void showEvent(QShowEvent *) override;
64
65 QScopedPointer<qMRMLNodeAttributeTableWidgetPrivate> d_ptr;
66
67private:
68 Q_DECLARE_PRIVATE(qMRMLNodeAttributeTableWidget);
69 Q_DISABLE_COPY(qMRMLNodeAttributeTableWidget);
70};
71
72#endif
vtkMRMLNode * mrmlNode() const
Get the inspected MRML node.
qMRMLNodeAttributeTableWidget(QWidget *parent=nullptr)
Constructors.
~qMRMLNodeAttributeTableWidget() override
void setMRMLNode(vtkMRMLNode *node)
Set the inspected MRML node.
QScopedPointer< qMRMLNodeAttributeTableWidgetPrivate > d_ptr
qMRMLNodeAttributeTableView * tableView()
Get node attribute table view.
void showEvent(QShowEvent *) override
void updateWidgetFromMRML()
Refreshes the widget contents (useful for keeping displayed contents up-to-date without invoking node...
Abstract Superclass for all specific types of MRML nodes.