Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
26class qMRMLExpandingWebViewPrivate;
27
28// MRML includes
29class vtkMRMLScene;
30
34class QMRML_WIDGETS_EXPORT qMRMLExpandingWebView :
35 public QWebEngineView
36{
37 Q_OBJECT
38public:
40 typedef QWebEngineView Superclass;
41
43 explicit qMRMLExpandingWebView(QWidget* parent = nullptr);
45
48
49 // Redefine the sizeHint so layouts work properly.
50 QSize sizeHint() const override;
51
52public slots:
53
55 void setMRMLScene(vtkMRMLScene* newScene);
56
58 virtual void updateWidgetFromMRML();
59
60signals:
61
66
67protected:
68 QScopedPointer<qMRMLExpandingWebViewPrivate> d_ptr;
69
70private:
71 Q_DECLARE_PRIVATE(qMRMLExpandingWebView);
72 Q_DISABLE_COPY(qMRMLExpandingWebView);
73};
74
75#endif
QWebEngineView Superclass
Superclass typedef.
~qMRMLExpandingWebView() override
void mrmlSceneChanged(vtkMRMLScene *)
void setMRMLScene(vtkMRMLScene *newScene)
Set the MRML scene that should be listened for events.
virtual void updateWidgetFromMRML()
subclasses reimplement this to handle updates in the mrml scene
QScopedPointer< qMRMLExpandingWebViewPrivate > d_ptr
qMRMLExpandingWebView(QWidget *parent=nullptr)
Constructors.
QSize sizeHint() const override
vtkMRMLScene * mrmlScene() const
Return a pointer on the current MRML scene.
A set of MRML Nodes that supports serialization and undo/redo.