gepetto-viewer  5.0.0
An user-friendly Graphical Interface
gepetto::viewer::PropertyTpl< T > Class Template Reference

#include <gepetto/viewer/node-property.h>

Inheritance diagram for gepetto::viewer::PropertyTpl< T >:

Public Types

typedef boost::function< void(const T &)> Setter_t
 
typedef boost::function< T(void)> Getter_t
 
typedef shared_ptr< PropertyTplPtr_t
 

Public Member Functions

virtual std::string type ()
 
 PropertyTpl (const std::string &name, const Getter_t &g, const Setter_t &s)
 
virtual ~PropertyTpl ()
 
bool hasReadAccess () const
 
bool hasWriteAccess () const
 
const Getter_tgetter () const
 
void getter (const Getter_t &g)
 
const Setter_tsetter () const
 
void setter (const Setter_t &s)
 
virtual QWidget * guiEditor ()
 

Static Public Member Functions

static Ptr_t create (const std::string &name, const Getter_t &g, const Setter_t &s)
 
static Ptr_t create (const std::string &name, const Getter_t &g)
 
static Ptr_t create (const std::string &name, const Setter_t &s)
 
template<typename Obj >
static Getter_t getterFromMemberFunction (Obj *obj, const T &(Obj::*mem_func)() const)
 
template<typename Obj >
static Getter_t getterFromMemberFunction (Obj *obj, T(Obj::*mem_func)() const)
 
template<typename Obj >
static Setter_t setterFromMemberFunction (Obj *obj, void(Obj::*mem_func)(const T &))
 
template<typename Obj >
static Setter_t setterFromMemberFunction (Obj *obj, void(Obj::*mem_func)(T))
 
template<typename Obj , typename RetType >
static Ptr_t create (const std::string &name, Obj *obj, RetType(Obj::*mem_get)() const, void(Obj::*mem_set)(const T &))
 
template<typename Obj , typename RetType >
static Ptr_t create (const std::string &name, Obj *obj, RetType(Obj::*mem_get)() const, void(Obj::*mem_set)(T))
 
template<typename Obj , typename RetType >
static Ptr_t createRO (const std::string &name, Obj *obj, RetType(Obj::*mem_get)() const)
 
template<typename Obj >
static Ptr_t createWO (const std::string &name, Obj *obj, void(Obj::*mem_set)(const T &))
 
template<typename Obj , typename RetType >
static Ptr_t createWO (const std::string &name, Obj *obj, void(Obj::*mem_set)(T))
 

Protected Member Functions

virtual bool impl_set (const T &value)
 
virtual bool impl_get (T &value)
 

Member Typedef Documentation

◆ Getter_t

template<typename T >
typedef boost::function<T(void)> gepetto::viewer::PropertyTpl< T >::Getter_t

◆ Ptr_t

template<typename T >
typedef shared_ptr<PropertyTpl> gepetto::viewer::PropertyTpl< T >::Ptr_t

◆ Setter_t

template<typename T >
typedef boost::function<void(const T&)> gepetto::viewer::PropertyTpl< T >::Setter_t

Constructor & Destructor Documentation

◆ PropertyTpl()

template<typename T >
gepetto::viewer::PropertyTpl< T >::PropertyTpl ( const std::string &  name,
const Getter_t g,
const Setter_t s 
)
inline

◆ ~PropertyTpl()

template<typename T >
virtual gepetto::viewer::PropertyTpl< T >::~PropertyTpl ( )
inlinevirtual

Member Function Documentation

◆ create() [1/5]

template<typename T >
static Ptr_t gepetto::viewer::PropertyTpl< T >::create ( const std::string &  name,
const Getter_t g 
)
inlinestatic

◆ create() [2/5]

template<typename T >
static Ptr_t gepetto::viewer::PropertyTpl< T >::create ( const std::string &  name,
const Getter_t g,
const Setter_t s 
)
inlinestatic

◆ create() [3/5]

template<typename T >
static Ptr_t gepetto::viewer::PropertyTpl< T >::create ( const std::string &  name,
const Setter_t s 
)
inlinestatic

◆ create() [4/5]

