VTK
vtkWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWriter.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 vtkWriter_h
34 #define vtkWriter_h
35 
36 #include "vtkIOCoreModule.h" // For export macro
37 #include "vtkAlgorithm.h"
38 
39 class vtkDataObject;
40 
41 #define VTK_ASCII 1
42 #define VTK_BINARY 2
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
53  virtual int Write();
54 
59  void EncodeString(char* resname, const char* name, bool doublePercent);
60 
66  void EncodeWriteString(ostream* out, const char* name, bool doublePercent);
67 
69 
72 //BTX
75 //ETX
77 
78 protected:
81 
82  virtual int ProcessRequest(vtkInformation *request,
83  vtkInformationVector **inputVector,
84  vtkInformationVector *outputVector);
85  virtual int RequestData(vtkInformation *request,
86  vtkInformationVector **inputVector,
87  vtkInformationVector *outputVector);
88 
89  virtual void WriteData() = 0; //internal method subclasses must respond to
91 private:
92  vtkWriter(const vtkWriter&); // Not implemented.
93  void operator=(const vtkWriter&); // Not implemented.
94 };
95 
96 #endif
vtkWriter::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
VTKIOCORE_EXPORT
#define VTKIOCORE_EXPORT
Definition: vtkIOCoreModule.h:15
vtkWriter::GetInput
vtkDataObject * GetInput(int port)
vtkIOCoreModule.h
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkWriter::Write
virtual int Write()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWriter::EncodeWriteString
void EncodeWriteString(ostream *out, const char *name, bool doublePercent)
vtkWriter::vtkWriter
vtkWriter()
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkWriter::~vtkWriter
~vtkWriter()
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkgl::name
GLuint const GLchar * name
Definition: vtkgl.h:11983
vtkWriter::WriteData
virtual void WriteData()=0
vtkWriter::GetInput
vtkDataObject * GetInput()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkWriter::SetInputData
void SetInputData(vtkDataObject *input)
vtkWriter
abstract class to write data to file(s)
Definition: vtkWriter.h:45
vtkWriter::EncodeString
void EncodeString(char *resname, const char *name, bool doublePercent)
vtkWriter::SetInputData
void SetInputData(int index, vtkDataObject *input)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkWriter::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkWriter::WriteTime
vtkTimeStamp WriteTime
Definition: vtkWriter.h:90
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)