qSlicerWidget.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef __qSlicerWidget_h
00015 #define __qSlicerWidget_h
00016
00018 #include <qVTKObject.h>
00019
00021 #include <qCTKPimpl.h>
00022
00024 #include <QWidget>
00025
00026 #include "qSlicerBaseQTBaseExport.h"
00027
00028 class vtkSlicerApplicationLogic;
00029 class vtkMRMLScene;
00030 class QScrollArea;
00031 class qSlicerWidgetPrivate;
00032
00033 class Q_SLICER_BASE_QTBASE_EXPORT qSlicerWidget : public QWidget
00034 {
00035 Q_OBJECT
00036 QVTK_OBJECT
00037
00038 public:
00039
00040 typedef QWidget Superclass;
00041 qSlicerWidget(QWidget *parent=0, Qt::WindowFlags f=0);
00042
00045 QWidget* parentWidget();
00046
00050 void setWindowFlags(Qt::WindowFlags type);
00051
00054 bool isParentContainerScrollArea();
00055
00059 QScrollArea* getScrollAreaParentContainer();
00060 void setScrollAreaAsParentContainer(bool enable);
00061
00064 void setParentGeometry(int ax, int ay, int aw, int ah);
00065
00068 vtkMRMLScene* mrmlScene() const;
00069
00072
00073
00074
00075 public slots:
00076
00079 virtual void setParentVisible(bool visible);
00080
00083 virtual void setMRMLScene(vtkMRMLScene*);
00084
00085 signals:
00086 void mrmlSceneChanged(vtkMRMLScene*);
00087
00088 private:
00089 QCTK_DECLARE_PRIVATE(qSlicerWidget);
00090 };
00091
00092 #endif