VTK  9.3.1
vtkXMLHierarchicalBoxDataFileConverter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkXMLHierarchicalBoxDataFileConverter_h
17 #define vtkXMLHierarchicalBoxDataFileConverter_h
18 
19 #include "vtkIOXMLModule.h" // needed for export macro.
20 #include "vtkObject.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkXMLDataElement;
24 
25 class VTKIOXML_EXPORT vtkXMLHierarchicalBoxDataFileConverter : public vtkObject
26 {
27 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33 
36  vtkSetFilePathMacro(InputFileName);
37  vtkGetFilePathMacro(InputFileName);
39 
41 
44  vtkSetFilePathMacro(OutputFileName);
45  vtkGetFilePathMacro(OutputFileName);
47 
51  bool Convert();
52 
53 protected:
56 
57  vtkXMLDataElement* ParseXML(const char* filename);
58 
59  // Returns GridDescription. VTK_UNCHANGED for invalid/failure.
60  int GetOriginAndSpacing(vtkXMLDataElement* ePrimary, double origin[3], double*& spacing);
61 
64  char* FilePath;
65  vtkSetFilePathMacro(FilePath);
66 
67 private:
69  void operator=(const vtkXMLHierarchicalBoxDataFileConverter&) = delete;
70 };
71 
72 VTK_ABI_NAMESPACE_END
73 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:51
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Represents an XML element and those nested inside.
converts older *.vth, *.vthb files to newer format.
a simple class to control print indentation
Definition: vtkIndent.h:28
VTKACCELERATORSVTKMCORE_EXPORT vtkDataArray * Convert(const vtkm::cont::Field &input)
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...