Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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
27 #include "qMRMLViewControllerBar.h"
28 class qMRMLPlotViewControllerWidgetPrivate;
29 class qMRMLPlotView;
30 
31 // MRML includes
33 
39 class QMRML_WIDGETS_EXPORT qMRMLPlotViewControllerWidget
40  : public qMRMLViewControllerBar
41 {
42  Q_OBJECT
43  QVTK_OBJECT
44 
45 public:
48 
50  explicit qMRMLPlotViewControllerWidget(QWidget* parent = nullptr);
52 
54  void setViewLabel(const QString& newViewLabel);
55 
57  QString viewLabel()const;
58 
60  Q_INVOKABLE vtkMRMLPlotViewNode* mrmlPlotViewNode() const;
61 
62 public slots:
64  void setMRMLScene(vtkMRMLScene* newScene) override;
65 
67  void setPlotView(qMRMLPlotView* PlotView);
68 
71  void setMRMLPlotViewNode(vtkMRMLPlotViewNode* PlotViewNode);
72 
75  void fitPlotToAxes();
76 
78  void onExportButton();
79 
80 protected slots:
81  void updateWidgetFromMRMLView() override;
82  void updateWidgetFromMRML();
83 
84 private:
85  Q_DECLARE_PRIVATE(qMRMLPlotViewControllerWidget);
86  Q_DISABLE_COPY(qMRMLPlotViewControllerWidget);
87 };
88 
89 #endif
virtual void updateWidgetFromMRMLView()
MRML node to represent Plot view parameters.
qMRMLViewControllerBar Superclass
Superclass typedef.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
qMRMLPlotView is the display canvas for a Plot.
Definition: qMRMLPlotView.h:45
virtual void setMRMLScene(vtkMRMLScene *newScene)
Set the MRML scene associated with the widget.
Q_INVOKABLE QLabel * viewLabel()
Label that displays the view&#39;s name.