00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00029 #ifndef __vtkScalarsToColorsItem_h
00030 #define __vtkScalarsToColorsItem_h
00031
00032 #include "vtkPlot.h"
00033
00034 class vtkCallbackCommand;
00035 class vtkImageData;
00036 class vtkPoints2D;
00037
00038 class VTK_CHARTS_EXPORT vtkScalarsToColorsItem: public vtkPlot
00039 {
00040 public:
00041 vtkTypeMacro(vtkScalarsToColorsItem, vtkPlot);
00042 virtual void PrintSelf(ostream &os, vtkIndent indent);
00043
00047 virtual void GetBounds(double bounds[4]);
00048
00052 virtual bool Paint(vtkContext2D *painter);
00053
00055
00058 vtkGetObjectMacro(PolyLinePen, vtkPen);
00060
00062
00067 vtkSetMacro(MaskAboveCurve, bool);
00068 vtkGetMacro(MaskAboveCurve, bool);
00070
00071 protected:
00072 vtkScalarsToColorsItem();
00073 virtual ~vtkScalarsToColorsItem();
00074
00078 virtual void ComputeTexture() = 0;
00079
00081
00083 virtual void ScalarsToColorsModified(vtkObject* caller, unsigned long eid, void* calldata);
00084 static void OnScalarsToColorsModified(vtkObject* caller, unsigned long eid, void *clientdata, void* calldata);
00086
00087 vtkImageData* Texture;
00088 bool Interpolate;
00089 vtkPoints2D* Shape;
00090 vtkCallbackCommand* Callback;
00091
00092 vtkPen* PolyLinePen;
00093 bool MaskAboveCurve;
00094 private:
00095 vtkScalarsToColorsItem(const vtkScalarsToColorsItem &);
00096 void operator=(const vtkScalarsToColorsItem &);
00097 };
00098
00099 #endif