expose more members of Constraint class to Python
This commit is contained in:
@@ -22,12 +22,36 @@
|
||||
</Documentation>
|
||||
<Parameter Name="First" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="FirstPos" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Position of first geometry index the Constraint refers to</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="FirstPos" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Second" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Second geometry index the Constraint refers to</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Second" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="SecondPos" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Position of second geometry index the Constraint refers to</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="SeondPos" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Third" ReadOnly="false">
|
||||
<Documentation>
|
||||
<UserDocu>Third geometry index the Constraint refers to</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Second" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="ThirdPos" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Position of third geometry index the Constraint refers to</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="ThirdPos" Type="Long"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Value" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Value of the Constraint</UserDocu>
|
||||
@@ -40,5 +64,17 @@
|
||||
</Documentation>
|
||||
<Parameter Name="Name" Type="String"/>
|
||||
</Attribute>
|
||||
<Attribute Name="Driving" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Driving Constraint</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="Driving" Type="Boolean"/>
|
||||
</Attribute>
|
||||
<Attribute Name="InVirtualSpace" ReadOnly="true">
|
||||
<Documentation>
|
||||
<UserDocu>Constraint in virtual space</UserDocu>
|
||||
</Documentation>
|
||||
<Parameter Name="InVirtualSpace" Type="Boolean"/>
|
||||
</Attribute>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
|
||||
@@ -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