YaDICs
V04.14.a
Yet another Digital Image Correlation software: platform dedicated to 2/3D Fluid and Solid kinematics field measurements.
Main Page
Related Pages
Classes
Files
File List
All
Classes
Files
Functions
Variables
Pages
YaDICs_V04.14.a
Cmesh_import.h
Go to the documentation of this file.
1
/**********************************************************************
2
* Copyright (C) 2012, The YaDICs Project Developers.
3
* See the COPYRIGHT file at the top-level directory of this distribution ./COPYRIGHT.
4
* See ./COPYING file for copying and redistribution conditions.
5
*
6
* This file is part of YaDICs.
7
* YaDICs is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* YaDICs is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with YaDICs. If not, see <http://www.gnu.org/licenses/>.
19
*
20
* Information about how to use the software are provided at http://yadic.univ-lille1.fr/
21
**********************************************************************/
22
23
24
#ifndef CMESH_IMPORT
25
#define CMESH_IMPORT
26
27
37
#include "
Cmesh.h
"
38
39
40
41
template
<
typename
T,
typename
Timg>
42
class
Cmesh_import
:
public
Cmesh
<T,Timg>
43
{
44
45
public
:
46
47
std::string m_path;
48
49
50
Cmesh_import
() :
Cmesh<T,Timg>
()
51
{
// constructor
52
53
this->class_name =
"Cmesh_import"
;
54
55
}
56
57
58
59
virtual
void
load(
const
std::string &path) = 0;
60
61
virtual
int
exec(
const
Cimage<Timg>
&oImage)
62
{
//exec
63
64
int
error(0);
65
66
load(m_path);
67
68
Cmesh<T,Timg>::exec
(oImage);
69
70
return
error;
71
72
}
73
74
virtual
int
get_attributes(CParameterNetCDF &fp)
75
{
76
77
Cmesh<T,Timg>::get_attributes
(fp);
78
79
int
error(0);
80
std::string att;
81
82
att =
"path"
;
83
error = fp.loadAttribute(att,m_path);
84
85
}
86
87
88
};
89
90
#endif
Cmesh.h
Cmesh_import
Definition:
Cmesh_import.h:42
Cmesh
Definition:
Cmesh.h:61
Cimage
Definition:
Cimage.h:57
Generated on Mon Mar 2 2015 18:31:40 for YaDICs by
1.8.6