Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLChartWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright 2005 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 ==============================================================================*/
17 
18 #ifndef __qMRMLChartWidget_h
19 #define __qMRMLChartWidget_h
20 
21 // Qt includes
22 #include <QWidget>
23 class QResizeEvent;
24 
25 // qMRMLWidget includes
26 #include "qMRMLWidget.h"
28 class qMRMLChartView;
29 class qMRMLChartWidgetPrivate;
30 
31 // MRML includes
33 class vtkMRMLColorLogic;
34 class vtkMRMLScene;
35 
42 class QMRML_WIDGETS_EXPORT qMRMLChartWidget : public qMRMLWidget
43 {
44  Q_OBJECT
45 public:
48 
50  explicit qMRMLChartWidget(QWidget* parent = 0);
51  virtual ~qMRMLChartWidget();
52 
54  vtkMRMLChartViewNode* mrmlChartViewNode()const;
55 
59  Q_INVOKABLE qMRMLChartView* chartView()const;
60 
64  QString viewLabel()const;
65 
69  void setViewLabel(const QString& newChartViewLabel);
70 
72  void setColorLogic(vtkMRMLColorLogic* colorLogic);
73  vtkMRMLColorLogic* colorLogic()const;
74 
75 public slots:
77  void setMRMLChartViewNode(vtkMRMLChartViewNode* newChartViewNode);
78 
79 protected slots:
80  void onAppAboutToQuit();
81 
82 protected:
83  QScopedPointer<qMRMLChartWidgetPrivate> d_ptr;
84 
85 private:
86  Q_DECLARE_PRIVATE(qMRMLChartWidget);
87  Q_DISABLE_COPY(qMRMLChartWidget);
88 };
89 
90 #endif
qMRMLChartWidget is the toplevel charting widget that can be packed in a layout.
qMRMLWidget Superclass
Superclass typedef.
MRML logic class for color manipulation.
QScopedPointer< qMRMLChartWidgetPrivate > d_ptr
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
MRML node to represent chart view parameters.
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
qMRMLChartView is the display canvas for a Chart.