Skip to content

Commit

Permalink
Sketcher: Restrict ability to create empty GeometryFacade and Externa…
Browse files Browse the repository at this point in the history
…lGeometryFacade objects to Python
  • Loading branch information
abdullahtahiriyo committed Nov 3, 2020
1 parent 7dcac46 commit 79b1929
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Sketcher/App/ExternalGeometryFacade.h
Expand Up @@ -36,6 +36,7 @@
namespace Sketcher
{

class ExternalGeometryFacadePy;
// This class is a Facade to handle external geometry geometry and sketcher geometry extensions with a single sketcher specific interface
//
// It is intended to have a separate type (not being a Geometry type).
Expand All @@ -47,9 +48,9 @@ TYPESYSTEM_HEADER_WITH_OVERRIDE();

private:
ExternalGeometryFacade(const Part::Geometry * geometry);
ExternalGeometryFacade(); // As TYPESYSTEM requirement

public:
ExternalGeometryFacade(); // As TYPESYSTEM requirement for Python object construction
friend class ExternalGeometryFacadePy;

public: // Factory methods
static std::unique_ptr<ExternalGeometryFacade> getFacade(Part::Geometry * geometry);
Expand Down
5 changes: 3 additions & 2 deletions src/Mod/Sketcher/App/GeometryFacade.h
Expand Up @@ -35,6 +35,7 @@
namespace Sketcher
{

class GeometryFacadePy;
// This class is a Facade to handle geometry and sketcher geometry extensions with a single sketcher specific interface
//
//
Expand All @@ -48,9 +49,9 @@ TYPESYSTEM_HEADER_WITH_OVERRIDE();

private:
GeometryFacade(const Part::Geometry * geometry);
GeometryFacade(); // As TYPESYSTEM requirement

public:
GeometryFacade(); // As TYPESYSTEM requirement for Python object construction
friend class GeometryFacadePy;

public: // Factory methods
static std::unique_ptr<GeometryFacade> getFacade(Part::Geometry * geometry);
Expand Down

0 comments on commit 79b1929

Please sign in to comment.