VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
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
21
class
vtkPiecewiseFunction
;
22
class
vtkImageData
;
23
25
class
VTK_CHARTS_EXPORT
vtkPiecewiseFunctionItem
:
public
vtkScalarsToColorsItem
26
{
27
public
:
28
static
vtkPiecewiseFunctionItem
*
New
();
29
vtkTypeMacro(
vtkPiecewiseFunctionItem
,
vtkScalarsToColorsItem
);
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
:
40
vtkPiecewiseFunctionItem
();
41
virtual
~
vtkPiecewiseFunctionItem
();
42
43
// Description
44
// Compute the texture from the PiecewiseFunction
45
virtual
void
ComputeTexture
();
46
47
vtkPiecewiseFunction
*
PiecewiseFunction
;
48
49
private
:
50
vtkPiecewiseFunctionItem
(
const
vtkPiecewiseFunctionItem
&);
// Not implemented.
51
void
operator=(
const
vtkPiecewiseFunctionItem
&);
// Not implemented.
52
};
53
54
#endif
Generated on Sun Sep 9 2012 13:03:25 for VTK by
1.8.1.2