VMTK
Loading...
Searching...
No Matches
vtkvmtkTetGenReader.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=========================================================================*/
25
26#ifndef __vtkvmtkTetGenReader_h
27#define __vtkvmtkTetGenReader_h
28
29#include "vtkvmtkWin32Header.h"
30#include "vtkUnstructuredGridReader.h"
31
32#include <vector>
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 vtkvmtkTetGenReader : public vtkUnstructuredGridReader
41{
42public:
43 vtkTypeMacro(vtkvmtkTetGenReader,vtkUnstructuredGridReader);
44 void PrintSelf(std::ostream& os, vtkIndent indent) override;
45
47
49
57 vtkSetStringMacro(BoundaryDataArrayName);
58 vtkGetStringMacro(BoundaryDataArrayName);
60
61 int ReadMeshSimple(VTK_FILEPATH const std::string& fname, vtkDataObject* output) override;
62
63protected:
66
67//BTX
68 void Tokenize(const std::string& str, std::vector<std::string>& tokens, const std::string& delimiters);
69//ETX
70
72
73private:
74 vtkvmtkTetGenReader(const vtkvmtkTetGenReader&); // Not implemented.
75 void operator=(const vtkvmtkTetGenReader&); // Not implemented.
76};
77
78#endif
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
void Tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters)
static vtkvmtkTetGenReader * New()
#define VTK_FILEPATH