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
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
31class qMRMLTableViewControllerWidgetPrivate;
32class qMRMLTableView;
33
34// MRML includes
36
42class QMRML_WIDGETS_EXPORT qMRMLTableViewControllerWidget
44{
45 Q_OBJECT
46 QVTK_OBJECT
47
48public:
51
53 explicit qMRMLTableViewControllerWidget(QWidget* parent = nullptr);
55
57 void setViewLabel(const QString& newViewLabel);
58
60 QString viewLabel()const;
61
64
65public slots:
67 void setMRMLScene(vtkMRMLScene* newScene) override;
68
70 void setTableView(qMRMLTableView* TableView);
71
75
76protected slots:
77 void updateWidgetFromMRMLView() override;
79
80private:
81 Q_DECLARE_PRIVATE(qMRMLTableViewControllerWidget);
82 Q_DISABLE_COPY(qMRMLTableViewControllerWidget);
83};
84
85#endif
~qMRMLTableViewControllerWidget() override
void setMRMLTableViewNode(vtkMRMLTableViewNode *tableViewNode)
QString viewLabel() const
Get the label for the view (abbreviation for the view name)
void setMRMLScene(vtkMRMLScene *newScene) override
Set the scene.
qMRMLTableViewControllerWidget(QWidget *parent=nullptr)
Constructors.
Q_INVOKABLE vtkMRMLTableViewNode * mrmlTableViewNode() const
Get ChartViewNode associated with this ChartViewController.
void setTableView(qMRMLTableView *TableView)
Set the TableView with which this controller interacts.
qMRMLViewControllerBar Superclass
Superclass typedef.
void setViewLabel(const QString &newViewLabel)
Set the label for the table view (abbreviation for the view name)
void updateWidgetFromMRMLView() override
Spreadsheet view for table nodes. Allow view/edit of a vtkMRMLTableNode.
qMRMLViewControllerBar(QWidget *parent=nullptr)
Constructors.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent table view parameters.