VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
XML
vtkXMLRectilinearGridWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLRectilinearGridWriter.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 __vtkXMLRectilinearGridWriter_h
32
#define __vtkXMLRectilinearGridWriter_h
33
34
#include "vtkIOXMLModule.h"
// For export macro
35
#include "
vtkXMLStructuredDataWriter.h
"
36
37
class
vtkRectilinearGrid
;
38
39
class
VTKIOXML_EXPORT
vtkXMLRectilinearGridWriter
:
public
vtkXMLStructuredDataWriter
40
{
41
public
:
42
static
vtkXMLRectilinearGridWriter
*
New
();
43
vtkTypeMacro(
vtkXMLRectilinearGridWriter
,
vtkXMLStructuredDataWriter
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
46
//BTX
48
49
vtkRectilinearGrid
*
GetInput
();
50
//ETX
52
54
const
char
*
GetDefaultFileExtension
();
55
56
protected
:
57
vtkXMLRectilinearGridWriter
();
58
~
vtkXMLRectilinearGridWriter
();
59
60
// see algorithm for more info
61
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
62
63
int
WriteAppendedMode(
vtkIndent
indent);
64
void
WriteAppendedPiece
(
int
index
,
vtkIndent
indent);
65
void
WriteAppendedPieceData
(
int
index
);
66
void
WriteInlinePiece
(
vtkIndent
indent);
67
void
GetInputExtent
(
int
*
extent
);
68
const
char
*
GetDataSetName
();
69
vtkDataArray
*
CreateExactCoordinates
(
vtkDataArray
* a,
int
xyz);
70
void
CalculateSuperclassFraction(
float
* fractions);
71
72
// Coordinate array appended data positions.
73
OffsetsManagerArray
*
CoordinateOM
;
74
75
virtual
void
AllocatePositionArrays
();
76
virtual
void
DeletePositionArrays
();
77
78
private
:
79
vtkXMLRectilinearGridWriter
(
const
vtkXMLRectilinearGridWriter
&);
// Not implemented.
80
void
operator=(
const
vtkXMLRectilinearGridWriter
&);
// Not implemented.
81
};
82
83
#endif
Generated on Fri May 25 2012 22:39:32 for VTK by
1.8.1