ctkVTKRenderView_p.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 __ctkVTKRenderView_p_h
  11. #define __ctkVTKRenderView_p_h
  12. // Qt includes
  13. #include <QObject>
  14. // CTK includes
  15. #include <ctkPimpl.h>
  16. #include <ctkVTKObject.h>
  17. #include "ctkVTKRenderView.h"
  18. // VTK includes
  19. #include <QVTKWidget.h>
  20. #include <vtkAxesActor.h>
  21. #include <vtkCornerAnnotation.h>
  22. #include <vtkOrientationMarkerWidget.h>
  23. #include <vtkRenderer.h>
  24. #include <vtkRenderWindow.h>
  25. #include <vtkSmartPointer.h>
  26. #include <vtkWeakPointer.h>
  27. class vtkRenderWindowInteractor;
  28. //-----------------------------------------------------------------------------
  29. class ctkVTKRenderViewPrivate : public QObject,
  30. public ctkPrivate<ctkVTKRenderView>
  31. {
  32. Q_OBJECT
  33. CTK_DECLARE_PUBLIC(ctkVTKRenderView);
  34. public:
  35. ctkVTKRenderViewPrivate();
  36. /// Convenient setup methods
  37. void setupCornerAnnotation();
  38. void setupRendering();
  39. void setupDefaultInteractor();
  40. QVTKWidget* VTKWidget;
  41. vtkSmartPointer<vtkRenderer> Renderer;
  42. vtkSmartPointer<vtkRenderWindow> RenderWindow;
  43. bool RenderPending;
  44. vtkSmartPointer<vtkAxesActor> Axes;
  45. vtkSmartPointer<vtkOrientationMarkerWidget> Orientation;
  46. vtkSmartPointer<vtkCornerAnnotation> CornerAnnotation;
  47. vtkWeakPointer<vtkRenderWindowInteractor> CurrentInteractor;
  48. };
  49. #endif