Sketcher: GeometryFacade - convenience method to check if a geometry is blocked

This commit is contained in:
Abdullah Tahiri
2020-12-21 05:57:42 +01:00
committed by abdullahtahiriyo
parent e3873a73e9
commit ea006076e4
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -138,6 +138,12 @@ bool GeometryFacade::isInternalType(const Part::Geometry * geometry, InternalTyp
return gf->getInternalType() == type;
}
bool GeometryFacade::getBlocked(const Part::Geometry * geometry)
{
auto gf = GeometryFacade::getFacade(geometry);
return gf->getBlocked();
}
PyObject * GeometryFacade::getPyObject(void)
{
return new GeometryFacadePy(new GeometryFacade(this->Geo));
+1
View File
@@ -115,6 +115,7 @@ public: // Utility methods
static bool getConstruction(const Part::Geometry * geometry);
static void setConstruction(Part::Geometry * geometry, bool construction);
static bool isInternalType(const Part::Geometry * geometry, InternalType::InternalType type);
static bool getBlocked(const Part::Geometry * geometry);
public:
void setGeometry(Part::Geometry *geometry);