gepetto-viewer 6.1.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
gepetto::viewer::RangedPropertyTpl< T, RangeT > Class Template Reference

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

Inheritance diagram for gepetto::viewer::RangedPropertyTpl< T, RangeT >:
Collaboration diagram for gepetto::viewer::RangedPropertyTpl< T, RangeT >:

Public Types

typedef boost::function< void(const T &)> Setter_t
typedef boost::function< T(void)> Getter_t
typedef shared_ptr< RangedPropertyTpl > Ptr_t
Public Types inherited from gepetto::viewer::PropertyTpl< T >
typedef boost::function< void(const T &)> Setter_t
typedef boost::function< T(void)> Getter_t
typedef shared_ptr< PropertyTpl > Ptr_t

Public Member Functions

 RangedPropertyTpl (const std::string &name, const Getter_t &g, const Setter_t &s)
virtual ~RangedPropertyTpl ()
Public Member Functions inherited from gepetto::viewer::PropertyTpl< T >
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_t & getter () const
void getter (const Getter_t &g)
const Setter_t & setter () const
void setter (const Setter_t &s)
virtual QWidget * guiEditor ()
Public Member Functions inherited from gepetto::viewer::Property
bool get (void)
bool get (bool &v)
bool get (int &v)
bool get (float &v)
bool get (std::string &v)
bool get (osgVector2 &v)
bool get (osgVector3 &v)
bool get (osgVector4 &v)
bool get (Configuration &v)
bool get (double &v)
bool get (QString &v)
bool get (QColor &v)
const std::string & name () const
Public Member Functions inherited from gepetto::viewer::Range< RangeT >
 Range ()
bool hasMin () const
bool hasMax () const
bool hasRange () const
void setRange (const RangeT &minimum, const RangeT &maximum)

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, 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))
Static Public Member Functions inherited from gepetto::viewer::PropertyTpl< T >
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))

Additional Inherited Members

Public Slots inherited from gepetto::viewer::Property
bool set (void)
bool set (const bool &v)
bool set (const int &v)
bool set (const float &v)
bool set (const std::string &v)
bool set (const osgVector2 &v)
bool set (const osgVector3 &v)
bool set (const osgVector4 &v)
bool set (const Configuration &v)
bool set (const double &v)
bool set (const QString &v)
bool set (const QColor &v)
Signals inherited from gepetto::viewer::Property
void valueChanged (void)
void valueChanged (const bool &v)
void valueChanged (const int &v)
void valueChanged (const float &v)
void valueChanged (const std::string &v)
void valueChanged (const osgVector2 &v)
void valueChanged (const osgVector3 &v)
void valueChanged (const osgVector4 &v)
void valueChanged (const Configuration &v)
void valueChanged (const double &v)
void valueChanged (const QString &v)
void valueChanged (const QColor &v)
Public Attributes inherited from gepetto::viewer::Range< RangeT >
RangeT min
RangeT max
RangeT step
bool adaptiveDecimal
Protected Member Functions inherited from gepetto::viewer::PropertyTpl< T >
virtual bool impl_set (const T &value)
virtual bool impl_get (T &value)
Protected Member Functions inherited from gepetto::viewer::Property
virtual bool impl_set (void)
virtual bool impl_set (const bool &v)
virtual bool impl_set (const int &v)
virtual bool impl_set (const float &v)
virtual bool impl_set (const std::string &v)
virtual bool impl_set (const osgVector2 &v)
virtual bool impl_set (const osgVector3 &v)
virtual bool impl_set (const osgVector4 &v)
virtual bool impl_set (const Configuration &v)
virtual bool impl_get (void)
virtual bool impl_get (bool &v)
virtual bool impl_get (int &v)
virtual bool impl_get (float &v)
virtual bool impl_get (std::string &v)
virtual bool impl_get (osgVector2 &v)
virtual bool impl_get (osgVector3 &v)
virtual bool impl_get (osgVector4 &v)
virtual bool impl_get (Configuration &v)
 Property (const std::string &name)
virtual ~Property ()
void invalidGet () const
void invalidSet () const
Protected Attributes inherited from gepetto::viewer::Property
const std::string name_

Member Typedef Documentation

◆ Getter_t

template<typename T, typename RangeT>
typedef boost::function<T(void)> gepetto::viewer::RangedPropertyTpl< T, RangeT >::Getter_t

◆ Ptr_t

template<typename T, typename RangeT>
typedef shared_ptr<RangedPropertyTpl> gepetto::viewer::RangedPropertyTpl< T, RangeT >::Ptr_t

◆ Setter_t

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

Constructor & Destructor Documentation

◆ RangedPropertyTpl()

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

◆ ~RangedPropertyTpl()

template<typename T, typename RangeT>
virtual gepetto::viewer::RangedPropertyTpl< T, RangeT >::~RangedPropertyTpl ( )
inlinevirtual

Member Function Documentation

◆ create() [1/5]

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

◆ create() [2/5]

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

◆ create() [3/5]

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

◆ create() [4/5]

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

◆ create() [5/5]

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

◆ createRO()

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

◆ createWO() [1/2]

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

◆ createWO() [2/2]

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

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