Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerTablesModuleWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright 2015 Brigham and Women's Hospital (BWH) All Rights Reserved.
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 Andras Lasso (PerkLab, Queen's
17  University) and Kevin Wang (Princess Margaret Hospital, Toronto) and was
18  supported through OCAIRO and the Applied Cancer Research Unit program of
19  Cancer Care Ontario.
20 
21 ==============================================================================*/
22 
23 #ifndef __qSlicerTransformsModuleWidget_h
24 #define __qSlicerTransformsModuleWidget_h
25 
26 // Slicer includes
28 
29 // Transforms includes
30 #include "qSlicerTablesModuleExport.h"
31 
32 class vtkMatrix4x4;
33 class vtkMRMLNode;
34 class qSlicerTablesModuleWidgetPrivate;
35 
36 class Q_SLICER_QTMODULES_TABLES_EXPORT qSlicerTablesModuleWidget :
38 {
39  Q_OBJECT
40 
41 public:
42 
44  qSlicerTablesModuleWidget(QWidget *parent=nullptr);
45  ~qSlicerTablesModuleWidget() override;
46 
47  bool setEditedNode(vtkMRMLNode* node, QString role = QString(), QString context = QString()) override;
48 
49 public slots:
51  void setCurrentTableNode(vtkMRMLNode*);
52 
53 protected:
54 
55  void setup() override;
56 
57 protected slots:
58 
59  void onMRMLTableNodeModified(vtkObject* caller);
60  void onNodeSelected(vtkMRMLNode* node);
61  void onLockTableButtonClicked();
62 
63 protected:
66  //int coordinateReference()const;
67 
68 protected:
69  QScopedPointer<qSlicerTablesModuleWidgetPrivate> d_ptr;
70 
71 private:
72  Q_DECLARE_PRIVATE(qSlicerTablesModuleWidget);
73  Q_DISABLE_COPY(qSlicerTablesModuleWidget);
74 };
75 
76 #endif
Q_INVOKABLE bool setEditedNode(vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
Node editing.
QScopedPointer< qSlicerTablesModuleWidgetPrivate > d_ptr
Convenient method to return the coordinate system currently selected
qSlicerAbstractModuleWidget Superclass
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167