VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLPolyDataWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLPolyDataWriter.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
=========================================================================*/
35
#ifndef __vtkXMLPolyDataWriter_h
36
#define __vtkXMLPolyDataWriter_h
37
38
#include "
vtkXMLUnstructuredDataWriter.h
"
39
40
class
vtkPolyData
;
41
42
class
VTK_IO_EXPORT
vtkXMLPolyDataWriter
:
public
vtkXMLUnstructuredDataWriter
43
{
44
public
:
45
vtkTypeMacro(
vtkXMLPolyDataWriter
,
vtkXMLUnstructuredDataWriter
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent);
47
static
vtkXMLPolyDataWriter
*
New
();
48
49
//BTX
51
52
vtkPolyData
*
GetInput
();
53
//ETX
55
57
const
char
*
GetDefaultFileExtension
();
58
59
protected
:
60
vtkXMLPolyDataWriter
();
61
~
vtkXMLPolyDataWriter
();
62
63
// see algorithm for more info
64
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
65
66
const
char
*
GetDataSetName
();
67
68
virtual
void
AllocatePositionArrays
();
69
virtual
void
DeletePositionArrays
();
70
71
void
WriteInlinePieceAttributes
();
72
void
WriteInlinePiece
(
vtkIndent
indent);
73
74
void
WriteAppendedPieceAttributes
(
int
index
);
75
void
WriteAppendedPiece
(
int
index
,
vtkIndent
indent);
76
void
WriteAppendedPieceData
(
int
index
);
77
78
virtual
vtkIdType
GetNumberOfInputCells
();
79
void
CalculateSuperclassFraction(
float
* fractions);
80
81
// Positions of attributes for each piece.
82
unsigned
long
*
NumberOfVertsPositions
;
83
unsigned
long
*
NumberOfLinesPositions
;
84
unsigned
long
*
NumberOfStripsPositions
;
85
unsigned
long
*
NumberOfPolysPositions
;
86
87
OffsetsManagerArray
*
VertsOM
;
88
OffsetsManagerArray
*
LinesOM
;
89
OffsetsManagerArray
*
StripsOM
;
90
OffsetsManagerArray
*
PolysOM
;
91
92
private
:
93
vtkXMLPolyDataWriter
(
const
vtkXMLPolyDataWriter
&);
// Not implemented.
94
void
operator=(
const
vtkXMLPolyDataWriter
&);
// Not implemented.
95
};
96
97
#endif
Generated on Thu Mar 13 2014 08:10:24 for VTK by
1.8.1.2