JeVois
1.22
JeVois Smart Embedded Machine Vision Toolkit
|
|
#include <jevois/Core/PythonParameter.H>
Typed class to allow creation of Parameter in Python.
Definition at line 59 of file PythonParameter.H.
Public Member Functions | |
PyParHelper (jevois::Component *comp, std::string const &name, std::string const &description, boost::python::object const &defaultValue, jevois::ParameterCategory const &category) | |
Create and add the parameter to the component. | |
virtual | ~PyParHelper () |
Remove param from component. | |
boost::python::object | get () override |
Get the value, typed, then wrapped into python object. | |
void | set (boost::python::object const &val) override |
Set the value from python object. | |
void | setCallback (boost::python::object const &cb) override |
Set the parameter's callback. | |
std::shared_ptr< jevois::ParameterBase > | par () const override |
Access the associated C++ base parameter, used to forward strget(), strset(), freeze(), etc to it. | |
Public Member Functions inherited from jevois::python::PyParHelperBase | |
PyParHelperBase (jevois::Component *comp) | |
Constructor. | |
virtual | ~PyParHelperBase () |
Remove param from component. | |
Static Public Member Functions | |
static std::shared_ptr< jevois::python::PyParHelperBase > | create (jevois::Component *comp, std::string const &name, std::string const &description, boost::python::object const &defaultValue, jevois::ParameterCategory const &category) |
Create and add the parameter to the component. | |
Protected Attributes | |
std::shared_ptr< jevois::DynamicParameter< T > > | itsParam |
boost::python::object | itsPyCallback |
Additional Inherited Members | |
Protected Member Functions inherited from jevois::python::PyParHelperBase | |
jevois::Component * | comp () const |
Access the associated C++ Component. | |
jevois::python::PyParHelper< T >::PyParHelper | ( | jevois::Component * | comp, |
std::string const & | name, | ||
std::string const & | description, | ||
boost::python::object const & | defaultValue, | ||
jevois::ParameterCategory const & | category | ||
) |
Create and add the parameter to the component.
|
virtual |
Remove param from component.
|
static |
Create and add the parameter to the component.
|
overridevirtual |
Get the value, typed, then wrapped into python object.
Implements jevois::python::PyParHelperBase.
|
overridevirtual |
Access the associated C++ base parameter, used to forward strget(), strset(), freeze(), etc to it.
Implements jevois::python::PyParHelperBase.
|
overridevirtual |
Set the value from python object.
Implements jevois::python::PyParHelperBase.
|
overridevirtual |
Set the parameter's callback.
Implements jevois::python::PyParHelperBase.
|
protected |
Definition at line 87 of file PythonParameter.H.
|
protected |
Definition at line 88 of file PythonParameter.H.