VTK  9.3.20240424
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
22VTK_ABI_NAMESPACE_BEGIN
24
26{
27public:
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
53protected:
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;
66
67private:
69 void operator=(const vtkXMLHierarchicalBoxDataFileConverter&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162
Represents an XML element and those nested inside.
converts older *.vth, *.vthb files to newer format.
vtkGetFilePathMacro(OutputFileName)
Set the output filename.
bool Convert()
Converts the input file to new format and writes out the output file.
int GetOriginAndSpacing(vtkXMLDataElement *ePrimary, double origin[3], double *&spacing)
static vtkXMLHierarchicalBoxDataFileConverter * New()
vtkSetFilePathMacro(InputFileName)
Set the input filename.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(InputFileName)
Set the input filename.
vtkXMLDataElement * ParseXML(const char *filename)
vtkSetFilePathMacro(OutputFileName)
Set the output filename.