VTK
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 "vtkImageWriter.h"
36 
38 {
39 public:
40  static vtkTIFFWriter *New();
42  virtual void PrintSelf(ostream& os, vtkIndent indent);
43 
44 //BTX
45  enum { // Compression types
50  LZW
51  };
52 //ETX
53 
55 
58  vtkSetClampMacro(Compression, int, NoCompression, LZW);
59  vtkGetMacro(Compression, int);
60  void SetCompressionToNoCompression() { this->SetCompression(NoCompression); }
61  void SetCompressionToPackBits() { this->SetCompression(PackBits); }
62  void SetCompressionToJPEG() { this->SetCompression(JPEG); }
63  void SetCompressionToDeflate() { this->SetCompression(Deflate); }
64  void SetCompressionToLZW() { this->SetCompression(LZW); }
66 
67 protected:
68  vtkTIFFWriter();
70 
71  virtual void WriteFile(ofstream *file, vtkImageData *data, int ext[6]);
72  virtual void WriteFileHeader(ofstream *, vtkImageData *);
73  virtual void WriteFileTrailer(ofstream *, vtkImageData *);
74 
75  void* TIFFPtr;
77 
78 private:
79  vtkTIFFWriter(const vtkTIFFWriter&); // Not implemented.
80  void operator=(const vtkTIFFWriter&); // Not implemented.
81 };
82 
83 #endif
84