VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Imaging
Core
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 "vtkImagingCoreModule.h"
// For export macro
38
#include "
vtkImageReslice.h
"
39
40
class
vtkScalarsToColors
;
41
42
class
VTKIMAGINGCORE_EXPORT
vtkImageResliceToColors
:
public
vtkImageReslice
43
{
44
public
:
45
static
vtkImageResliceToColors
*
New
();
46
vtkTypeMacro(
vtkImageResliceToColors
,
vtkImageReslice
);
47
48
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
51
56
virtual
void
SetLookupTable(
vtkScalarsToColors
*table);
57
vtkGetObjectMacro(LookupTable,
vtkScalarsToColors
);
59
61
62
vtkSetClampMacro(OutputFormat,
int
,
VTK_LUMINANCE
,
VTK_RGBA
);
63
vtkGetMacro(OutputFormat,
int
);
64
void
SetOutputFormatToRGBA
() {
65
this->OutputFormat =
VTK_RGBA
; };
66
void
SetOutputFormatToRGB
() {
67
this->OutputFormat =
VTK_RGB
; };
68
void
SetOutputFormatToLuminanceAlpha
() {
69
this->OutputFormat =
VTK_LUMINANCE_ALPHA
; };
70
void
SetOutputFormatToLuminance
() {
71
this->OutputFormat =
VTK_LUMINANCE
; };
73
75
78
void
SetBypass(
int
bypass);
79
void
BypassOn
() { this->SetBypass(1); }
80
void
BypassOff
() { this->SetBypass(0); }
81
int
GetBypass
() {
return
this->Bypass; }
83
86
unsigned
long
int
GetMTime
();
87
88
protected
:
89
vtkImageResliceToColors
();
90
~
vtkImageResliceToColors
();
91
92
vtkScalarsToColors
*
LookupTable
;
93
vtkScalarsToColors
*
DefaultLookupTable
;
94
int
OutputFormat
;
95
int
Bypass
;
96
97
int
ConvertScalarInfo
(
int
&scalarType,
int
&numComponents);
98
99
void
ConvertScalars
(
void
*inPtr,
void
*outPtr,
int
inputType,
100
int
inputNumComponents,
int
count,
101
int
idX,
int
idY,
int
idZ,
int
threadId);
102
103
private
:
104
vtkImageResliceToColors
(
const
vtkImageResliceToColors
&);
// Not implemented.
105
void
operator=(
const
vtkImageResliceToColors
&);
// Not implemented.
106
};
107
108
#endif
Generated on Thu May 24 2012 22:22:24 for VTK by
1.8.1