VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
XML
vtkXMLHyperOctreeWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLHyperOctreeWriter.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 __vtkXMLHyperOctreeWriter_h
32
#define __vtkXMLHyperOctreeWriter_h
33
34
#include "vtkIOXMLModule.h"
// For export macro
35
#include "
vtkXMLWriter.h
"
36
37
class
vtkHyperOctree
;
38
class
vtkHyperOctreeCursor
;
39
class
vtkIntArray
;
40
41
class
VTKIOXML_EXPORT
vtkXMLHyperOctreeWriter
:
public
vtkXMLWriter
42
{
43
public
:
44
vtkTypeMacro(
vtkXMLHyperOctreeWriter
,
vtkXMLWriter
);
45
void
PrintSelf
(ostream& os,
vtkIndent
indent);
46
static
vtkXMLHyperOctreeWriter
*
New
();
47
48
//BTX
50
51
vtkHyperOctree
*
GetInput
();
52
//ETX
54
56
const
char
*
GetDefaultFileExtension
();
57
58
protected
:
59
vtkXMLHyperOctreeWriter
();
60
~
vtkXMLHyperOctreeWriter
();
61
62
const
char
*
GetDataSetName
();
63
64
// specify that we require HyperOctree input
65
virtual
int
FillInputPortInformation
(
int
port
,
vtkInformation
*
info
);
66
67
//The most important method, make the XML file for my input.
68
int
WriteData
();
69
70
//<HyperOctree ...
71
int
StartPrimElement(
vtkIndent
);
72
73
//... dim, size, origin>
74
void
WritePrimaryElementAttributes
(ostream &,
vtkIndent
);
75
76
//Tree Structure
77
int
WriteTopology(
vtkIndent
);
78
79
//Used by WriteTopology to make and array from the Tree structure recursively
80
void
SerializeTopology(
vtkHyperOctreeCursor
*,
int
);
81
82
//Writes PointData and CellData attribute data.
83
int
WriteAttributeData(
vtkIndent
);
84
85
//</HyperOctree>
86
int
FinishPrimElement(
vtkIndent
);
87
88
//For appended mode placekeeping
89
vtkIntArray
*
TopologyArray
;
90
unsigned
long
TopoOffset
;
91
OffsetsManagerGroup
*
TopologyOM
;
92
OffsetsManagerGroup
*
PointDataOM
;
93
OffsetsManagerGroup
*
CellDataOM
;
94
95
private
:
96
vtkXMLHyperOctreeWriter
(
const
vtkXMLHyperOctreeWriter
&);
// Not implemented.
97
void
operator=(
const
vtkXMLHyperOctreeWriter
&);
// Not implemented.
98
};
99
100
#endif
Generated on Fri May 25 2012 22:39:32 for VTK by
1.8.1