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 "vtkScalarsToColorsItem.h"
20 
22 class vtkImageData;
23 
26 {
27 public:
28  static vtkPiecewiseFunctionItem* New();
30  virtual void PrintSelf(ostream &os, vtkIndent indent);
31 
32  // Description:
33  // Reimplemented to return the range of the piecewise function
34  virtual void GetBounds(double bounds[4]);
35 
36  void SetPiecewiseFunction(vtkPiecewiseFunction* t);
37  vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
38 
39 protected:
41  virtual ~vtkPiecewiseFunctionItem();
42 
43  // Description
44  // Compute the texture from the PiecewiseFunction
45  virtual void ComputeTexture();
46 
48 
49 private:
50  vtkPiecewiseFunctionItem(const vtkPiecewiseFunctionItem &); // Not implemented.
51  void operator=(const vtkPiecewiseFunctionItem &); // Not implemented.
52 };
53 
54 #endif
#define VTK_CHARTS_EXPORT
Defines a 1D piecewise function.
virtual void ComputeTexture()=0
Abstract class for ScalarsToColors items.
vtkPiecewiseFunction * PiecewiseFunction
vtkPiecewiseFunctionItem internall uses vtkPlot::Color, white by default
a simple class to control print indentation
Definition: vtkIndent.h:37
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual void GetBounds(double bounds[4])
static vtkObject * New()
virtual void PrintSelf(ostream &os, vtkIndent indent)