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=========================================================================*/
28#ifndef vtkXMLHierarchicalBoxDataFileConverter_h
29#define vtkXMLHierarchicalBoxDataFileConverter_h
30
31#include "vtkObject.h"
32#include "vtkIOXMLModule.h" // needed for export macro.
33
35
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent);
42
44
47 vtkSetStringMacro(InputFileName);
48 vtkGetStringMacro(InputFileName);
50
52
55 vtkSetStringMacro(OutputFileName);
56 vtkGetStringMacro(OutputFileName);
58
62 bool Convert();
63
64protected:
67
68 vtkXMLDataElement* ParseXML(const char* filename);
69
70 // Returns GridDescription. VTK_UNCHANGED for invalid/failure.
72 vtkXMLDataElement* ePrimary, double origin[3], double* &spacing);
73
76 char *FilePath;
77 vtkSetStringMacro(FilePath);
78
79private:
81 void operator=(const vtkXMLHierarchicalBoxDataFileConverter&) VTK_DELETE_FUNCTION;
82
83};
84
85#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
Represents an XML element and those nested inside.
converts older *.vth, *.vthb files to newer format.
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()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkXMLDataElement * ParseXML(const char *filename)
@ spacing
Definition: vtkX3D.h:481
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.