VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
XML
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 "vtkIOXMLModule.h"
// For export macro
35
#include "
vtkXMLStructuredDataWriter.h
"
36
37
class
vtkStructuredGrid
;
38
39
class
VTKIOXML_EXPORT
vtkXMLStructuredGridWriter
:
public
vtkXMLStructuredDataWriter
40
{
41
public
:
42
static
vtkXMLStructuredGridWriter
*
New
();
43
vtkTypeMacro(
vtkXMLStructuredGridWriter
,
vtkXMLStructuredDataWriter
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
46
//BTX
48
49
vtkStructuredGrid
*
GetInput
();
50
//ETX
52
54
const
char
*
GetDefaultFileExtension
();
55
56
protected
:
57
vtkXMLStructuredGridWriter
();
58
~
vtkXMLStructuredGridWriter
();
59
60
// see algorithm for more info
61
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
62
63
void
WriteAppendedPiece
(
int
index
,
vtkIndent
indent);
64
void
WriteAppendedPieceData
(
int
index
);
65
void
WriteInlinePiece
(
vtkIndent
indent);
66
void
GetInputExtent
(
int
*
extent
);
67
const
char
*
GetDataSetName
();
68
void
CalculateSuperclassFraction(
float
* fractions);
69
70
// The position of the appended data offset attribute for the points
71
// array.
72
OffsetsManagerGroup
*
PointsOM
;
//one per piece
73
74
virtual
void
AllocatePositionArrays
();
75
virtual
void
DeletePositionArrays
();
76
77
private
:
78
vtkXMLStructuredGridWriter
(
const
vtkXMLStructuredGridWriter
&);
// Not implemented.
79
void
operator=(
const
vtkXMLStructuredGridWriter
&);
// Not implemented.
80
};
81
82
#endif
Generated on Fri May 25 2012 22:39:32 for VTK by
1.8.1