Debian Codegraph @

src/readers/aslVTKFormatReaders.h

raw
1 /*
2 * Advanced Simulation Library <http://asl.org.il>
3 *
4 * Copyright 2015 Avtech Scientific <http://avtechscientific.com>
5 *
6 *
7 * This file is part of Advanced Simulation Library (ASL).
8 *
9 * ASL is free software: you can redistribute it and/or modify it
10 * under the terms of the GNU Affero General Public License as
11 * published by the Free Software Foundation, version 3 of the License.
12 *
13 * ASL is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Affero General Public License for more details.
17 *
18 * You should have received a copy of the GNU Affero General Public License
19 * along with ASL. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23
24 #ifndef ASLVTKFORMATREADERS_H
25 #define ASLVTKFORMATREADERS_H
26
27
28 #include <stdlib.h>
29
30 #include <iostream>
31 #include <fstream>
32 #include <string>
33 #include <memory>
34 #include <acl/aclHardware.h>
35 #include <data/aslDataWrapper.h>
36 #include <aslGenerators.h>
37
38 using namespace std;
39
40 namespace agl
41 {
42 class TrianglesList;
43 typedef std::shared_ptr<TrianglesList> SPTrianglesList;
44 }
45
46 namespace asl
47 {
48 using namespace asl;
49
50 // std::shared_ptr<DataWithGhostNodesACLData> SPDataWithGhostNodesACLData;
51
52 /// Reads \p arrayNum of data from a file (detecting its format through its extension)
53 /// to asl data and puts it in \p queue;
54 /// returns asl data;
55 /// Supported formats: .vtk .vti .mnc .dcm
56 /// \ingroup IO
57 SPDataWithGhostNodesACLData read(const string & fileName,
58 unsigned int arrayNum,
59 acl::CommandQueue queue = acl::hardware.defaultQueue);
60
61 /// Reads \p arrayNum of data from a file (detecting its format through its extension)
62 /// to asl data and puts it in \p queue;
63 /// returns asl data;
64 /// Supported formats: .vtp .stl
65 /// \ingroup IO
66 SPDataWithGhostNodesACLData readSurface(const string & fileName,
67 double dx,
68 acl::CommandQueue queue = acl::hardware.defaultQueue);
69
70 SPDataWithGhostNodesACLData readSurface(const string & fileName,
71 Block & b,
72 acl::CommandQueue queue = acl::hardware.defaultQueue);
73
74 // read surface with offsets retative to the surface outframe
75 SPDataWithGhostNodesACLData readSurface(const string & fileName,
76 double dx,
77 double offset_X0, double offset_XE,
78 double offset_Y0, double offset_YE,
79 double offset_Z0, double offset_ZE,
80 acl::CommandQueue queue = acl::hardware.defaultQueue);
81
82 } // asl
83
84 #endif // ASLVTKFORMATREADERS_H
85