9#include <boost/python/class.hpp>
10#include <boost/python/overloads.hpp>
41 class_<Component, bases<IComponent>, boost::noncopyable>(
"Component", no_init)
43 Component_getParameterNames((arg(
"self"), arg(
"recursive") =
true)))
45 Component_hasParameter((arg(
"self"), arg(
"name"), arg(
"recursive") =
true)))
47 Component_getNumberParameter((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
49 Component_getBoolParameter((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
51 Component_getPositionParameter((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
53 Component_getRotationParameter((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
55 Component_getStringParameter((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
57 Component_getIntParameter((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
63 Component_getParamShortDescription((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
65 Component_getParamDescription((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
68 "Return the short description of current parameterized component")
70 "Return the description of current parameterized component")
72 "Set component's description, works only if the component is "
73 "parameterized component")
78 Component_getParameterType((arg(
"self"), arg(
"pname"), arg(
"recursive") =
true)))
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(valueAsPrettyStrOverloader, valueAsPrettyStr, 0, 2) void export_Property()
#define GNU_DIAG_OFF(x)
This is a collection of macros for turning compiler warnings off in a controlled manner.
Component is a wrapper for a Component which can modify some of its parameters, e....
std::string getParamDescription(const std::string &pname, bool recursive=true) const
Get description of a parameter attached to this component
std::string getParamShortDescription(const std::string &pname, bool recursive=true) const
Get a component's parameter short description.
std::vector< double > getNumberParameter(const std::string &pname, bool recursive=true) const override
Get a parameter defined as a double.
std::vector< Kernel::Quat > getRotationParameter(const std::string &pname, bool recursive=true) const override
Get a parameter defined as a Kernel::Quaternion.
Kernel::V3D getRelativePos() const override
Get the position relative to the parent IComponent (absolute if no parent)
std::vector< int > getIntParameter(const std::string &pname, bool recursive=true) const override
Get a parameter defined as an int.
std::vector< Kernel::V3D > getPositionParameter(const std::string &pname, bool recursive=true) const override
Get a parameter defined as a Kernel::V3D.
std::string getParameterType(const std::string &pname, bool recursive=true) const override
Get a parameter's type – this is HACK until Python can export property regardless of the property typ...
std::set< std::string > getParameterNames(bool recursive=true) const override
Return the parameter names.
std::vector< std::string > getStringParameter(const std::string &pname, bool recursive=true) const override
Get a parameter defined as a string.
Kernel::Quat getRotation() const override
Get the absolute orientation of the IComponent.
void setDescription(const std::string &descr)
Set components description.
std::string getDescription() const
Get this component parameter's description – no recursive search within children.
bool hasParameter(const std::string &name, bool recursive=true) const override
Returns a boolean indicating if the component has the named parameter.
std::vector< bool > getBoolParameter(const std::string &pname, bool recursive=true) const override
Get a parameter defined as a bool.
std::string getShortDescription() const
Get a components's short description.
base class for Geometric IComponent