VTK
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=========================================================================*/
32#ifndef vtkXMLHyperOctreeWriter_h
33#define vtkXMLHyperOctreeWriter_h
34
35#include "vtkIOXMLModule.h" // For export macro
36#include "vtkXMLWriter.h"
37
38class vtkHyperOctree;
40class vtkIntArray;
41
42class VTKIOXML_EXPORT vtkXMLHyperOctreeWriter : public vtkXMLWriter
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent);
48
53
58
59protected:
62
63 const char* GetDataSetName();
64
65 // specify that we require HyperOctree input
67
68 // The most important method, make the XML file for my input.
69 int WriteData();
70
71 // <HyperOctree ...
73
74 // ... dim, size, origin>
76
77 // Tree Structure
79
80 // Used by WriteTopology to make and array from the Tree structure recursively
82
83 // Writes PointData and CellData attribute data.
85
86 // </HyperOctree>
88
89 // For appended mode placekeeping
91 unsigned long TopoOffset;
95
96private:
97 vtkXMLHyperOctreeWriter(const vtkXMLHyperOctreeWriter&) VTK_DELETE_FUNCTION;
98 void operator=(const vtkXMLHyperOctreeWriter&) VTK_DELETE_FUNCTION;
99};
100
101#endif
Objects that can traverse hyperoctree nodes.
A dataset structured as a tree where each node has exactly 2^n children.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
Write VTK XML HyperOctree files.
void SerializeTopology(vtkHyperOctreeCursor *, int)
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
OffsetsManagerGroup * PointDataOM
int StartPrimElement(vtkIndent)
OffsetsManagerGroup * TopologyOM
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int WriteAttributeData(vtkIndent)
const char * GetDefaultFileExtension()
Get the default file extension for files written by this writer.
const char * GetDataSetName()
static vtkXMLHyperOctreeWriter * New()
vtkHyperOctree * GetInput()
Get/Set the writer's input.
void WritePrimaryElementAttributes(ostream &, vtkIndent)
int FinishPrimElement(vtkIndent)
OffsetsManagerGroup * CellDataOM
int WriteTopology(vtkIndent)
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:54
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447