ctkVTKScalarsToColorsView.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 __ctkVTKScalarsToColorsView_h
  15. #define __ctkVTKScalarsToColorsView_h
  16. // CTK includes
  17. #include <ctkPimpl.h>
  18. #include "ctkVTKChartView.h"
  19. class ctkVTKScalarsToColorsViewPrivate;
  20. // VTK includes
  21. #include <QVTKWidget.h>
  22. class vtkColorTransferFunction;
  23. class vtkLookupTable;
  24. class vtkPiecewiseFunction;
  25. class CTK_VISUALIZATION_VTK_WIDGETS_EXPORT ctkVTKScalarsToColorsView : public ctkVTKChartView
  26. {
  27. Q_OBJECT
  28. public:
  29. ctkVTKScalarsToColorsView(QWidget* parent = 0);
  30. virtual ~ctkVTKScalarsToColorsView();
  31. vtkPlot* addLookupTable(vtkLookupTable* lut);
  32. vtkPlot* addColorTransferFunction(vtkColorTransferFunction* colorTF);
  33. vtkPlot* addOpacityFunction(vtkPiecewiseFunction* opacityTF);
  34. vtkPlot* addCompositeFunction(vtkColorTransferFunction* colorTF, vtkPiecewiseFunction* opacityTF);
  35. protected:
  36. QScopedPointer<ctkVTKScalarsToColorsViewPrivate> d_ptr;
  37. private:
  38. Q_DECLARE_PRIVATE(ctkVTKScalarsToColorsView);
  39. Q_DISABLE_COPY(ctkVTKScalarsToColorsView);
  40. };
  41. #endif