|
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 __qMRMLModelInfoWidget_h 00022 #define __qMRMLModelInfoWidget_h 00023 00024 // Qt includes 00025 #include <QWidget> 00026 00027 // CTK includes 00028 #include <ctkVTKObject.h> 00029 00030 // qMRML includes 00031 #include "qMRMLWidgetsExport.h" 00032 00033 class qMRMLModelInfoWidgetPrivate; 00034 class vtkMRMLNode; 00035 class vtkMRMLModelNode; 00036 00037 class QMRML_WIDGETS_EXPORT qMRMLModelInfoWidget 00038 : public QWidget 00039 { 00040 Q_OBJECT 00041 QVTK_OBJECT 00042 00043 public: 00044 qMRMLModelInfoWidget(QWidget *parent=0); 00045 virtual ~qMRMLModelInfoWidget(); 00046 00047 vtkMRMLModelNode* mrmlModelNode()const; 00048 00049 public slots: 00051 void setMRMLModelNode(vtkMRMLNode *node); 00053 void setMRMLModelNode(vtkMRMLModelNode *node); 00054 00055 protected slots: 00056 void updateWidgetFromMRML(); 00057 00058 protected: 00059 QScopedPointer<qMRMLModelInfoWidgetPrivate> d_ptr; 00060 00061 private: 00062 Q_DECLARE_PRIVATE(qMRMLModelInfoWidget); 00063 Q_DISABLE_COPY(qMRMLModelInfoWidget); 00064 }; 00065 00066 #endif
1.7.4