template<typename T >
template<typename Obj , typename RetType >
static Ptr_t gepetto::viewer::PropertyTpl< T >::create ( const std::string &  name,
Obj *  obj,
RetType(Obj::*)() const  mem_get,
void(Obj::*)(const T &)  mem_set 
)
inlinestatic

◆ create() [5/5]

template<typename T >
template<typename Obj , typename RetType >
static Ptr_t gepetto::viewer::PropertyTpl< T >::create ( const std::string &  name,
Obj *  obj,
RetType(Obj::*)() const  mem_get,
void(Obj::*)(T)  mem_set 
)
inlinestatic

◆ createRO()

template<typename T >
template<typename Obj , typename RetType >
static Ptr_t gepetto::viewer::PropertyTpl< T >::createRO ( const std::string &  name,
Obj *  obj,
RetType(Obj::*)() const  mem_get 
)
inlinestatic

◆ createWO() [1/2]

template<typename T >
template<typename Obj >
static Ptr_t gepetto::viewer::PropertyTpl< T >::createWO ( const std::string &  name,
Obj *  obj,
void(Obj::*)(const T &)  mem_set 
)
inlinestatic

◆ createWO() [2/2]

template<typename T >
template<typename Obj , typename RetType >
static Ptr_t gepetto::viewer::PropertyTpl< T >::createWO ( const std::string &  name,
Obj *  obj,
void(Obj::*)(T)  mem_set 
)
inlinestatic

◆ getter() [1/2]

template<typename T >
const Getter_t& gepetto::viewer::PropertyTpl< T >::getter ( ) const
inline

◆ getter() [2/2]

template<typename T >
void gepetto::viewer::PropertyTpl< T >::getter ( const Getter_t g)
inline

◆ getterFromMemberFunction() [1/2]

template<typename T >
template<typename Obj >
static Getter_t gepetto::viewer::PropertyTpl< T >::getterFromMemberFunction ( Obj *  obj,
const T &(Obj::*)() const  mem_func 
)
inlinestatic

◆ getterFromMemberFunction() [2/2]

template<typename T >
template<typename Obj >
static Getter_t gepetto::viewer::PropertyTpl< T >::getterFromMemberFunction ( Obj *  obj,
T(Obj::*)() const  mem_func 
)
inlinestatic

◆ guiEditor()

template<typename T >
virtual QWidget* gepetto::viewer::PropertyTpl< T >::guiEditor ( )
inlinevirtual

Reimplemented in gepetto::viewer::EnumProperty.

◆ hasReadAccess()

template<typename T >
bool gepetto::viewer::PropertyTpl< T >::hasReadAccess ( ) const
inline

◆ hasWriteAccess()

template<typename T >
bool gepetto::viewer::PropertyTpl< T >::hasWriteAccess ( ) const
inline

◆ impl_get()

template<typename T >
virtual bool gepetto::viewer::PropertyTpl< T >::impl_get ( T &  value)
inlineprotectedvirtual

◆ impl_set()

template<typename T >
virtual bool gepetto::viewer::PropertyTpl< T >::impl_set ( const T &  value)
inlineprotectedvirtual

◆ setter() [1/2]

template<typename T >
const Setter_t& gepetto::viewer::PropertyTpl< T >::setter ( ) const
inline

◆ setter() [2/2]

template<typename T >
void gepetto::viewer::PropertyTpl< T >::setter ( const Setter_t s)
inline

◆ setterFromMemberFunction() [1/2]

template<typename T >
template<typename Obj >
static Setter_t gepetto::viewer::PropertyTpl< T >::setterFromMemberFunction ( Obj *  obj,
void(Obj::*)(const T &)  mem_func 
)
inlinestatic

◆ setterFromMemberFunction() [2/2]

template<typename T >
template<typename Obj >
static Setter_t gepetto::viewer::PropertyTpl< T >::setterFromMemberFunction ( Obj *  obj,
void(Obj::*)(T)  mem_func 
)
inlinestatic

◆ type()

template<typename T >
virtual std::string gepetto::viewer::PropertyTpl< T >::type ( )
inlinevirtual

Reimplemented in gepetto::viewer::EnumProperty.


The documentation for this class was generated from the following file: