VTK
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 =========================================================================*/
27 #ifndef vtkXMLHierarchicalBoxDataFileConverter_h
28 #define vtkXMLHierarchicalBoxDataFileConverter_h
29 
30 #include "vtkObject.h"
31 #include "vtkIOXMLModule.h" // needed for export macro.
32 
33 class vtkXMLDataElement;
34 
36 {
37 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkSetStringMacro(InputFileName);
45  vtkGetStringMacro(InputFileName);
47 
49 
50  vtkSetStringMacro(OutputFileName);
51  vtkGetStringMacro(OutputFileName);
53 
55  bool Convert();
56 
57 //BTX
58 protected:
61 
62  vtkXMLDataElement* ParseXML(const char* filename);
63 
64  // Returns GridDescription. VTK_UNCHANGED for invalid/failure.
65  int GetOriginAndSpacing(
66  vtkXMLDataElement* ePrimary, double origin[3], double* &spacing);
67 
70  char *FilePath;
71  vtkSetStringMacro(FilePath);
72 
73 private:
75  void operator=(const vtkXMLHierarchicalBoxDataFileConverter&); // Not implemented.
76 //ETX
77 };
78 
79 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
Represents an XML element and those nested inside.
converts older *.vth, *.vthb files to newer format.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
static vtkObject * New()