VTK
vtkScalarsToColorsItem.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkScalarsToColorsItem.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
29 #ifndef __vtkScalarsToColorsItem_h
30 #define __vtkScalarsToColorsItem_h
31 
32 #include "vtkPlot.h"
33 
34 class vtkCallbackCommand;
35 class vtkImageData;
36 class vtkPoints2D;
37 
39 {
40 public:
42  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
47  virtual void GetBounds(double bounds[4]);
48 
52  virtual bool Paint(vtkContext2D *painter);
53 
55 
58  vtkGetObjectMacro(PolyLinePen, vtkPen);
60 
62 
67  vtkSetMacro(MaskAboveCurve, bool);
68  vtkGetMacro(MaskAboveCurve, bool);
70 
71 protected:
73  virtual ~vtkScalarsToColorsItem();
74 
78  virtual void ComputeTexture() = 0;
79 
81 
83  virtual void ScalarsToColorsModified(vtkObject* caller, unsigned long eid, void* calldata);
84  static void OnScalarsToColorsModified(vtkObject* caller, unsigned long eid, void *clientdata, void* calldata);
86 
91 
94 private:
95  vtkScalarsToColorsItem(const vtkScalarsToColorsItem &); // Not implemented.
96  void operator=(const vtkScalarsToColorsItem &); // Not implemented.
97 };
98 
99 #endif