VMTK
Loading...
Searching...
No Matches
IO
vtkvmtkTetGenReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: 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
40
class
VTK_VMTK_IO_EXPORT
vtkvmtkTetGenReader
:
public
vtkUnstructuredGridReader
41
{
42
public
:
43
vtkTypeMacro(
vtkvmtkTetGenReader
,vtkUnstructuredGridReader);
44
void
PrintSelf
(std::ostream& os, vtkIndent indent)
override
;
45
46
static
vtkvmtkTetGenReader
*
New
();
47
49
57
vtkSetStringMacro(
BoundaryDataArrayName
);
58
vtkGetStringMacro(
BoundaryDataArrayName
);
60
61
int
ReadMeshSimple
(
VTK_FILEPATH
const
std::string& fname, vtkDataObject* output)
override
;
62
63
protected
:
64
vtkvmtkTetGenReader
();
65
~vtkvmtkTetGenReader
();
66
67
//BTX
68
void
Tokenize
(
const
std::string& str, std::vector<std::string>& tokens,
const
std::string& delimiters);
69
//ETX
70
71
char
*
BoundaryDataArrayName
;
72
73
private
:
74
vtkvmtkTetGenReader
(
const
vtkvmtkTetGenReader
&);
// Not implemented.
75
void
operator=(
const
vtkvmtkTetGenReader
&);
// Not implemented.
76
};
77
78
#endif
vtkvmtkTetGenReader::ReadMeshSimple
int ReadMeshSimple(const std::string &fname, vtkDataObject *output) override
Definition
vtkvmtkTetGenReader.cxx:75
vtkvmtkTetGenReader::PrintSelf
void PrintSelf(std::ostream &os, vtkIndent indent) override
Definition
vtkvmtkTetGenReader.cxx:290
vtkvmtkTetGenReader::Tokenize
void Tokenize(const std::string &str, std::vector< std::string > &tokens, const std::string &delimiters)
Definition
vtkvmtkTetGenReader.cxx:57
vtkvmtkTetGenReader::BoundaryDataArrayName
char * BoundaryDataArrayName
Definition
vtkvmtkTetGenReader.h:71
vtkvmtkTetGenReader::New
static vtkvmtkTetGenReader * New()
vtkvmtkTetGenReader::vtkvmtkTetGenReader
vtkvmtkTetGenReader()
Definition
vtkvmtkTetGenReader.cxx:43
VTK_FILEPATH
#define VTK_FILEPATH
Definition
vtkvmtkTetGenReader.h:37
Generated by
1.15.0