VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Image
vtkTIFFWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTIFFWriter.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
=========================================================================*/
32
#ifndef __vtkTIFFWriter_h
33
#define __vtkTIFFWriter_h
34
35
#include "vtkIOImageModule.h"
// For export macro
36
#include "
vtkImageWriter.h
"
37
38
class
VTKIOIMAGE_EXPORT
vtkTIFFWriter
:
public
vtkImageWriter
39
{
40
public
:
41
static
vtkTIFFWriter
*
New
();
42
vtkTypeMacro(
vtkTIFFWriter
,
vtkImageWriter
);
43
virtual
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
45
//BTX
46
enum
{
// Compression types
47
NoCompression
,
48
PackBits
,
49
JPEG
,
50
Deflate
,
51
LZW
52
};
53
//ETX
54
56
59
vtkSetClampMacro(Compression,
int
, NoCompression, LZW);
60
vtkGetMacro(Compression,
int
);
61
void
SetCompressionToNoCompression
() { this->SetCompression(NoCompression); }
62
void
SetCompressionToPackBits
() { this->SetCompression(PackBits); }
63
void
SetCompressionToJPEG
() { this->SetCompression(JPEG); }
64
void
SetCompressionToDeflate
() { this->SetCompression(Deflate); }
65
void
SetCompressionToLZW
() { this->SetCompression(LZW); }
67
68
protected
:
69
vtkTIFFWriter
();
70
~vtkTIFFWriter
() {}
71
72
virtual
void
WriteFile
(ofstream *file,
vtkImageData
*
data
,
int
ext[6],
int
wExt[6]);
73
virtual
void
WriteFileHeader
(ofstream *,
vtkImageData
*,
int
wExt[6]);
74
virtual
void
WriteFileTrailer
(ofstream *,
vtkImageData
*);
75
76
void
*
TIFFPtr
;
77
int
Compression
;
78
79
private
:
80
vtkTIFFWriter
(
const
vtkTIFFWriter
&);
// Not implemented.
81
void
operator=(
const
vtkTIFFWriter
&);
// Not implemented.
82
};
83
84
#endif
85
Generated on Thu May 24 2012 22:22:29 for VTK by
1.8.1