qMRMLMatrixWidget.h

Go to the documentation of this file.
00001 #ifndef __qMRMLMatrixWidget_h
00002 #define __qMRMLMatrixWidget_h
00003 
00005 #include <qVTKObject.h>
00006 #include <qVTKAbstractMatrixWidget.h>
00007 
00009 #include <qCTKPimpl.h>
00010 
00011 #include "qMRMLWidgetsExport.h"
00012  
00013 class vtkMRMLNode; 
00014 class vtkMRMLLinearTransformNode; 
00015 class vtkMatrix4x4;
00016 class qMRMLMatrixWidgetPrivate;
00017 
00018 class QMRML_WIDGETS_EXPORT qMRMLMatrixWidget : public qVTKAbstractMatrixWidget
00019 {
00020   Q_OBJECT
00021   QVTK_OBJECT
00022   Q_PROPERTY(CoordinateReferenceType CoordinateReference READ coordinateReference WRITE setCoordinateReference)
00023   Q_ENUMS(CoordinateReferenceType)
00024   
00025 public:
00026   
00028   typedef qVTKAbstractMatrixWidget Superclass;
00029   explicit qMRMLMatrixWidget(QWidget* parent);
00030   virtual ~qMRMLMatrixWidget(){}
00031   
00035   enum CoordinateReferenceType { GLOBAL, LOCAL };
00036   void setCoordinateReference(CoordinateReferenceType coordinateReference);
00037   CoordinateReferenceType coordinateReference() const;
00038 
00039   vtkMRMLLinearTransformNode* mrmlTransformNode()const;
00040 public slots:
00043   void setMRMLTransformNode(vtkMRMLLinearTransformNode* transformNode); 
00044   void setMRMLTransformNode(vtkMRMLNode* node); 
00045   
00046 protected slots:
00049   void updateMatrix();
00050 
00051 private:
00052   QCTK_DECLARE_PRIVATE(qMRMLMatrixWidget);
00053 }; 
00054 
00055 #endif

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1