VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkFacetWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkFacetWriter.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
=========================================================================*/
38
#ifndef __vtkFacetWriter_h
39
#define __vtkFacetWriter_h
40
41
#include "
vtkPolyDataAlgorithm.h
"
42
43
class
vtkInformation
;
44
45
class
VTK_IO_EXPORT
vtkFacetWriter
:
public
vtkPolyDataAlgorithm
46
{
47
public
:
48
static
vtkFacetWriter
*
New
();
49
vtkTypeMacro(
vtkFacetWriter
,
vtkPolyDataAlgorithm
);
50
void
PrintSelf
(ostream& os,
vtkIndent
indent);
51
53
54
vtkSetStringMacro(FileName);
55
vtkGetStringMacro(FileName);
57
59
void
Write();
60
61
// BTX
62
void
WriteToStream(ostream* ost);
63
// ETX
64
65
protected
:
66
vtkFacetWriter
();
67
~
vtkFacetWriter
();
68
69
// This is called by the superclass.
70
// This is the method you should override.
71
virtual
int
RequestData
(
vtkInformation
*request,
72
vtkInformationVector
** inputVector,
73
vtkInformationVector
* outputVector);
74
75
virtual
int
FillInputPortInformation
(
int
,
vtkInformation
*);
76
77
// BTX
78
int
WriteDataToStream(ostream* ost,
vtkPolyData
*
data
);
79
// ETX
80
81
char
*
FileName
;
82
ostream *
OutputStream
;
83
84
private
:
85
vtkFacetWriter
(
const
vtkFacetWriter
&);
// Not implemented.
86
void
operator=(
const
vtkFacetWriter
&);
// Not implemented.
87
};
88
89
#endif
90
Generated on Sun Sep 9 2012 13:03:41 for VTK by
1.8.1.2