Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLChartView.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 __qMRMLChartView_h
19 #define __qMRMLChartView_h
20 
21 // Qt includes
22 #include <QWebEngineView>
23 
24 #include "qMRMLWidgetsExport.h"
25 
26 class qMRMLChartViewPrivate;
27 
28 // MRML includes
30 class vtkMRMLColorLogic;
31 class vtkMRMLScene;
32 
40 class QMRML_WIDGETS_EXPORT qMRMLChartView :
41  public QWebEngineView
42 {
43  Q_OBJECT
44 public:
46  typedef QWebEngineView Superclass;
47 
49  explicit qMRMLChartView(QWidget* parent = nullptr);
50  ~qMRMLChartView() override;
51 
53  vtkMRMLScene* mrmlScene() const;
54 
56  vtkMRMLChartViewNode* mrmlChartViewNode()const;
57 
60  void setColorLogic(vtkMRMLColorLogic* colorLogic);
61 
63  vtkMRMLColorLogic* colorLogic()const;
64 
66  QSize sizeHint() const override;
67 
68 public slots:
69 
71  void setMRMLScene(vtkMRMLScene* newScene);
72 
74  void setMRMLChartViewNode(vtkMRMLChartViewNode* newChartViewNode);
75 
76 signals:
77 
80  void dataMouseOver(const char *mrmlArrayID, int pointidx, double x, double y);
81 
84  void dataPointClicked(const char *mrmlArrayID, int pointidx, double x, double y);
85 
89  void mrmlSceneChanged(vtkMRMLScene*);
90 
91 protected:
92  QScopedPointer<qMRMLChartViewPrivate> d_ptr;
93 
94 private:
95  Q_DECLARE_PRIVATE(qMRMLChartView);
96  Q_DISABLE_COPY(qMRMLChartView);
97 };
98 
99 #endif
MRML logic class for color manipulation.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:61
QWebEngineView Superclass
Superclass typedef.
MRML node to represent chart view parameters.
qMRMLChartView is the display canvas for a Chart.
QScopedPointer< qMRMLChartViewPrivate > d_ptr