VTK
vtkXMLRectilinearGridReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLRectilinearGridReader.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 =========================================================================*/
34 #ifndef vtkXMLRectilinearGridReader_h
35 #define vtkXMLRectilinearGridReader_h
36 
37 #include "vtkIOXMLModule.h" // For export macro
39 
40 class vtkRectilinearGrid;
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkRectilinearGrid *GetOutput();
52  vtkRectilinearGrid *GetOutput(int idx);
54 
55 protected:
58 
59  const char* GetDataSetName();
60  void SetOutputExtent(int* extent);
61 
62  void SetupPieces(int numPieces);
63  void DestroyPieces();
64  void SetupOutputData();
65  int ReadPiece(vtkXMLDataElement* ePiece);
66  int ReadPieceData();
67  int ReadSubCoordinates(int* inBounds, int* outBounds, int* subBounds,
68  vtkXMLDataElement* da, vtkDataArray* array);
69  virtual int FillOutputPortInformation(int, vtkInformation*);
70 
71  // The elements representing the coordinate arrays for each piece.
73 
74 private:
75  vtkXMLRectilinearGridReader(const vtkXMLRectilinearGridReader&); // Not implemented.
76  void operator=(const vtkXMLRectilinearGridReader&); // Not implemented.
77 };
78 
79 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
void SetupOutputData()
virtual const char * GetDataSetName()=0
void SetupPieces(int numPieces)
Represents an XML element and those nested inside.
virtual void SetOutputExtent(int *extent)=0
Store vtkAlgorithm input/output information.
Superclass for structured data XML readers.
Read VTK XML RectilinearGrid files.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
int ReadPiece(vtkXMLDataElement *ePiece)
virtual int ReadPieceData()