VTK
vtkColorTransferFunctionItem.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkColorTransferFunctionItem.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
16#ifndef vtkColorTransferFunctionItem_h
17#define vtkColorTransferFunctionItem_h
18
19#include "vtkChartsCoreModule.h" // For export macro
21
23class vtkImageData;
24
25// Description:
26// vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
27// vtkScalarsToColors::MaskAboveCurve have no effect here.
28class VTKCHARTSCORE_EXPORT vtkColorTransferFunctionItem: public vtkScalarsToColorsItem
29{
30public:
33 virtual void PrintSelf(ostream &os, vtkIndent indent);
34
36 vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
37
38protected:
41
42 // Description:
43 // Returns true if we are rendering in log space.
44 virtual bool UsingLogScale();
45
46
47 // Description:
48 // Reimplemented to return the range of the lookup table
49 virtual void ComputeBounds(double bounds[4]);
50
51 virtual void ComputeTexture();
53private:
55 void operator=(const vtkColorTransferFunctionItem&) VTK_DELETE_FUNCTION;
56};
57
58#endif
vtkColorTransferFunction * ColorTransferFunction
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ComputeBounds(double bounds[4])
static vtkColorTransferFunctionItem * New()
void SetColorTransferFunction(vtkColorTransferFunction *t)
virtual void ComputeTexture()
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
Defines a transfer function for mapping a property to an RGB color value.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Abstract class for ScalarsToColors items.