OpenIndy-Core  0.2.0.43
fitfunction.h
Go to the documentation of this file.
1 #ifndef FITFUNCTION_H
2 #define FITFUNCTION_H
3 
4 #include "function.h"
5 
6 namespace oi{
7 
13 {
14  Q_OBJECT
15 
16 public:
17  FitFunction(QObject *parent = 0) : Function(parent){
18 
19  //needed elements are only observations
20  NeededElement element;
22  element.description = QString("Select as many observations as you want to be used to fit the target geometry.");
23  element.infinite = true;
24  this->neededElements.clear();
25  this->neededElements.append(element);
26 
27  }
28 
29  virtual ~FitFunction(){}
30 
31 protected:
32 
33  //####################################
34  //methods that cannot be reimplemented
35  //####################################
36 
37  bool exec(Station &station){ return Function::exec(station); }
38  bool exec(CoordinateSystem &coordinateSystem){ return Function::exec(coordinateSystem); }
39  bool exec(TrafoParam &trafoParam){ return Function::exec(trafoParam); }
40 
41 };
42 
43 }
44 
45 #ifndef STR
46 #define STR(x) #x
47 #endif
48 #ifndef STR2
49 #define STR2(x) STR(x)
50 #endif
51 
52 #ifndef CONCAT
53 #define CONCAT(a, b) a ## b
54 #endif
55 #ifndef CONCAT2
56 #define CONCAT2(a, b) CONCAT(a, b)
57 #endif
58 
59 #define FITFUNCTION_PREFIX de.openIndy.plugin.function.fitFunction.v
60 #define FitFunction_iidd STR2(CONCAT2(FITFUNCTION_PREFIX, PLUGIN_INTERFACE_VERSION))
61 
62 #endif // FITFUNCTION_H
bool exec(TrafoParam &trafoParam)
Function::exec.
Definition: fitfunction.h:39
bool infinite
Definition: function.h:55
The TrafoParam class.
Definition: trafoparam.h:23
FitFunction(QObject *parent=0)
Definition: fitfunction.h:17
ElementTypes typeOfElement
Definition: function.h:53
bool exec(Station &station)
Function::exec.
Definition: fitfunction.h:37
Definition: coordinatesystem.h:15
The Station class.
Definition: station.h:23
bool exec(const QPointer< FeatureWrapper > &feature)
Function::exec.
Definition: function.cpp:25
The FitFunction class Function that solves geometries by fitting them using observations.
Definition: fitfunction.h:12
The Function class.
Definition: function.h:170
QString description
Definition: function.h:54
Definition: types.h:82
The NeededElement class Save the needed element types that are necessary to solve a function...
Definition: function.h:51
The CoordinateSystem class.
Definition: coordinatesystem.h:25
virtual ~FitFunction()
Definition: fitfunction.h:29
bool exec(CoordinateSystem &coordinateSystem)
Function::exec.
Definition: fitfunction.h:38
#define OI_CORE_EXPORT
Definition: types.h:11