VTK
vtkXMLUniformGridAMRReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkXMLUniformGridAMRReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 vtkXMLUniformGridAMRReader_h
32 #define vtkXMLUniformGridAMRReader_h
33 
34 #include "vtkIOXMLModule.h" // For export macro
36 #include "vtkSmartPointer.h" // needed for vtkSmartPointer.
37 
38 class vtkOverlappingAMR;
39 class vtkUniformGridAMR;
40 
41 class VTKIOXML_EXPORT vtkXMLUniformGridAMRReader :
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
48 
50 
59  vtkSetMacro(MaximumLevelsToReadByDefault, unsigned int);
60  vtkGetMacro(MaximumLevelsToReadByDefault, unsigned int);
62 
63 protected:
65  ~vtkXMLUniformGridAMRReader() VTK_OVERRIDE;
66 
73  int CanReadFileWithDataType(const char* dsname) VTK_OVERRIDE;
74 
81  int ReadVTKFile(vtkXMLDataElement* eVTKFile) VTK_OVERRIDE;
82 
89  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) VTK_OVERRIDE;
90 
96  int RequestDataObject(vtkInformation *request,
97  vtkInformationVector **inputVector, vtkInformationVector *outputVector) VTK_OVERRIDE;
98 
103  int RequestInformation(vtkInformation *request,
104  vtkInformationVector **inputVector, vtkInformationVector *outputVector) VTK_OVERRIDE;
105 
106  // Get the name of the data set being read.
107  const char* GetDataSetName() VTK_OVERRIDE;
108 
109  // Read the XML element for the subtree of a the composite dataset.
110  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
111  void ReadComposite(vtkXMLDataElement* element,
112  vtkCompositeDataSet* composite, const char* filePath,
113  unsigned int &dataSetIndex) VTK_OVERRIDE;
114 
115  // Read the vtkDataSet (a leaf) in the composite dataset.
116  vtkDataSet* ReadDataset(vtkXMLDataElement* xmlElem, const char* filePath) VTK_OVERRIDE;
117 
119  unsigned int MaximumLevelsToReadByDefault;
120 
121 private:
122  vtkXMLUniformGridAMRReader(const vtkXMLUniformGridAMRReader&) VTK_DELETE_FUNCTION;
123  void operator=(const vtkXMLUniformGridAMRReader&) VTK_DELETE_FUNCTION;
124 
125  char* OutputDataType;
126  vtkSetStringMacro(OutputDataType);
127 };
128 
129 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
Reader for multi-group datasets.
Hold a reference to a vtkObjectBase instance.
Reader for amr datasets (vtkOverlappingAMR or vtkNonOverlappingAMR).
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
hierarchical dataset of vtkUniformGrids
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.