VTK
vtkPiecewiseFunctionItem.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPiecewiseFunctionItem.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 vtkPiecewiseFunctionItem_h
17#define vtkPiecewiseFunctionItem_h
18
19#include "vtkChartsCoreModule.h" // For export macro
21
23class vtkImageData;
24
26class VTKCHARTSCORE_EXPORT vtkPiecewiseFunctionItem: public vtkScalarsToColorsItem
27{
28public:
31 virtual void PrintSelf(ostream &os, vtkIndent indent);
32
34 vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
35
36protected:
39
40 // Description:
41 // Reimplemented to return the range of the piecewise function
42 virtual void ComputeBounds(double bounds[4]);
43
44 // Description
45 // Compute the texture from the PiecewiseFunction
46 virtual void ComputeTexture();
47
49
50private:
51 vtkPiecewiseFunctionItem(const vtkPiecewiseFunctionItem &) VTK_DELETE_FUNCTION;
52 void operator=(const vtkPiecewiseFunctionItem &) VTK_DELETE_FUNCTION;
53};
54
55#endif
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkPiecewiseFunctionItem internall uses vtkPlot::Color, white by default
virtual void ComputeBounds(double bounds[4])
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkPiecewiseFunctionItem * New()
virtual ~vtkPiecewiseFunctionItem()
void SetPiecewiseFunction(vtkPiecewiseFunction *t)
virtual void ComputeTexture()
Need to be reimplemented by subclasses, ComputeTexture() is called at paint time if the texture is no...
vtkPiecewiseFunction * PiecewiseFunction
Defines a 1D piecewise function.
Abstract class for ScalarsToColors items.