Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLThreeDWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
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  This file was originally developed by Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __qMRMLThreeDWidget_h
22 #define __qMRMLThreeDWidget_h
23 
24 // Qt includes
25 #include <QWidget>
26 class QResizeEvent;
27 
28 // qMRMLWidget includes
29 #include "qMRMLWidget.h"
31 class qMRMLThreeDView;
32 class qMRMLThreeDWidgetPrivate;
33 
34 // MRML includes
35 class vtkMRMLScene;
36 class vtkMRMLViewNode;
37 
38 // VTK includes
39 class vtkCollection;
40 
41 class QMRML_WIDGETS_EXPORT qMRMLThreeDWidget : public qMRMLWidget
42 {
43  Q_OBJECT
44 public:
47 
49  explicit qMRMLThreeDWidget(QWidget* parent = 0);
50  virtual ~qMRMLThreeDWidget();
51 
53  Q_INVOKABLE qMRMLThreeDViewControllerWidget* threeDController()const;
54 
56  Q_INVOKABLE vtkMRMLViewNode* mrmlViewNode()const;
57 
61  Q_INVOKABLE qMRMLThreeDView* threeDView()const;
62 
64  Q_INVOKABLE void addDisplayableManager(const QString& displayableManager);
65  Q_INVOKABLE void getDisplayableManagers(vtkCollection *displayableManagers);
66 
69  Q_INVOKABLE QString viewLabel()const;
70 
73  Q_INVOKABLE void setViewLabel(const QString& newViewLabel);
74 
76  Q_INVOKABLE void setQuadBufferStereoSupportEnabled(bool value);
77 
78 public slots:
80  void setMRMLViewNode(vtkMRMLViewNode* newViewNode);
81 
82 protected:
83  QScopedPointer<qMRMLThreeDWidgetPrivate> d_ptr;
84 
85 private:
86  Q_DECLARE_PRIVATE(qMRMLThreeDWidget);
87  Q_DISABLE_COPY(qMRMLThreeDWidget);
88 };
89 
90 #endif
QScopedPointer< qMRMLThreeDWidgetPrivate > d_ptr
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
qMRMLWidget Superclass
Superclass typedef.
3D view for view nodes. For performance reasons, the view block refreshs when the scene is in batch p...
MRML node to represent a 3D view.