expose more members of Constraint class to Python
This commit is contained in:
@@ -542,6 +542,11 @@ void ConstraintPy::setFirst(Py::Long arg)
|
||||
#endif
|
||||
}
|
||||
|
||||
Py::Long ConstraintPy::getFirstPos(void) const
|
||||
{
|
||||
return Py::Long(static_cast<int>(this->getConstraintPtr()->FirstPos));
|
||||
}
|
||||
|
||||
Py::Long ConstraintPy::getSecond(void) const
|
||||
{
|
||||
return Py::Long(this->getConstraintPtr()->Second);
|
||||
@@ -556,6 +561,30 @@ void ConstraintPy::setSecond(Py::Long arg)
|
||||
#endif
|
||||
}
|
||||
|
||||
Py::Long ConstraintPy::getSecondPos(void) const
|
||||
{
|
||||
return Py::Long(static_cast<int>(this->getConstraintPtr()->SecondPos));
|
||||
}
|
||||
|
||||
Py::Long ConstraintPy::getThird(void) const
|
||||
{
|
||||
return Py::Long(this->getConstraintPtr()->Third);
|
||||
}
|
||||
|
||||
void ConstraintPy::setThird(Py::Long arg)
|
||||
{
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
this->getConstraintPtr()->Third = Py::Int(arg);
|
||||
#else
|
||||
this->getConstraintPtr()->Third = arg;
|
||||
#endif
|
||||
}
|
||||
|
||||
Py::Long ConstraintPy::getThirdPos(void) const
|
||||
{
|
||||
return Py::Long(static_cast<int>(this->getConstraintPtr()->ThirdPos));
|
||||
}
|
||||
|
||||
Py::String ConstraintPy::getName(void) const
|
||||
{
|
||||
return Py::String(this->getConstraintPtr()->Name);
|
||||
@@ -571,6 +600,16 @@ Py::Float ConstraintPy::getValue(void) const
|
||||
return Py::Float(this->getConstraintPtr()->getValue());
|
||||
}
|
||||
|
||||
Py::Boolean ConstraintPy::getDriving(void) const
|
||||
{
|
||||
return Py::Boolean(this->getConstraintPtr()->isDriving);
|
||||
}
|
||||
|
||||
Py::Boolean ConstraintPy::getInVirtualSpace(void) const
|
||||
{
|
||||
return Py::Boolean(this->getConstraintPtr()->isInVirtualSpace);
|
||||
}
|
||||
|
||||
PyObject *ConstraintPy::getCustomAttributes(const char* /*attr*/) const
|
||||
{
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user