|
Slicer 4.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
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 Julien Finet, Kitware Inc. 00017 and was partially funded by NIH grant 3P41RR013218-12S1 00018 00019 ==============================================================================*/ 00020 00021 #ifndef __qMRMLThreeDWidget_h 00022 #define __qMRMLThreeDWidget_h 00023 00024 // Qt includes 00025 #include <QWidget> 00026 class QResizeEvent; 00027 00028 // qMRMLWidget includes 00029 #include "qMRMLWidget.h" 00030 class qMRMLThreeDViewControllerWidget; 00031 class qMRMLThreeDView; 00032 class qMRMLThreeDWidgetPrivate; 00033 00034 // MRML includes 00035 class vtkMRMLScene; 00036 class vtkMRMLViewNode; 00037 00038 class QMRML_WIDGETS_EXPORT qMRMLThreeDWidget : public qMRMLWidget 00039 { 00040 Q_OBJECT 00041 public: 00043 typedef qMRMLWidget Superclass; 00044 00046 explicit qMRMLThreeDWidget(QWidget* parent = 0); 00047 virtual ~qMRMLThreeDWidget(); 00048 00050 qMRMLThreeDViewControllerWidget* threeDController()const; 00051 00053 vtkMRMLViewNode* mrmlViewNode()const; 00054 00058 Q_INVOKABLE qMRMLThreeDView* threeDView()const; 00059 00061 void addDisplayableManager(const QString& displayableManager); 00062 00065 QString viewLabel()const; 00066 00069 void setViewLabel(const QString& newViewLabel); 00070 00071 public slots: 00073 void setMRMLViewNode(vtkMRMLViewNode* newViewNode); 00074 00075 protected: 00076 QScopedPointer<qMRMLThreeDWidgetPrivate> d_ptr; 00077 00078 private: 00079 Q_DECLARE_PRIVATE(qMRMLThreeDWidget); 00080 Q_DISABLE_COPY(qMRMLThreeDWidget); 00081 }; 00082 00083 #endif
1.7.4