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
20 #include "vtkScalarsToColorsItem.h"
21 
23 class vtkImageData;
24 
25 // Description:
26 // vtkPlot::Color, vtkPlot::Brush, vtkScalarsToColors::DrawPolyLine,
27 // vtkScalarsToColors::MaskAboveCurve have no effect here.
28 class VTKCHARTSCORE_EXPORT vtkColorTransferFunctionItem: public vtkScalarsToColorsItem
29 {
30 public:
33  void PrintSelf(ostream &os, vtkIndent indent) override;
34 
36  vtkGetObjectMacro(ColorTransferFunction, vtkColorTransferFunction);
37 
38 protected:
41 
42  // Description:
43  // Reimplemented to return the range of the lookup table
44  void ComputeBounds(double bounds[4]) override;
45 
46  void ComputeTexture() override;
48 private:
50  void operator=(const vtkColorTransferFunctionItem&) = delete;
51 };
52 
53 #endif
vtkScalarsToColorsItem
Abstract class for ScalarsToColors items.
Definition: vtkScalarsToColorsItem.h:41
vtkScalarsToColorsItem.h
vtkColorTransferFunctionItem::~vtkColorTransferFunctionItem
~vtkColorTransferFunctionItem() override
vtkColorTransferFunction
Defines a transfer function for mapping a property to an RGB color value.
Definition: vtkColorTransferFunction.h:55
vtkColorTransferFunctionItem::vtkColorTransferFunctionItem
vtkColorTransferFunctionItem()
vtkColorTransferFunctionItem
Definition: vtkColorTransferFunctionItem.h:29
vtkColorTransferFunctionItem::ColorTransferFunction
vtkColorTransferFunction * ColorTransferFunction
Definition: vtkColorTransferFunctionItem.h:47
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkColorTransferFunctionItem::ComputeBounds
void ComputeBounds(double bounds[4]) override
vtkColorTransferFunctionItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkColorTransferFunctionItem::ComputeTexture
void ComputeTexture() override
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
vtkColorTransferFunctionItem::New
static vtkColorTransferFunctionItem * New()
vtkColorTransferFunctionItem::SetColorTransferFunction
void SetColorTransferFunction(vtkColorTransferFunction *t)