VTK
vtkXMLHyperOctreeReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLHyperOctreeReader.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=========================================================================*/
35#ifndef vtkXMLHyperOctreeReader_h
36#define vtkXMLHyperOctreeReader_h
37
38#include "vtkIOXMLModule.h" // For export macro
39#include "vtkXMLDataReader.h"
40
41class vtkHyperOctree;
43class vtkIntArray;
44
45class VTKIOXML_EXPORT vtkXMLHyperOctreeReader : public vtkXMLDataReader
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent);
51
53
59
60protected:
63
64 const char* GetDataSetName();
65
66 // Setup the output with no data available. Used in error cases.
68
69 // Declare that this reader produces HyperOctrees
71
72 //These defer to the HyperOctree output.
75
76 // Overriden here to do allocation.
78 vtkAbstractArray* outArray);
80 vtkAbstractArray* outArray);
81
82
83
84 // The most important stuff is here.
85 // Read the rest of the file and create the HyperOctree.
87
88 // Recover the structure of the HyperOctree, used by ReadXMLData.
90
91 // Used by ReadTopology to recusively build the tree, one cell at a time.
93
94 //Helper for BuildNextCell
96
97private:
98 vtkXMLHyperOctreeReader(const vtkXMLHyperOctreeReader&) VTK_DELETE_FUNCTION;
99 void operator=(const vtkXMLHyperOctreeReader&) VTK_DELETE_FUNCTION;
100};
101
102#endif
Abstract superclass for all arrays.
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
Represents an XML element and those nested inside.
Superclass for VTK XML file readers.
Read VTK XML HyperOctree files.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int ReadArrayForPoints(vtkXMLDataElement *da, vtkAbstractArray *outArray)
const char * GetDataSetName()
virtual int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray)
void ReadTopology(vtkXMLDataElement *elem)
virtual int FillOutputPortInformation(int, vtkInformation *)
Fill the output port information objects for this algorithm.
static vtkXMLHyperOctreeReader * New()
vtkHyperOctree * GetOutput(int idx)
int BuildNextCell(vtkIntArray *, vtkHyperOctreeCursor *, int)
vtkIdType GetNumberOfPoints()
Get the number of points in the output.
vtkIdType GetNumberOfCells()
Get the number of cells in the output.
vtkHyperOctree * GetOutput()
Get the reader's output.
int vtkIdType
Definition: vtkType.h:287