Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLPlotWidget.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 __qMRMLPlotWidget_h
21 #define __qMRMLPlotWidget_h
22 
23 // Qt includes
24 #include <QWidget>
25 class QResizeEvent;
26 
27 // qMRMLWidget includes
28 #include "qMRMLWidget.h"
30 class qMRMLPlotView;
31 class qMRMLPlotWidgetPrivate;
32 
33 // MRML includes
35 class vtkMRMLColorLogic;
36 class vtkMRMLScene;
37 
44 class QMRML_WIDGETS_EXPORT qMRMLPlotWidget : public qMRMLWidget
45 {
46  Q_OBJECT
47  Q_PROPERTY(QString viewLabel READ viewLabel WRITE setViewLabel)
48 public:
51 
53  explicit qMRMLPlotWidget(QWidget* parent = 0);
54  virtual ~qMRMLPlotWidget();
55 
57  Q_INVOKABLE vtkMRMLPlotViewNode* mrmlPlotViewNode()const;
58 
62  Q_INVOKABLE qMRMLPlotView* plotView()const;
63 
67  QString viewLabel()const;
68 
72  void setViewLabel(const QString& newPlotViewLabel);
73 
75  Q_INVOKABLE void setColorLogic(vtkMRMLColorLogic* colorLogic);
76  Q_INVOKABLE vtkMRMLColorLogic* colorLogic()const;
77 
78 public slots:
80  void setMRMLPlotViewNode(vtkMRMLPlotViewNode* newPlotViewNode);
81 
82 protected:
83  QScopedPointer<qMRMLPlotWidgetPrivate> d_ptr;
84 
85 private:
86  Q_DECLARE_PRIVATE(qMRMLPlotWidget);
87  Q_DISABLE_COPY(qMRMLPlotWidget);
88 };
89 
90 #endif
MRML node to represent Plot view parameters.
qMRMLWidget Superclass
Superclass typedef.
MRML logic class for color manipulation.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
qMRMLPlotView is the display canvas for a Plot.
Definition: qMRMLPlotView.h:46
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
qMRMLPlotWidget is the toplevel Plotting widget that can be packed in a layout.
QScopedPointer< qMRMLPlotWidgetPrivate > d_ptr