Classes | Namespaces | Defines | Typedefs
Settings.h File Reference
#include "find_object/FindObjectExp.h"
#include "find_object/Version.h"
#include <QtCore/QMap>
#include <QtCore/QVariant>
#include <QtCore/QByteArray>
#include <opencv2/features2d/features2d.hpp>
Include dependency graph for Settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  find_object::DescriptorExtractor
class  find_object::KeypointDetector
class  find_object::Settings

Namespaces

namespace  find_object

Defines

#define PARAMETER(PREFIX, NAME, TYPE, DEFAULT_VALUE, DESCRIPTION)
#define PARAMETER_COND(PREFIX, NAME, TYPE, COND, DEFAULT_VALUE1, DEFAULT_VALUE2, DESCRIPTION)
#define PARAMETER_GETTER_bool(PREFIX, NAME)   static bool get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toBool();}
#define PARAMETER_GETTER_double(PREFIX, NAME)   static double get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toDouble();}
#define PARAMETER_GETTER_float(PREFIX, NAME)   static float get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toFloat();}
#define PARAMETER_GETTER_int(PREFIX, NAME)   static int get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toInt();}
#define PARAMETER_GETTER_QString(PREFIX, NAME)   static QString get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toString();}
#define PARAMETER_GETTER_uint(PREFIX, NAME)   static uint get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toUInt();}

Typedefs

typedef QMap< QString, QString > find_object::DescriptionsMap
typedef QMap< QString, QVariant > find_object::ParametersMap
typedef QMap< QString, QString > find_object::ParametersType
typedef unsigned int find_object::uint

Define Documentation

#define PARAMETER (   PREFIX,
  NAME,
  TYPE,
  DEFAULT_VALUE,
  DESCRIPTION 
)
Value:
public: \
                static QString k##PREFIX##_##NAME() {return QString(#PREFIX "/" #NAME);} \
                static TYPE default##PREFIX##_##NAME() {return DEFAULT_VALUE;} \
                static QString type##PREFIX##_##NAME() {return QString(#TYPE);} \
                static QString description##PREFIX##_##NAME() {return QString(DESCRIPTION);} \
                PARAMETER_GETTER_##TYPE(PREFIX, NAME) \
                static void set##PREFIX##_##NAME(const TYPE & value) {parameters_[#PREFIX "/" #NAME] = value;} \
        private: \
                class Dummy##PREFIX##_##NAME { \
                public: \
                        Dummy##PREFIX##_##NAME() { \
                                defaultParameters_.insert(#PREFIX "/" #NAME, QVariant(DEFAULT_VALUE)); \
                                parameters_.insert(#PREFIX "/" #NAME, DEFAULT_VALUE); \
                                parametersType_.insert(#PREFIX "/" #NAME, #TYPE); \
                                descriptions_.insert(#PREFIX "/" #NAME, DESCRIPTION);} \
                }; \
                Dummy##PREFIX##_##NAME dummy##PREFIX##_##NAME;

Definition at line 66 of file Settings.h.

#define PARAMETER_COND (   PREFIX,
  NAME,
  TYPE,
  COND,
  DEFAULT_VALUE1,
  DEFAULT_VALUE2,
  DESCRIPTION 
)
Value:
public: \
                static QString k##PREFIX##_##NAME() {return QString(#PREFIX "/" #NAME);} \
                static TYPE default##PREFIX##_##NAME() {return COND?DEFAULT_VALUE1:DEFAULT_VALUE2;} \
                static QString type##PREFIX##_##NAME() {return QString(#TYPE);} \
                static QString description##PREFIX##_##NAME() {return QString(DESCRIPTION);} \
                PARAMETER_GETTER_##TYPE(PREFIX, NAME) \
                static void set##PREFIX##_##NAME(const TYPE & value) {parameters_[#PREFIX "/" #NAME] = value;} \
        private: \
                class Dummy##PREFIX##_##NAME { \
                public: \
                        Dummy##PREFIX##_##NAME() { \
                                defaultParameters_.insert(#PREFIX "/" #NAME, QVariant(COND?DEFAULT_VALUE1:DEFAULT_VALUE2)); \
                                parameters_.insert(#PREFIX "/" #NAME, COND?DEFAULT_VALUE1:DEFAULT_VALUE2); \
                                parametersType_.insert(#PREFIX "/" #NAME, #TYPE); \
                                descriptions_.insert(#PREFIX "/" #NAME, DESCRIPTION);} \
                }; \
                Dummy##PREFIX##_##NAME dummy##PREFIX##_##NAME;

Definition at line 85 of file Settings.h.

#define PARAMETER_GETTER_bool (   PREFIX,
  NAME 
)    static bool get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toBool();}

Definition at line 53 of file Settings.h.

#define PARAMETER_GETTER_double (   PREFIX,
  NAME 
)    static double get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toDouble();}

Definition at line 61 of file Settings.h.

#define PARAMETER_GETTER_float (   PREFIX,
  NAME 
)    static float get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toFloat();}

Definition at line 59 of file Settings.h.

#define PARAMETER_GETTER_int (   PREFIX,
  NAME 
)    static int get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toInt();}

Definition at line 55 of file Settings.h.

#define PARAMETER_GETTER_QString (   PREFIX,
  NAME 
)    static QString get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toString();}

Definition at line 63 of file Settings.h.

#define PARAMETER_GETTER_uint (   PREFIX,
  NAME 
)    static uint get##PREFIX##_##NAME() {return parameters_.value(#PREFIX "/" #NAME).toUInt();}

Definition at line 57 of file Settings.h.



find_object_2d
Author(s): Mathieu Labbe
autogenerated on Thu Aug 27 2015 13:00:33