Sketcher: Addition of layerId field to SketcherGeometryExtension, GeometryFacade and ExternalGeometryFacade, and their Python wrappers

This commit is contained in:
Abdullah Tahiri
2021-12-04 07:45:52 +01:00
parent 01d37cdaad
commit f7deb780a5
10 changed files with 81 additions and 3 deletions

View File

@@ -173,6 +173,16 @@ PyObject* SketchGeometryExtensionPy::setGeometryMode(PyObject *args)
Py_Return;
}
Py::Long SketchGeometryExtensionPy::getGeometryLayerId(void) const
{
return Py::Long(this->getSketchGeometryExtensionPtr()->getGeometryLayerId());
}
void SketchGeometryExtensionPy::setGeometryLayerId(Py::Long Id)
{
this->getSketchGeometryExtensionPtr()->setGeometryLayerId(long(Id));
}
PyObject *SketchGeometryExtensionPy::getCustomAttributes(const char* /*attr*/) const
{
return 0;
@@ -182,3 +192,4 @@ int SketchGeometryExtensionPy::setCustomAttributes(const char* /*attr*/, PyObjec
{
return 0;
}