jdxfilter.h
1 /***************************************************************************
2  jdxfilter.h - description
3  -------------------
4  begin : Thu Jul 6 2006
5  copyright : (C) 2000-2014 by Thies H. Jochimsen
6  email : thies@jochimsen.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef JDXFILTER_H
18 #define JDXFILTER_H
19 
20 #include <odinpara/jdxfunction.h>
21 
31 class JDXfilter : public JDXfunction, public StaticHandler<JDXfilter> {
32 
33  public:
34  JDXfilter(const STD_string& jdxlabel="unnamedJDXfilter") : JDXfunction(filterFunc,jdxlabel) {}
35 
36  JDXfilter(const JDXfilter& jf) : JDXfunction(jf) {}
37 
38  JDXfilter& operator = (const JDXfilter& jf) {JDXfunction::operator = (jf); return *this;}
39 
40  float calculate (float rel_kradius) const {
41  if(allocated_function) return allocated_function->calculate_filter(rel_kradius);
42  else return 0.0;
43  }
44 
45 
46  static void init_static();
47  static void destroy_static();
48 
49 };
50 
51 
55 #endif
56 
57