VMTK
Loading...
Searching...
No Matches
vtkvmtkFDNEUTReader.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=========================================================================*/
27
28#ifndef __vtkvmtkFDNEUTReader_h
29#define __vtkvmtkFDNEUTReader_h
30
31#include "vtkvmtkWin32Header.h"
32#include "vtkUnstructuredGridReader.h"
33
34// VTK_FILEPATH hint was introduced in VTK_VERSION_CHECK(9,1,0)
35// (https://github.com/Kitware/VTK/commit/c30ddf9a6caedd65ae316080b0efd1833983844e)
36#ifndef VTK_FILEPATH
37#define VTK_FILEPATH
38#endif
39
40class VTK_VMTK_IO_EXPORT vtkvmtkFDNEUTReader : public vtkUnstructuredGridReader
41{
42 public:
43 vtkTypeMacro(vtkvmtkFDNEUTReader,vtkUnstructuredGridReader);
44 void PrintSelf(std::ostream& os, vtkIndent indent) override;
45
47
49
59
61
68 vtkSetMacro(GhostNodes,int);
69 vtkGetMacro(GhostNodes,int);
70 vtkBooleanMacro(GhostNodes,int);
72
74
79 vtkSetMacro(VolumeElementsOnly,int);
80 vtkGetMacro(VolumeElementsOnly,int);
81 vtkBooleanMacro(VolumeElementsOnly,int);
83
84 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
85
86 //BTX
87 enum
88 {
89 EDGE = 0,
95 };
96 //ETX
97
98 protected:
101
102 static void OneToZeroOffset(int npts, int* pts)
103 { for (int i=0; i<npts; i++) --pts[i]; }
104
106
109
110 private:
111 vtkvmtkFDNEUTReader(const vtkvmtkFDNEUTReader&); // Not implemented.
112 void operator=(const vtkvmtkFDNEUTReader&); // Not implemented.
113};
114
115#endif
Reads FDNEUT Fidap files.
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
static vtkvmtkFDNEUTReader * New()
static void OneToZeroOffset(int npts, int *pts)
#define VTK_FILEPATH