Sketcher: GeometryFacade convenience function isAlignedGeometry()

This commit is contained in:
Abdullah Tahiri
2020-11-22 08:16:12 +01:00
committed by abdullahtahiriyo
parent ffe2ecaa4a
commit 593ade1604

View File

@@ -128,9 +128,12 @@ public:
virtual bool testGeometryMode(int flag) const override { return getGeoExt()->testGeometryMode(flag); }
virtual void setGeometryMode(int flag, bool v=true) override { getGeoExt()->setGeometryMode(flag, v); }
// Convenience accessor
bool getBlocked() const { return this->testGeometryMode(GeometryMode::Blocked);}
void setBlocked(bool status = true) {this->setGeometryMode(GeometryMode::Blocked, status);}
bool isInternalAligned() const { return this->getInternalType() != InternalType::None; }
// Geometry Extension Information
inline const std::string &getExtensionName () const {return SketchGeoExtension->getName();}