Slicer  4.10
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 onSceneViewDoubleClicked(int row, int column);
58 
59  void onRestoreButtonClicked();
60  void onEditButtonClicked();
61  void onDeleteButtonClicked();
62 
63  void moveDownSelected(QString mrmlId);
64  void moveUpSelected(QString mrmlId);
65 
67  void onMRMLSceneEvent(vtkObject*, vtkObject* node);
68 
70  void updateFromMRMLScene();
71 
72 protected:
73  QScopedPointer<qSlicerSceneViewsModuleWidgetPrivate> d_ptr;
74 
75  virtual void setup();
76 
77 private:
78  Q_DECLARE_PRIVATE(qSlicerSceneViewsModuleWidget);
79  Q_DISABLE_COPY(qSlicerSceneViewsModuleWidget);
80 };
81 
82 #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:138
virtual Q_INVOKABLE void enter()
virtual Q_INVOKABLE void exit()
qSlicerAbstractModuleWidget Superclass