ctkVTKAbstractMatrixWidget_p.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. All rights reserved.
  5. Distributed under a BSD License. See LICENSE.txt file.
  6. This software is distributed "AS IS" WITHOUT ANY WARRANTY; without even
  7. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the above copyright notice for more information.
  9. =========================================================================*/
  10. #ifndef __ctkVTKAbstractMatrixWidget_p_h
  11. #define __ctkVTKAbstractMatrixWidget_p_h
  12. // Qt includes
  13. #include <QObject>
  14. // CTK includes
  15. #include <ctkPimpl.h>
  16. #include "ctkVTKAbstractMatrixWidget.h"
  17. // VTK includes
  18. #include <vtkWeakPointer.h>
  19. class vtkMatrix4x4;
  20. class ctkVTKAbstractMatrixWidgetPrivate: public QObject,
  21. public ctkPrivate<ctkVTKAbstractMatrixWidget>
  22. {
  23. Q_OBJECT
  24. QVTK_OBJECT
  25. public:
  26. ctkVTKAbstractMatrixWidgetPrivate();
  27. void init();
  28. void setMatrix(vtkMatrix4x4* matrix);
  29. vtkMatrix4x4* matrix()const;
  30. public slots:
  31. ///
  32. /// Triggered upon VTK transform modified event
  33. void updateMatrix();
  34. protected:
  35. vtkWeakPointer<vtkMatrix4x4> Matrix;
  36. };
  37. #endif