ldpk
tde4_ldp_noop_debugging.h
Go to the documentation of this file.
1 #ifndef tde4_ldp_noop_debugging_sdv
2 #define tde4_ldp_noop_debugging_sdv
3 
4 #include <ldpk/ldpk_ldp_builtin.h>
5 
8 
10 template <class VEC2,class MAT2>
12  {
13 private:
14  typedef VEC2 vec2_type;
15  typedef MAT2 mat2_type;
17 
18  static const char* _para[0];
19 
20  bool decypher(const char* name,int& i)
21  {
22  return false;
23  }
24  bool initializeParameters()
25  {
26  typedef base_type bt;
27  bt::check_builtin_parameters();
28  return true;
29  }
30  bool getNumParameters(int& n)
31  {
32  n = 0;
33  return true;
34  }
35  bool getParameterName(int i,char* identifier)
36  {
37  strcpy(identifier,_para[i]);
38  return true;
39  }
40  bool setParameterValue(const char *identifier,double v)
41  {
42  return true;
43  }
44  virtual bool undistort(double x0,double y0,double &x1,double &y1)
45  {
46  x1 = x0;
47  y1 = y0;
48  return true;
49  }
50  virtual bool distort(double x0,double y0,double &x1,double &y1)
51  {
52  x1 = x0;
53  y1 = y0;
54  return true;
55  }
56  virtual bool distort(double x0,double y0,double x1_start,double y1_start,double &x1,double &y1)
57  {
58  x1 = x0;
59  y1 = y0;
60  return true;
61  }
62 public:
63 // Mutex initialized and destroyed in baseclass.
65  { }
67  { }
68  bool getModelName(char *name)
69  {
70 #ifdef LDPK_COMPILE_AS_PLUGIN_SDV
71  strcpy(name,"3DE4 Noop, Debugging [Plugin]");
72 #else
73  strcpy(name,"3DE4 Noop, Debugging Degree 4");
74 #endif
75  return true;
76  }
77  bool getParameterType(const char* identifier,tde4_ldp_ptype& ptype)
78  {
79  ptype = TDE4_LDP_ADJUSTABLE_DOUBLE;
80  return true;
81  }
82  bool getParameterDefaultValue(const char* identifier,double& v)
83  {
84  v = 0.0;
85  return true;
86  }
87  bool getParameterRange(const char* identifier,double& a,double& b)
88  {
89  return true;
90  }
91  bool getJacobianMatrix(double x0,double y0,double& m00,double& m01,double& m10,double& m11)
92  {
93  m00 = m11 = 1.0;
94  m01 = m10 = 0.0;
95  return true;
96  }
97  };
98 
99 template <class VEC2,class MAT2>
101  };
102 
103 #endif
bool getParameterDefaultValue(const char *identifier, double &v)
returns default value for given parameter (maximum length of "char *v": 1000 bytes)......
Definition: tde4_ldp_noop_debugging.h:82
bool getModelName(char *name)
returns a name for the model as to show up in the GUI (maximum length of "name": 100 bytes)...
Definition: tde4_ldp_noop_debugging.h:68
This class handles the built-in parameter and the lookup table. You may find it useful for your own d...
Definition: ldpk_ldp_builtin.h:31
bool getParameterRange(const char *identifier, double &a, double &b)
returns range for adjustable double parameters...
Definition: tde4_ldp_noop_debugging.h:87
bool getJacobianMatrix(double x0, double y0, double &m00, double &m01, double &m10, double &m11)
calculate the Jacobian matrix of the undistort()-Method. Overwrite this, if you know the Jacobian for...
Definition: tde4_ldp_noop_debugging.h:91
Plugin class for debugging.
Definition: tde4_ldp_noop_debugging.h:11
bool getParameterType(const char *identifier, tde4_ldp_ptype &ptype)
returns type of given parameter... The method should return false, if the parameter addressed by iden...
Definition: tde4_ldp_noop_debugging.h:77