Sketcher - Construction Migration - step 2: Adapt GeometryFacade to retrieve construction from extension
======================================================================================================== Access to the Construction state from facade is now obtained from the extension data.
This commit is contained in:
committed by
abdullahtahiriyo
parent
ff9eac966c
commit
850a71d3c7
@@ -86,6 +86,13 @@ 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);}
|
||||
|
||||
inline bool getConstruction(void) const {return this->testGeometryMode(GeometryMode::Construction);};
|
||||
inline void setConstruction(bool construction) {this->setGeometryMode(GeometryMode::Construction, construction);};
|
||||
|
||||
// Geometry Extension Information
|
||||
inline const std::string &getSketchExtensionName () const {return SketchGeoExtension->getName();}
|
||||
inline const std::string &getExternalExtensionName () const {return ExternalGeoExtension->getName();}
|
||||
@@ -113,8 +120,6 @@ public:
|
||||
const Handle(Geom_Geometry)& handle() const {return getGeo()->handle();};
|
||||
Part::Geometry *copy(void) const {return getGeo()->copy();};
|
||||
Part::Geometry *clone(void) const {return getGeo()->clone();};
|
||||
inline bool getConstruction(void) const {return getGeo()->getConstruction();};
|
||||
inline void setConstruction(bool construction) {getGeo()->setConstruction(construction);};
|
||||
boost::uuids::uuid getTag() const {return getGeo()->getTag();};
|
||||
|
||||
std::vector<std::weak_ptr<const Part::GeometryExtension>> getExtensions() const {return getGeo()->getExtensions();};
|
||||
|
||||
@@ -133,6 +133,9 @@ public:
|
||||
bool getBlocked() const { return this->testGeometryMode(GeometryMode::Blocked);}
|
||||
void setBlocked(bool status = true) {this->setGeometryMode(GeometryMode::Blocked, status);}
|
||||
|
||||
inline bool getConstruction(void) const {return this->testGeometryMode(GeometryMode::Construction);};
|
||||
inline void setConstruction(bool construction) {this->setGeometryMode(GeometryMode::Construction, construction);};
|
||||
|
||||
bool isInternalAligned() const { return this->getInternalType() != InternalType::None; }
|
||||
|
||||
// Geometry Extension Information
|
||||
@@ -161,8 +164,6 @@ public:
|
||||
const Handle(Geom_Geometry)& handle() const {return getGeo()->handle();};
|
||||
Part::Geometry *copy(void) const {return getGeo()->copy();};
|
||||
Part::Geometry *clone(void) const {return getGeo()->clone();};
|
||||
inline bool getConstruction(void) const {return getGeo()->getConstruction();};
|
||||
inline void setConstruction(bool construction) {getGeo()->setConstruction(construction);};
|
||||
boost::uuids::uuid getTag() const {return getGeo()->getTag();};
|
||||
|
||||
std::vector<std::weak_ptr<const Part::GeometryExtension>> getExtensions() const {return getGeo()->getExtensions();};
|
||||
|
||||
Reference in New Issue
Block a user