VTK
vtkDataObjectWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectWriter.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 __vtkDataObjectWriter_h
33 #define __vtkDataObjectWriter_h
34 
35 #include "vtkWriter.h"
36 #include "vtkDataWriter.h" // Neds data because it calls methods on it
37 
39 {
40 public:
41  static vtkDataObjectWriter *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  void SetFileName(const char *filename) {this->Writer->SetFileName(filename);};
48  char *GetFileName() {return this->Writer->GetFileName();};
49  void SetHeader(const char *header) {this->Writer->SetHeader(header);};
50  char *GetHeader() {return this->Writer->GetHeader();};
51  void SetFileType(int type) {this->Writer->SetFileType(type);};
52  int GetFileType() {return this->Writer->GetFileType();};
53  void SetFileTypeToASCII() {this->Writer->SetFileType(VTK_ASCII);};
54  void SetFileTypeToBinary() {this->Writer->SetFileType(VTK_BINARY);};
55  void SetFieldDataName(const char *fieldname) {this->Writer->SetFieldDataName(fieldname);};
56  char *GetFieldDataName() {return this->Writer->GetFieldDataName();};
58 
59 protected:
62 
63  void WriteData();
65 
67 
68 private:
69  vtkDataObjectWriter(const vtkDataObjectWriter&); // Not implemented.
70  void operator=(const vtkDataObjectWriter&); // Not implemented.
71 };
72 
73 #endif