gepetto::viewer::VoidProperty Class Reference

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

Inheritance diagram for gepetto::viewer::VoidProperty:
Collaboration diagram for gepetto::viewer::VoidProperty:

Public Types

typedef boost::function< void(void)> Function_t
 
typedef shared_ptr< VoidPropertyPtr_t
 

Public Member Functions

virtual std::string type ()
 
 VoidProperty (const std::string &name, const Function_t &f)
 
virtual ~VoidProperty ()
 
bool hasReadAccess () const
 
bool hasWriteAccess () const
 
const Function_tfunction () const
 
void function (const Function_t &f)
 
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
 

Static Public Member Functions

static Ptr_t create (const std::string &name, const Function_t &f)
 
template<typename Obj , typename ReturnType >
static Function_t memberFunction (Obj *obj, ReturnType(Obj::*mem_func)())
 
template<typename Obj , typename ReturnType >
static Function_t memberFunction (Obj *obj, ReturnType(Obj::*mem_func)() const)
 

Protected Member Functions

bool impl_get (void)
 
bool impl_set (void)
 
- Protected Member Functions inherited from gepetto::viewer::Property
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 (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
 

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)
 
- Protected Attributes inherited from gepetto::viewer::Property
const std::string name_
 

Member Typedef Documentation

◆ Function_t

typedef boost::function<void (void)> gepetto::viewer::VoidProperty::Function_t

◆ Ptr_t

Constructor & Destructor Documentation

◆ VoidProperty()

gepetto::viewer::VoidProperty::VoidProperty ( const std::string &  name,
const Function_t f 
)
inline

◆ ~VoidProperty()

virtual gepetto::viewer::VoidProperty::~VoidProperty ( )
inlinevirtual

Member Function Documentation

◆ create()

static Ptr_t gepetto::viewer::VoidProperty::create ( const std::string &  name,
const Function_t f 
)
inlinestatic

◆ function() [1/2]

const Function_t& gepetto::viewer::VoidProperty::function ( ) const
inline

◆ function() [2/2]

void gepetto::viewer::VoidProperty::function ( const Function_t f)
inline

◆ guiEditor()

QWidget* gepetto::viewer::VoidProperty::guiEditor ( )
virtual
Returns
NULL is this property is not editable, otherwise it returns a valid new QWidget.

Reimplemented from gepetto::viewer::Property.

◆ hasReadAccess()

bool gepetto::viewer::VoidProperty::hasReadAccess ( ) const
inlinevirtual

◆ hasWriteAccess()

bool gepetto::viewer::VoidProperty::hasWriteAccess ( ) const
inlinevirtual

◆ impl_get()

bool gepetto::viewer::VoidProperty::impl_get ( void  )
inlineprotectedvirtual

Reimplemented from gepetto::viewer::Property.

◆ impl_set()

bool gepetto::viewer::VoidProperty::impl_set ( void  )
inlineprotectedvirtual

Reimplemented from gepetto::viewer::Property.

◆ memberFunction() [1/2]

template<typename Obj , typename ReturnType >
static Function_t gepetto::viewer::VoidProperty::memberFunction ( Obj *  obj,
ReturnType(Obj::*)()  mem_func 
)
inlinestatic

◆ memberFunction() [2/2]

template<typename Obj , typename ReturnType >
static Function_t gepetto::viewer::VoidProperty::memberFunction ( Obj *  obj,
ReturnType(Obj::*)() const  mem_func 
)
inlinestatic

◆ type()

virtual std::string gepetto::viewer::VoidProperty::type ( )
inlinevirtual

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