VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
vtkImageResliceToColors.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkImageResliceToColors.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
=========================================================================*/
33
#ifndef __vtkImageResliceToColors_h
34
#define __vtkImageResliceToColors_h
35
36
37
#include "
vtkImageReslice.h
"
38
39
class
vtkScalarsToColors
;
40
41
class
VTK_IMAGING_EXPORT
vtkImageResliceToColors
:
public
vtkImageReslice
42
{
43
public
:
44
static
vtkImageResliceToColors
*
New
();
45
vtkTypeMacro(
vtkImageResliceToColors
,
vtkImageReslice
);
46
47
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
48
50
55
virtual
void
SetLookupTable(
vtkScalarsToColors
*table);
56
vtkGetObjectMacro(LookupTable,
vtkScalarsToColors
);
58
60
61
vtkSetClampMacro(OutputFormat,
int
,
VTK_LUMINANCE
,
VTK_RGBA
);
62
vtkGetMacro(OutputFormat,
int
);
63
void
SetOutputFormatToRGBA
() {
64
this->OutputFormat =
VTK_RGBA
; };
65
void
SetOutputFormatToRGB
() {
66
this->OutputFormat =
VTK_RGB
; };
67
void
SetOutputFormatToLuminanceAlpha
() {
68
this->OutputFormat =
VTK_LUMINANCE_ALPHA
; };
69
void
SetOutputFormatToLuminance
() {
70
this->OutputFormat =
VTK_LUMINANCE
; };
72
74
77
void
SetBypass(
int
bypass);
78
void
BypassOn
() { this->SetBypass(1); }
79
void
BypassOff
() { this->SetBypass(0); }
80
int
GetBypass
() {
return
this->Bypass; }
82
85
unsigned
long
int
GetMTime
();
86
87
protected
:
88
vtkImageResliceToColors
();
89
~
vtkImageResliceToColors
();
90
91
vtkScalarsToColors
*
LookupTable
;
92
vtkScalarsToColors
*
DefaultLookupTable
;
93
int
OutputFormat
;
94
int
Bypass
;
95
96
int
ConvertScalarInfo
(
int
&scalarType,
int
&numComponents);
97
98
void
ConvertScalars
(
void
*inPtr,
void
*outPtr,
int
inputType,
99
int
inputNumComponents,
int
count,
100
int
idX,
int
idY,
int
idZ,
int
threadId);
101
102
private
:
103
vtkImageResliceToColors
(
const
vtkImageResliceToColors
&);
// Not implemented.
104
void
operator=(
const
vtkImageResliceToColors
&);
// Not implemented.
105
};
106
107
#endif
Generated on Tue Jan 8 2013 05:45:34 for VTK by
1.8.1.2