Sketcher: GeometryFacade - convenience method to check if a geometry is blocked
This commit is contained in:
committed by
abdullahtahiriyo
parent
e3873a73e9
commit
ea006076e4
@@ -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));
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user