Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLTableViewControllerWidget.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 __qMRMLTableViewControllerWidget_h
24 #define __qMRMLTableViewControllerWidget_h
25 
26 // CTK includes
27 #include <ctkVTKObject.h>
28 
29 // qMRMLWidget includes
30 #include "qMRMLViewControllerBar.h"
31 class qMRMLTableViewControllerWidgetPrivate;
32 class qMRMLTableView;
33 
34 // MRML includes
36 
42 class QMRML_WIDGETS_EXPORT qMRMLTableViewControllerWidget
43  : public qMRMLViewControllerBar
44 {
45  Q_OBJECT
46  QVTK_OBJECT
47 
48 public:
51 
53  explicit qMRMLTableViewControllerWidget(QWidget* parent = nullptr);
55 
57  void setViewLabel(const QString& newViewLabel);
58 
60  QString viewLabel()const;
61 
63  Q_INVOKABLE vtkMRMLTableViewNode* mrmlTableViewNode() const;
64 
65 public slots:
67  void setMRMLScene(vtkMRMLScene* newScene) override;
68 
70  void setTableView(qMRMLTableView* TableView);
71 
74  void setMRMLTableViewNode(vtkMRMLTableViewNode* tableViewNode);
75 
76 protected slots:
77  void updateWidgetFromMRMLView() override;
78  void updateWidgetFromMRML();
79 
80 private:
81  Q_DECLARE_PRIVATE(qMRMLTableViewControllerWidget);
82  Q_DISABLE_COPY(qMRMLTableViewControllerWidget);
83 };
84 
85 #endif
virtual void updateWidgetFromMRMLView()
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
qMRMLViewControllerBar Superclass
Superclass typedef.
MRML node to represent table view parameters.
virtual void setMRMLScene(vtkMRMLScene *newScene)
Set the MRML scene associated with the widget.
Spreadsheet view for table nodes. Allow view/edit of a vtkMRMLTableNode.
Q_INVOKABLE QLabel * viewLabel()
Label that displays the view&#39;s name.