VTK
dox
IO
Core
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
=========================================================================*/
31
#ifndef vtkWriter_h
32
#define vtkWriter_h
33
34
#include "vtkIOCoreModule.h"
// For export macro
35
#include "
vtkAlgorithm.h
"
36
37
class
vtkDataObject
;
38
39
#define VTK_ASCII 1
40
#define VTK_BINARY 2
41
42
class
VTKIOCORE_EXPORT
vtkWriter
:
public
vtkAlgorithm
43
{
44
public
:
45
vtkTypeMacro(
vtkWriter
,
vtkAlgorithm
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
53
virtual
int
Write();
54
61
void
EncodeString(
char
* resname,
const
char
*
name
,
bool
doublePercent);
62
70
void
EncodeWriteString(ostream* out,
const
char
*
name
,
bool
doublePercent);
71
73
76
void
SetInputData(
vtkDataObject
*input);
77
void
SetInputData(
int
index
,
vtkDataObject
*input);
79
80
vtkDataObject
*GetInput();
81
vtkDataObject
*GetInput(
int
port
);
82
83
protected
:
84
vtkWriter
();
85
~
vtkWriter
()
override
;
86
87
int
ProcessRequest
(
vtkInformation
*request,
88
vtkInformationVector
**inputVector,
89
vtkInformationVector
*outputVector)
override
;
90
virtual
int
RequestData(
vtkInformation
*request,
91
vtkInformationVector
**inputVector,
92
vtkInformationVector
*outputVector);
93
94
virtual
void
WriteData() = 0;
//internal method subclasses must respond to
95
vtkTimeStamp
WriteTime
;
96
private
:
97
vtkWriter
(
const
vtkWriter
&) =
delete
;
98
void
operator=(
const
vtkWriter
&) =
delete
;
99
};
100
101
#endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition:
vtkAlgorithm.h:59
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:41
vtkTimeStamp
record modification and/or execution time
Definition:
vtkTimeStamp.h:35
vtkAlgorithm.h
vtkX3D::port
Definition:
vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkWriter
abstract class to write data to file(s)
Definition:
vtkWriter.h:42
vtkX3D::name
Definition:
vtkX3D.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:86
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWriter::WriteTime
vtkTimeStamp WriteTime
Definition:
vtkWriter.h:95
vtkDataObject
general representation of visualization data
Definition:
vtkDataObject.h:64
vtkX3D::index
Definition:
vtkX3D.h:246
Generated by
1.8.16