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
#define VTK_CHARTS_EXPORT
abstract base class for most VTK objects
Definition: vtkObject.h:60
virtual bool Paint(vtkContext2D *painter)
virtual void GetBounds(double bounds[4])
Definition: vtkPlot.h:213
Abstract class for ScalarsToColors items.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:54
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:37
represent and manipulate 2D points
Definition: vtkPoints2D.h:34
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
vtkCallbackCommand * Callback
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition: vtkPen.h:37
Abstract class for 2D plots.
Definition: vtkPlot.h:50
virtual void PrintSelf(ostream &os, vtkIndent indent)