Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLSceneViewMenu.h
Go to the documentation of this file.
00001 /*==============================================================================
00002 
00003   Program: 3D Slicer
00004 
00005   Copyright (c) Kitware Inc.
00006 
00007   See COPYRIGHT.txt
00008   or http://www.slicer.org/copyright/copyright.txt for details.
00009 
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   This file was originally developed by Jean-Christophe Fillion-Robin, Kitware Inc.
00017   and was partially funded by NIH grant 3P41RR013218-12S1
00018 
00019 ==============================================================================*/
00020 
00021 #ifndef __qMRMLSceneViewMenu_h
00022 #define __qMRMLSceneViewMenu_h
00023 
00024 // Qt includes
00025 #include <QMenu>
00026 
00027 // CTK includes
00028 #include <ctkVTKObject.h>
00029 
00030 #include "qMRMLWidgetsExport.h"
00031 
00032 class qMRMLSceneViewMenuPrivate;
00033 class vtkMRMLScene;
00034 class vtkMRMLNode;
00035 
00036 class QMRML_WIDGETS_EXPORT qMRMLSceneViewMenu : public QMenu
00037 {
00038   Q_OBJECT
00039   QVTK_OBJECT
00040   Q_PROPERTY(QString NoSceneViewText READ noSceneViewText WRITE setNoSceneViewText)
00041 public:
00043   typedef QMenu Superclass;
00044   
00046   explicit qMRMLSceneViewMenu(QWidget* newParent = 0);
00047   virtual ~qMRMLSceneViewMenu();
00048 
00050   vtkMRMLScene* mrmlScene() const;
00051 
00053   QString noSceneViewText()const;
00054   void setNoSceneViewText(const QString& newText);
00055   
00056 public slots:
00057 
00059   virtual void setMRMLScene(vtkMRMLScene* scene);
00060 
00061 signals:
00062   void mrmlSceneChanged(vtkMRMLScene*);
00063 
00064 protected:
00065   QScopedPointer<qMRMLSceneViewMenuPrivate> d_ptr;
00066 
00067 private:
00068   Q_DECLARE_PRIVATE(qMRMLSceneViewMenu);
00069   Q_DISABLE_COPY(qMRMLSceneViewMenu);
00070 
00071 };
00072 
00073 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines