diff --git a/src/Mod/Sketcher/App/GeometryFacade.h b/src/Mod/Sketcher/App/GeometryFacade.h index 88acb6538b..7fac1e70f4 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.h +++ b/src/Mod/Sketcher/App/GeometryFacade.h @@ -134,8 +134,8 @@ 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);}; + 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; } @@ -161,27 +161,27 @@ public: virtual PyObject *getPyObject(void) override; // Geometry Interface - TopoDS_Shape toShape() const {return getGeo()->toShape();}; - 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();}; - boost::uuids::uuid getTag() const {return getGeo()->getTag();}; + TopoDS_Shape toShape() const {return getGeo()->toShape();} + 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();} + boost::uuids::uuid getTag() const {return getGeo()->getTag();} - std::vector> getExtensions() const {return getGeo()->getExtensions();}; - bool hasExtension(Base::Type type) const {return getGeo()->hasExtension(type);}; - bool hasExtension(std::string name) const {return getGeo()->hasExtension(name);}; - std::weak_ptr getExtension(Base::Type type) const {return getGeo()->getExtension(type);}; - std::weak_ptr getExtension(std::string name) const {return getGeo()->getExtension(name);}; - void setExtension(std::unique_ptr &&geo) {return getGeo()->setExtension(std::move(geo));}; - void deleteExtension(Base::Type type) {return getGeo()->deleteExtension(type);}; - void deleteExtension(std::string name) {return getGeo()->deleteExtension(name);}; + std::vector> getExtensions() const {return getGeo()->getExtensions();} + bool hasExtension(Base::Type type) const {return getGeo()->hasExtension(type);} + bool hasExtension(std::string name) const {return getGeo()->hasExtension(name);} + std::weak_ptr getExtension(Base::Type type) const {return getGeo()->getExtension(type);} + std::weak_ptr getExtension(std::string name) const {return getGeo()->getExtension(name);} + void setExtension(std::unique_ptr &&geo) {return getGeo()->setExtension(std::move(geo));} + void deleteExtension(Base::Type type) {return getGeo()->deleteExtension(type);} + void deleteExtension(std::string name) {return getGeo()->deleteExtension(name);} - void mirror(Base::Vector3d point) {return getGeo()->mirror(point);}; - void mirror(Base::Vector3d point, Base::Vector3d dir) {return getGeo()->mirror(point, dir);}; - void rotate(Base::Placement plm) {return getGeo()->rotate(plm);}; - void scale(Base::Vector3d vec, double scale) {return getGeo()->scale(vec, scale);}; - void transform(Base::Matrix4D mat) {return getGeo()->transform(mat);}; - void translate(Base::Vector3d vec) {return getGeo()->translate(vec);}; + void mirror(Base::Vector3d point) {return getGeo()->mirror(point);} + void mirror(Base::Vector3d point, Base::Vector3d dir) {return getGeo()->mirror(point, dir);} + void rotate(Base::Placement plm) {return getGeo()->rotate(plm);} + void scale(Base::Vector3d vec, double scale) {return getGeo()->scale(vec, scale);} + void transform(Base::Matrix4D mat) {return getGeo()->transform(mat);} + void translate(Base::Vector3d vec) {return getGeo()->translate(vec);} // convenience GeometryFunctions bool isGeoType(const Base::Type &type) const { return getGeo()->getTypeId() == type;} @@ -232,8 +232,8 @@ class SketcherExport GeometryTypedFacade : public GeometryFacade static_assert( std::is_base_of::type>::value && !std::is_same::type>::value, "Only for classes derived from Geometry!"); private: - GeometryTypedFacade(const Part::Geometry * geometry):GeometryFacade(geometry) {}; - GeometryTypedFacade():GeometryFacade() {}; + GeometryTypedFacade(const Part::Geometry * geometry):GeometryFacade(geometry) {} + GeometryTypedFacade():GeometryFacade() {} public: // Factory methods static std::unique_ptr> getTypedFacade(GeometryT * geometry) {