Slicer  5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLNavigationView.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 __qMRMLNavigationView_h
22 #define __qMRMLNavigationView_h
23 
24 // CTK includes
25 #include <ctkVTKObject.h>
26 #include <ctkVTKThumbnailView.h>
27 
28 #include "qMRMLWidgetsExport.h"
29 
30 class qMRMLNavigationViewPrivate;
31 class vtkMRMLScene;
32 class vtkMRMLViewNode;
33 
38 class QMRML_WIDGETS_EXPORT qMRMLNavigationView : public ctkVTKThumbnailView
39 {
40  Q_OBJECT
41  QVTK_OBJECT
42 
43 public:
45  typedef ctkVTKThumbnailView Superclass;
46 
48  explicit qMRMLNavigationView(QWidget* parent = nullptr);
49  ~qMRMLNavigationView() override;
50 
51 public slots:
52 
54  void setMRMLScene(vtkMRMLScene* newScene);
55 
57  void setMRMLViewNode(vtkMRMLViewNode* newViewNode);
58  vtkMRMLViewNode* mrmlViewNode()const;
59 
60 protected slots:
61  void updateFromMRMLViewNode();
62  void updateFromMRMLScene();
63 
64 protected:
65  QScopedPointer<qMRMLNavigationViewPrivate> d_ptr;
66 
67 private:
68  Q_DECLARE_PRIVATE(qMRMLNavigationView);
69  Q_DISABLE_COPY(qMRMLNavigationView);
70 };
71 
72 #endif
QScopedPointer< qMRMLNavigationViewPrivate > d_ptr
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
MRML node to represent a 3D view.
ctkVTKThumbnailView Superclass
Superclass typedef.