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 "vtkChartsCoreModule.h" // For export macro
33 #include "vtkPlot.h"
34 
35 class vtkCallbackCommand;
36 class vtkImageData;
37 class vtkPoints2D;
38 
40 {
41 public:
43  virtual void PrintSelf(ostream &os, vtkIndent indent);
44 
47  void GetBounds(double bounds[4]);
48 
50 
53  vtkSetVector4Macro(UserBounds, double);
54  vtkGetVector4Macro(UserBounds, double)
56 
60  virtual bool Paint(vtkContext2D *painter);
61 
63 
66  vtkGetObjectMacro(PolyLinePen, vtkPen);
68 
70 
75  vtkSetMacro(MaskAboveCurve, bool);
76  vtkGetMacro(MaskAboveCurve, bool);
78 
79 protected:
81  virtual ~vtkScalarsToColorsItem();
82 
86  virtual void ComputeBounds(double* bounds);
87 
91  virtual void ComputeTexture() = 0;
92 
93  vtkGetMacro(TextureWidth, int);
94 
96 
98  virtual void ScalarsToColorsModified(vtkObject* caller, unsigned long eid, void* calldata);
99  static void OnScalarsToColorsModified(vtkObject* caller, unsigned long eid, void *clientdata, void* calldata);
101 
102  double UserBounds[4];
103 
104  int TextureWidth;
105  vtkImageData* Texture;
106  bool Interpolate;
109 
110  vtkPen* PolyLinePen;
111  bool MaskAboveCurve;
112 private:
113  vtkScalarsToColorsItem(const vtkScalarsToColorsItem &); // Not implemented.
114  void operator=(const vtkScalarsToColorsItem &); // Not implemented.
115 };
116 
117 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void GetBounds(double bounds[4])
Definition: vtkPlot.h:276
Abstract class for ScalarsToColors items.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
supports function callbacks
a simple class to control print indentation
Definition: vtkIndent.h:38
represent and manipulate 2D points
Definition: vtkPoints2D.h:35
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition: vtkPen.h:38
Abstract class for 2D plots.
Definition: vtkPlot.h:51
virtual void PrintSelf(ostream &os, vtkIndent indent)
#define VTKCHARTSCORE_EXPORT