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" // Needs data because it calls methods on it
37 #include "vtkStdString.h" // For string used in api
38 
40 {
41 public:
42  static vtkDataObjectWriter *New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  void SetFileName(const char *filename) {this->Writer->SetFileName(filename);};
49  char *GetFileName() {return this->Writer->GetFileName();};
50  void SetHeader(const char *header) {this->Writer->SetHeader(header);};
51  char *GetHeader() {return this->Writer->GetHeader();};
52  void SetFileType(int type) {this->Writer->SetFileType(type);};
53  int GetFileType() {return this->Writer->GetFileType();};
54  void SetFileTypeToASCII() {this->Writer->SetFileType(VTK_ASCII);};
55  void SetFileTypeToBinary() {this->Writer->SetFileType(VTK_BINARY);};
56  void SetWriteToOutputString(int b) {this->Writer->SetWriteToOutputString(b);};
57  void WriteToOutputStringOn() {this->Writer->WriteToOutputStringOn();};
58  void WriteToOutputStringOff() {this->Writer->WriteToOutputStringOff();};
59  int GetWriteToOutputString() {return this->Writer->GetWriteToOutputString();};
60  char* GetOutputString() {return this->Writer->GetOutputString();};
61  vtkStdString GetOutputStdString() {return this->Writer->GetOutputStdString();};
62  int GetOutputStringLength() {return this->Writer->GetOutputStringLength();};
63  unsigned char* GetBinaryOutputString() {return this->Writer->GetBinaryOutputString();};
64  void SetFieldDataName(const char *fieldname) {this->Writer->SetFieldDataName(fieldname);};
65  char *GetFieldDataName() {return this->Writer->GetFieldDataName();};
67 
68 protected:
71 
72  void WriteData();
74 
76 
77 private:
78  vtkDataObjectWriter(const vtkDataObjectWriter&); // Not implemented.
79  void operator=(const vtkDataObjectWriter&); // Not implemented.
80 };
81 
82 #endif