VMTK
Loading...
Searching...
No Matches
vtkvmtkXdaReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
30
31#ifndef __vtkvmtkXdaReader_h
32#define __vtkvmtkXdaReader_h
33
34#include "vtkvmtkWin32Header.h"
35#include "vtkUnstructuredGridReader.h"
36
37class vtkCell;
38class vtkIdList;
39
40// VTK_FILEPATH hint was introduced in VTK_VERSION_CHECK(9,1,0)
41// (https://github.com/Kitware/VTK/commit/c30ddf9a6caedd65ae316080b0efd1833983844e)
42#ifndef VTK_FILEPATH
43#define VTK_FILEPATH
44#endif
45
46class VTK_VMTK_IO_EXPORT vtkvmtkXdaReader : public vtkUnstructuredGridReader
47{
48public:
50 vtkTypeMacro(vtkvmtkXdaReader,vtkUnstructuredGridReader);
51 void PrintSelf(std::ostream& os, vtkIndent indent) override;
52
54
59 vtkSetStringMacro(BoundaryDataArrayName);
60 vtkGetStringMacro(BoundaryDataArrayName);
62
63 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
64
65protected:
68
69 static void GetLibmeshConnectivity(int cellType, vtkIdList* libmeshConnectivity);
70
72
73private:
74 vtkvmtkXdaReader(const vtkvmtkXdaReader&); // Not implemented.
75 void operator=(const vtkvmtkXdaReader&); // Not implemented.
76};
77
78#endif
void PrintSelf(std::ostream &os, vtkIndent indent) override
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
static void GetLibmeshConnectivity(int cellType, vtkIdList *libmeshConnectivity)
static vtkvmtkXdaReader * New()
#define VTK_FILEPATH