gepetto::viewer::Properties Class Referenceabstract

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

Inheritance diagram for gepetto::viewer::Properties:

Classes

struct  Wrapper
 

Public Types

typedef std::map< std::string, WrapperPropertyMap_t
 

Public Member Functions

Propertyproperty (const std::string &name) const
 
bool callVoidProperty (const std::string &name) const
 
template<typename T >
bool getProperty (const std::string &name, T &value) const
 
template<typename T >
bool setProperty (const std::string &name, const T &value)
 Set a property and set this object as dirty. More...
 
bool hasProperty (const std::string &name) const
 
const PropertyMap_tproperties () const
 
void addProperty (const PropertyPtr_t &prop)
 Add a property and take ownership. More...
 
void addProperty (const std::string &name, const PropertyPtr_t &prop)
 Add a property and take ownership. More...
 
void addProperty (Property *prop)
 Add a property and leave ownership. More...
 
void addProperty (const std::string &name, Property *prop)
 Add a property and leave ownership. More...
 
QWidget * guiEditor ()
 

Protected Member Functions

virtual void setDirty (bool dirty=true)=0
 Called when a property is modified. More...
 

Protected Attributes

PropertyMap_t properties_
 

Member Typedef Documentation

◆ PropertyMap_t

typedef std::map<std::string, Wrapper> gepetto::viewer::Properties::PropertyMap_t

Member Function Documentation

◆ addProperty() [1/4]

void gepetto::viewer::Properties::addProperty ( const PropertyPtr_t &  prop)

Add a property and take ownership.

◆ addProperty() [2/4]

void gepetto::viewer::Properties::addProperty ( const std::string &  name,
const PropertyPtr_t &  prop 
)

Add a property and take ownership.

◆ addProperty() [3/4]

void gepetto::viewer::Properties::addProperty ( Property prop)

Add a property and leave ownership.

◆ addProperty() [4/4]

void gepetto::viewer::Properties::addProperty ( const std::string &  name,
Property prop 
)

Add a property and leave ownership.

◆ callVoidProperty()

bool gepetto::viewer::Properties::callVoidProperty ( const std::string &  name) const
inline

◆ getProperty()

template<typename T >
bool gepetto::viewer::Properties::getProperty ( const std::string &  name,
T &  value 
) const
inline

◆ guiEditor()

QWidget* gepetto::viewer::Properties::guiEditor ( )

◆ hasProperty()

bool gepetto::viewer::Properties::hasProperty ( const std::string &  name) const

◆ properties()

const PropertyMap_t& gepetto::viewer::Properties::properties ( ) const
inline

◆ property()

Property* gepetto::viewer::Properties::property ( const std::string &  name) const

Access a property

Note
do not use this to set the property value as it won't set the current node as dirty.

◆ setDirty()

virtual void gepetto::viewer::Properties::setDirty ( bool  dirty = true)
protectedpure virtual

Called when a property is modified.

Implemented in gepetto::viewer::Node.

◆ setProperty()

template<typename T >
bool gepetto::viewer::Properties::setProperty ( const std::string &  name,
const T &  value 
)
inline

Set a property and set this object as dirty.

Member Data Documentation

◆ properties_

PropertyMap_t gepetto::viewer::Properties::properties_
protected

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