VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLStructuredGridWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLStructuredGridWriter.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 __vtkXMLStructuredGridWriter_h
32
#define __vtkXMLStructuredGridWriter_h
33
34
#include "
vtkXMLStructuredDataWriter.h
"
35
36
class
vtkStructuredGrid
;
37
38
class
VTK_IO_EXPORT
vtkXMLStructuredGridWriter
:
public
vtkXMLStructuredDataWriter
39
{
40
public
:
41
static
vtkXMLStructuredGridWriter
*
New
();
42
vtkTypeMacro(
vtkXMLStructuredGridWriter
,
vtkXMLStructuredDataWriter
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
45
//BTX
47
48
vtkStructuredGrid
*
GetInput
();
49
//ETX
51
53
const
char
*
GetDefaultFileExtension
();
54
55
protected
:
56
vtkXMLStructuredGridWriter
();
57
~
vtkXMLStructuredGridWriter
();
58
59
// see algorithm for more info
60
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
61
62
void
WriteAppendedPiece
(
int
index
,
vtkIndent
indent);
63
void
WriteAppendedPieceData
(
int
index
);
64
void
WriteInlinePiece
(
vtkIndent
indent);
65
void
GetInputExtent
(
int
*
extent
);
66
const
char
*
GetDataSetName
();
67
void
CalculateSuperclassFraction(
float
* fractions);
68
69
// The position of the appended data offset attribute for the points
70
// array.
71
OffsetsManagerGroup
*
PointsOM
;
//one per piece
72
73
virtual
void
AllocatePositionArrays
();
74
virtual
void
DeletePositionArrays
();
75
76
private
:
77
vtkXMLStructuredGridWriter
(
const
vtkXMLStructuredGridWriter
&);
// Not implemented.
78
void
operator=(
const
vtkXMLStructuredGridWriter
&);
// Not implemented.
79
};
80
81
#endif
Generated on Thu Mar 13 2014 08:10:24 for VTK by
1.8.1.2