Slicer  4.8
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 = 0);
55 
58  void setViewLabel(const QString& newViewLabel);
59 
61  QString viewLabel()const;
62 
63 public slots:
65  virtual void setMRMLScene(vtkMRMLScene* newScene);
66 
68  void setTableView(qMRMLTableView* TableView);
69 
72  void setMRMLTableViewNode(vtkMRMLTableViewNode* tableViewNode);
73 
74 protected slots:
75  void updateWidgetFromMRML();
76 
77 private:
78  Q_DECLARE_PRIVATE(qMRMLTableViewControllerWidget);
79  Q_DISABLE_COPY(qMRMLTableViewControllerWidget);
80 };
81 
82 #endif
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
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.