Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerSceneViewsModuleWidget.h
Go to the documentation of this file.
1 #ifndef __qSlicerSceneViewsModuleWidget_h
2 #define __qSlicerSceneViewsModuleWidget_h
3 
4 // SlicerQT includes
6 #include "qSlicerSceneViewsModuleExport.h"
7 
8 // CTK includes
9 #include <ctkPimpl.h>
10 #include <ctkVTKObject.h>
11 
12 
15 class qSlicerSceneViewsModuleWidgetPrivate;
16 
17 class vtkMRMLNode;
18 
19 class QUrl;
20 
22 class Q_SLICER_QTMODULES_SCENEVIEWS_EXPORT qSlicerSceneViewsModuleWidget :
24 {
25  Q_OBJECT
26  QVTK_OBJECT
27 public:
29  qSlicerSceneViewsModuleWidget(QWidget *parent=0);
31 
33  virtual void enter();
35  virtual void exit();
36 
37  virtual bool setEditedNode(vtkMRMLNode* node, QString role = QString(), QString context = QString());
38 
39 public slots:
43  void showSceneViewDialog();
44 
46  void restoreSceneView(const QString& mrmlId);
47 
49  void editSceneView(const QString& mrmlId);
50 
53  void onMRMLSceneReset();
54 
55 protected slots:
56 
57  void moveDownSelected(QString mrmlId);
58  void moveUpSelected(QString mrmlId);
59 
61  void onMRMLSceneEvent(vtkObject*, vtkObject* node);
62 
64  void updateFromMRMLScene();
65 
66  void captureLinkClicked(const QUrl &url);
67 
71  void restoreScrollPosition(const QSize &size);
72 
73 protected:
74  QScopedPointer<qSlicerSceneViewsModuleWidgetPrivate> d_ptr;
75 
76  virtual void setup();
77 
78  void removeTemporaryFiles();
79 
80 private:
81  Q_DECLARE_PRIVATE(qSlicerSceneViewsModuleWidget);
82  Q_DISABLE_COPY(qSlicerSceneViewsModuleWidget);
83 
84  int savedScrollPosition;
85 
86 };
87 
88 #endif
virtual Q_INVOKABLE bool setEditedNode(vtkMRMLNode *node, QString role=QString(), QString context=QString())
Node editing.
QScopedPointer< qSlicerSceneViewsModuleWidgetPrivate > d_ptr
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:135
virtual Q_INVOKABLE void enter()
virtual Q_INVOKABLE void exit()
qSlicerAbstractModuleWidget Superclass