YaDICs  V04.14.a
Yet another Digital Image Correlation software: platform dedicated to 2/3D Fluid and Solid kinematics field measurements.
 All Classes Files Functions Variables Pages
CshapeFunction.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 CSHAPEFUNCTION
25 #define CSHAPEFUNCTION
26 
34 #define cimg_plugin "plugins/add_fileformat.h"
35 #define cimg_use_netcdf
36 #ifdef cimg_use_netcdf
37  #include "../NetCDF.Tool/struct_parameter_NetCDF.h"
38  #define cimg_plugin2 "plugins/netcdf_file_format4CImg2.h"
39  #define cimglist_plugin2 "plugins/netcdf_file_format4CImgList2.h"
40  #include "../CImg.Tool/CImg_NetCDF.h"
41 #endif
42 
43 #include "Cmesh.h"
44 
47 template<typename T,typename Timg>
49 {
50 
51  public:
52 
53  std::string class_name, m_type, m_name;
54  int m_dof;
55  float m_pi;
56 
57  std::vector<std::string> m_mods;//name set of required modes
58 
59  bool m_verbose;
60  const char* m_paramPath;
61  int _3D;
62 
64  {// constructor
65 
66  class_name = "ShapeFunction : mother";
67 
68  m_pi = 3.1415;
69 
70  }
71 
72  virtual void init(CParameterNetCDF &fp) = 0;
73  virtual void exec(const CImg<Timg> &box, const std::vector<T> &x, CImgList<T> &N) = 0;
74 
75 };
76 
77 #endif
This is the mother class of shape function objets (virtual pure).
Definition: CshapeFunction.h:48