ctkVTKSliceView_p.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*=========================================================================
  2. Library: CTK
  3. Copyright (c) Kitware Inc.
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.commontk.org/LICENSE
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =========================================================================*/
  14. #ifndef __ctkVTKSliceView_p_h
  15. #define __ctkVTKSliceView_p_h
  16. // Qt includes
  17. #include <QObject>
  18. #include <QColor>
  19. #include <QList>
  20. #include <QSharedPointer>
  21. // CTK includes
  22. #include <ctkPimpl.h>
  23. #include <ctkVTKObject.h>
  24. #include <vtkLightBoxRendererManager.h>
  25. #include "ctkVTKSliceView.h"
  26. // VTK includes
  27. #include <QVTKWidget.h>
  28. #include <vtkRenderer.h>
  29. #include <vtkRenderWindow.h>
  30. #include <vtkSmartPointer.h>
  31. #include <vtkWeakPointer.h>
  32. #include <vtkImageMapper.h>
  33. class vtkRenderWindowInteractor;
  34. //-----------------------------------------------------------------------------
  35. class ctkVTKSliceViewPrivate : public QObject
  36. {
  37. Q_OBJECT
  38. public:
  39. ctkVTKSliceViewPrivate();
  40. /// Convenient setup methods
  41. void setupCornerAnnotation();
  42. void setupRendering();
  43. void setupDefaultInteractor();
  44. QVTKWidget* VTKWidget;
  45. vtkSmartPointer<vtkRenderWindow> RenderWindow;
  46. vtkSmartPointer<vtkLightBoxRendererManager> LightBoxRendererManager;
  47. bool RenderPending;
  48. bool RenderEnabled;
  49. };
  50. #endif