VTK  9.2.6
vtkXMLHierarchicalBoxDataFileConverter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLHierarchicalBoxDataFileConverter.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 =========================================================================*/
28 #ifndef vtkXMLHierarchicalBoxDataFileConverter_h
29 #define vtkXMLHierarchicalBoxDataFileConverter_h
30 
31 #include "vtkIOXMLModule.h" // needed for export macro.
32 #include "vtkObject.h"
33 
34 class vtkXMLDataElement;
35 
36 class VTKIOXML_EXPORT vtkXMLHierarchicalBoxDataFileConverter : public vtkObject
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  vtkSetFilePathMacro(InputFileName);
48  vtkGetFilePathMacro(InputFileName);
50 
52 
55  vtkSetFilePathMacro(OutputFileName);
56  vtkGetFilePathMacro(OutputFileName);
58 
62  bool Convert();
63 
64 protected:
67 
68  vtkXMLDataElement* ParseXML(const char* filename);
69 
70  // Returns GridDescription. VTK_UNCHANGED for invalid/failure.
71  int GetOriginAndSpacing(vtkXMLDataElement* ePrimary, double origin[3], double*& spacing);
72 
75  char* FilePath;
76  vtkSetFilePathMacro(FilePath);
77 
78 private:
80  void operator=(const vtkXMLHierarchicalBoxDataFileConverter&) = delete;
81 };
82 
83 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:62
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:39
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...