added earth-registration support
This commit is contained in:
@@ -10,6 +10,7 @@ enum class ParamType {
|
||||
BOOL,
|
||||
INT,
|
||||
FLOAT,
|
||||
DOUBLE,
|
||||
STRING,
|
||||
FILE,
|
||||
POINT2,
|
||||
@@ -23,6 +24,7 @@ private:
|
||||
bool _bool;
|
||||
int _int;
|
||||
float _float;
|
||||
double _double;
|
||||
float _arr[3];
|
||||
};
|
||||
std::string _str;
|
||||
@@ -35,6 +37,7 @@ public:
|
||||
|
||||
void setValue(const std::string& val) {_str = val;}
|
||||
void setValue(const float val) {_float = val;}
|
||||
void setValue(const double val) {_double = val;}
|
||||
void setValue(const int val) {_int = val;}
|
||||
void setValue(const bool val) {_bool = val;}
|
||||
void setValue(const Point2 p) {_arr[0] = p.x; _arr[1] = p.y;}
|
||||
@@ -44,6 +47,7 @@ public:
|
||||
Point3 toPoint3() const {return Point3(_arr[0], _arr[1], _arr[2]);}
|
||||
std::string toString() const {return _str;}
|
||||
float toFloat() const {return _float;}
|
||||
double toDouble() const {return _double;}
|
||||
int toInt() const {return _int;}
|
||||
bool toBool() const {return _bool;}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user