VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLUnstructuredGridWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLUnstructuredGridWriter.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 __vtkXMLUnstructuredGridWriter_h
33
#define __vtkXMLUnstructuredGridWriter_h
34
35
#include "
vtkXMLUnstructuredDataWriter.h
"
36
37
38
class
vtkUnstructuredGrid
;
39
40
class
VTK_IO_EXPORT
vtkXMLUnstructuredGridWriter
:
public
vtkXMLUnstructuredDataWriter
41
{
42
public
:
43
vtkTypeMacro(
vtkXMLUnstructuredGridWriter
,
vtkXMLUnstructuredDataWriter
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
static
vtkXMLUnstructuredGridWriter
*
New
();
46
47
//BTX
49
50
vtkUnstructuredGrid
*
GetInput
();
51
//ETX
53
55
const
char
*
GetDefaultFileExtension
();
56
57
protected
:
58
vtkXMLUnstructuredGridWriter
();
59
~
vtkXMLUnstructuredGridWriter
();
60
61
// see algorithm for more info
62
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
63
64
virtual
void
AllocatePositionArrays
();
65
virtual
void
DeletePositionArrays
();
66
67
const
char
*
GetDataSetName
();
68
69
void
WriteInlinePieceAttributes
();
70
void
WriteInlinePiece
(
vtkIndent
indent);
71
72
void
WriteAppendedPieceAttributes
(
int
index
);
73
void
WriteAppendedPiece
(
int
index
,
vtkIndent
indent);
74
void
WriteAppendedPieceData
(
int
index
);
75
76
virtual
vtkIdType
GetNumberOfInputCells
();
77
void
CalculateSuperclassFraction(
float
* fractions);
78
79
// Positions of attributes for each piece.
80
unsigned
long
*
NumberOfCellsPositions
;
81
OffsetsManagerArray
*
CellsOM
;
//one per piece
82
83
private
:
84
vtkXMLUnstructuredGridWriter
(
const
vtkXMLUnstructuredGridWriter
&);
// Not implemented.
85
void
operator=(
const
vtkXMLUnstructuredGridWriter
&);
// Not implemented.
86
};
87
88
#endif
Generated on Wed Nov 21 2012 21:33:59 for VTK by
1.8.2