VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filtering
vtkDiscretizableColorTransferFunction.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDiscretizableColorTransferFunction.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
=========================================================================*/
29
#ifndef __vtkDiscretizableColorTransferFunction_h
30
#define __vtkDiscretizableColorTransferFunction_h
31
32
#include "
vtkColorTransferFunction.h
"
33
34
class
vtkLookupTable
;
35
class
vtkColorTransferFunction
;
36
37
class
VTK_FILTERING_EXPORT
vtkDiscretizableColorTransferFunction
:
public
vtkColorTransferFunction
38
{
39
public
:
40
static
vtkDiscretizableColorTransferFunction
*
New
();
41
vtkTypeMacro(
vtkDiscretizableColorTransferFunction
,
vtkColorTransferFunction
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
47
virtual
void
Build
();
48
50
54
vtkSetMacro(Discretize,
int
);
55
vtkGetMacro(Discretize,
int
);
56
vtkBooleanMacro(Discretize,
int
);
58
60
62
virtual
void
SetUseLogScale(
int
useLogScale);
63
vtkGetMacro(UseLogScale,
int
);
65
67
70
void
SetNumberOfValues(
vtkIdType
number);
71
vtkGetMacro(NumberOfValues,
vtkIdType
);
73
76
virtual
unsigned
char
*
MapValue
(
double
v);
77
80
virtual
void
GetColor
(
double
v,
double
rgb[3]);
81
83
92
virtual
vtkUnsignedCharArray
*
MapScalars
(
vtkDataArray
*scalars,
int
colorMode,
93
int
component
);
95
97
double
* GetRGBPoints();
98
103
virtual
void
SetAlpha
(
double
alpha
);
104
105
107
110
virtual
void
SetNanColor
(
double
r,
double
g,
double
b);
111
virtual
void
SetNanColor
(
double
rgb[3]) {
112
this->
SetNanColor
(rgb[0], rgb[1], rgb[2]);
113
}
115
116
118
120
virtual
int
UsingLogScale
()
121
{
return
this->UseLogScale; }
123
125
virtual
vtkIdType
GetNumberOfAvailableColors
();
126
127
protected
:
128
vtkDiscretizableColorTransferFunction
();
129
~
vtkDiscretizableColorTransferFunction
();
130
131
int
Discretize
;
132
int
UseLogScale
;
133
134
vtkIdType
NumberOfValues
;
135
vtkLookupTable
*
LookupTable
;
136
137
vtkTimeStamp
BuildTime
;
138
private
:
139
vtkDiscretizableColorTransferFunction
(
const
vtkDiscretizableColorTransferFunction
&);
// Not implemented.
140
void
operator=(
const
vtkDiscretizableColorTransferFunction
&);
// Not implemented.
141
142
// Pointer used by GetRGBPoints().
143
double
* Data;
144
};
145
146
#endif
147
Generated on Wed May 30 2012 13:21:54 for VTK by
1.8.1