VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPiecewiseFunctionItem.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00016 #ifndef __vtkPiecewiseFunctionItem_h 00017 #define __vtkPiecewiseFunctionItem_h 00018 00019 #include "vtkChartsCoreModule.h" // For export macro 00020 #include "vtkScalarsToColorsItem.h" 00021 00022 class vtkPiecewiseFunction; 00023 class vtkImageData; 00024 00026 class VTKCHARTSCORE_EXPORT vtkPiecewiseFunctionItem: public vtkScalarsToColorsItem 00027 { 00028 public: 00029 static vtkPiecewiseFunctionItem* New(); 00030 vtkTypeMacro(vtkPiecewiseFunctionItem, vtkScalarsToColorsItem); 00031 virtual void PrintSelf(ostream &os, vtkIndent indent); 00032 00033 void SetPiecewiseFunction(vtkPiecewiseFunction* t); 00034 vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction); 00035 00036 protected: 00037 vtkPiecewiseFunctionItem(); 00038 virtual ~vtkPiecewiseFunctionItem(); 00039 00040 // Description: 00041 // Reimplemented to return the range of the piecewise function 00042 virtual void ComputeBounds(double bounds[4]); 00043 00044 // Description 00045 // Compute the texture from the PiecewiseFunction 00046 virtual void ComputeTexture(); 00047 00048 vtkPiecewiseFunction* PiecewiseFunction; 00049 00050 private: 00051 vtkPiecewiseFunctionItem(const vtkPiecewiseFunctionItem &); // Not implemented. 00052 void operator=(const vtkPiecewiseFunctionItem &); // Not implemented. 00053 }; 00054 00055 #endif