ODIN
ldrfilter.h
1 /***************************************************************************
2  ldrfilter.h - description
3  -------------------
4  begin : Thu Jul 6 2006
5  copyright : (C) 2000-2021 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 LDRFILTER_H
18 #define LDRFILTER_H
19 
20 #include <odinpara/ldrfunction.h>
21 
31 class LDRfilter : public LDRfunction, public StaticHandler<LDRfilter> {
32 
33  public:
34  LDRfilter(const STD_string& ldrlabel="unnamedLDRfilter") : LDRfunction(filterFunc,ldrlabel) {}
35 
36  LDRfilter(const LDRfilter& jf) : LDRfunction(jf) {}
37 
38  LDRfilter& operator = (const LDRfilter& jf) {LDRfunction::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