MIRA
Classes | Namespaces | Functions
PropertyHint.h File Reference

Provides property hints and attributes. More...

#include <assert.h>
#include <list>
#include <string>
#include <utility>
#include <utils/ToString.h>
Include dependency graph for PropertyHint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PropertyHint
 A property hint gives optional instructions to the property editor, i.e. More...
 

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 
 mira::PropertyHints
 Namespace to put all PropertyHint creation functions.
 

Functions

template<typename T >
PropertyHint minimum (const T &min)
 Sets the attribute "minimum" to the specified value. More...
 
template<typename T >
PropertyHint maximum (const T &max)
 Sets the attribute "maximum" to the specified value. More...
 
template<typename T >
PropertyHint step (const T &step)
 Sets the attribute "step" to the specified value. More...
 
template<typename T >
PropertyHint limits (const T &min, const T &max)
 Sets both attributes "minimum" and "maximum" to the specified values. More...
 
PropertyHint precision (int p)
 Sets the attribute "precision". More...
 
PropertyHint type (const std::string &t)
 Sets the attribute "type" to the specified value. More...
 
PropertyHint enumeration (const std::string &values)
 Sets the attribute "enumeration". More...
 
template<typename T >
PropertyHint slider (const T &min, const T &max, const T &s)
 Sets the attribute "type" to the value "slider" and sets the "minimum", "maximum" and "step" attributes. More...
 
template<typename T >
PropertyHint spin (const T &min, const T &max, const T &s)
 Sets the attribute "type" to the value "spinbox" and sets the "minimum", "maximum" and "step" attributes. More...
 

Detailed Description

Provides property hints and attributes.

Author
Erik Einhorn
Date
2011/01/04