Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLExpandingWebView.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 __qMRMLExpandingWebView_h
19 #define __qMRMLExpandingWebView_h
20 
21 // Qt includes
22 #include <QWebEngineView>
23 
24 #include "qMRMLWidgetsExport.h"
25 
26 class qMRMLExpandingWebViewPrivate;
27 
28 // MRML includes
29 class vtkMRMLScene;
30 
34 class QMRML_WIDGETS_EXPORT qMRMLExpandingWebView :
35  public QWebEngineView
36 {
37  Q_OBJECT
38 public:
40  typedef QWebEngineView Superclass;
41 
43  explicit qMRMLExpandingWebView(QWidget* parent = nullptr);
44  ~qMRMLExpandingWebView() override;
45 
47  vtkMRMLScene* mrmlScene() const;
48 
49  // Redefine the sizeHint so layouts work properly.
50  QSize sizeHint() const override;
51 
52 public slots:
53 
55  void setMRMLScene(vtkMRMLScene* newScene);
56 
58  virtual void updateWidgetFromMRML();
59 
60 signals:
61 
65  void mrmlSceneChanged(vtkMRMLScene*);
66 
67 protected:
68  QScopedPointer<qMRMLExpandingWebViewPrivate> d_ptr;
69 
70 private:
71  Q_DECLARE_PRIVATE(qMRMLExpandingWebView);
72  Q_DISABLE_COPY(qMRMLExpandingWebView);
73 };
74 
75 #endif
QWebEngineView Superclass
Superclass typedef.
QScopedPointer< qMRMLExpandingWebViewPrivate > d_ptr
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
qMRMLExpandingWebView is the display canvas for some or all of a MRML scene.