VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
XML
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 "vtkIOXMLModule.h"
// For export macro
36
#include "
vtkXMLUnstructuredDataWriter.h
"
37
38
39
class
vtkUnstructuredGrid
;
40
41
class
VTKIOXML_EXPORT
vtkXMLUnstructuredGridWriter
:
public
vtkXMLUnstructuredDataWriter
42
{
43
public
:
44
vtkTypeMacro(
vtkXMLUnstructuredGridWriter
,
vtkXMLUnstructuredDataWriter
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
static
vtkXMLUnstructuredGridWriter
*
New
();
47
48
//BTX
50
51
vtkUnstructuredGrid
*
GetInput
();
52
//ETX
54
56
const
char
*
GetDefaultFileExtension
();
57
58
protected
:
59
vtkXMLUnstructuredGridWriter
();
60
~
vtkXMLUnstructuredGridWriter
();
61
62
// see algorithm for more info
63
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
64
65
virtual
void
AllocatePositionArrays
();
66
virtual
void
DeletePositionArrays
();
67
68
const
char
*
GetDataSetName
();
69
70
void
WriteInlinePieceAttributes
();
71
void
WriteInlinePiece
(
vtkIndent
indent);
72
73
void
WriteAppendedPieceAttributes
(
int
index
);
74
void
WriteAppendedPiece
(
int
index
,
vtkIndent
indent);
75
void
WriteAppendedPieceData
(
int
index
);
76
77
virtual
vtkIdType
GetNumberOfInputCells
();
78
void
CalculateSuperclassFraction(
float
* fractions);
79
80
// Positions of attributes for each piece.
81
vtkTypeInt64*
NumberOfCellsPositions
;
82
OffsetsManagerArray
*
CellsOM
;
//one per piece
83
84
private
:
85
vtkXMLUnstructuredGridWriter
(
const
vtkXMLUnstructuredGridWriter
&);
// Not implemented.
86
void
operator=(
const
vtkXMLUnstructuredGridWriter
&);
// Not implemented.
87
};
88
89
#endif
Generated on Fri May 25 2012 22:39:32 for VTK by
1.8.1