Slicer 5.7
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qMRMLPlotViewControllerWidget.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Kapteyn Astronomical Institute
4 University of Groningen, Groningen, Netherlands. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Davide Punzo, Kapteyn Astronomical Institute,
16 and was supported through the European Research Council grant nr. 291531.
17
18==============================================================================*/
19
20#ifndef __qMRMLPlotViewControllerWidget_h
21#define __qMRMLPlotViewControllerWidget_h
22
23// CTK includes
24#include <ctkVTKObject.h>
25
26// qMRMLWidget includes
28class qMRMLPlotViewControllerWidgetPrivate;
29class qMRMLPlotView;
30
31// MRML includes
33
39class QMRML_WIDGETS_EXPORT qMRMLPlotViewControllerWidget
41{
42 Q_OBJECT
43 QVTK_OBJECT
44
45public:
48
50 explicit qMRMLPlotViewControllerWidget(QWidget* parent = nullptr);
52
54 void setViewLabel(const QString& newViewLabel);
55
57 QString viewLabel()const;
58
61
62public slots:
64 void setMRMLScene(vtkMRMLScene* newScene) override;
65
67 void setPlotView(qMRMLPlotView* PlotView);
68
72
76
79
80protected slots:
81 void updateWidgetFromMRMLView() override;
83
84private:
85 Q_DECLARE_PRIVATE(qMRMLPlotViewControllerWidget);
86 Q_DISABLE_COPY(qMRMLPlotViewControllerWidget);
87};
88
89#endif
Q_INVOKABLE vtkMRMLPlotViewNode * mrmlPlotViewNode() const
Get PlotViewNode associated with this PlotViewController.
void setMRMLScene(vtkMRMLScene *newScene) override
Set the scene.
~qMRMLPlotViewControllerWidget() override
qMRMLViewControllerBar Superclass
Superclass typedef.
qMRMLPlotViewControllerWidget(QWidget *parent=nullptr)
Constructors.
QString viewLabel() const
Get the label for the view (abbreviation for the view name).
void setPlotView(qMRMLPlotView *PlotView)
Set the PlotView with which this controller interacts.
void onExportButton()
Save the selected plot to a file.
void setMRMLPlotViewNode(vtkMRMLPlotViewNode *PlotViewNode)
void setViewLabel(const QString &newViewLabel)
Set the label for the Plot view (abbreviation for the view name).
void updateWidgetFromMRMLView() override
qMRMLPlotView is the display canvas for a Plot.
MRML node to represent Plot view parameters.
A set of MRML Nodes that supports serialization and undo/redo.