X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Factory.h;h=ef6908daee0320d9783247bf9afc9e9a6439e7fe;hb=b0806cc39905d3a55dd7a0c5b0753f68100b35ae;hp=f59bd0d6173d7dfc316f02ead0e7262558c1d4aa;hpb=b3695c3af5289903f1c0fa01bbb7c40203c5e544;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Factory.h b/src/SketcherPrs/SketcherPrs_Factory.h index f59bd0d61..ef6908dae 100644 --- a/src/SketcherPrs/SketcherPrs_Factory.h +++ b/src/SketcherPrs/SketcherPrs_Factory.h @@ -22,6 +22,7 @@ #define SketcherPrs_Factory_H_ #include "SketcherPrs.h" +#include #include #include @@ -31,8 +32,7 @@ #define GET_CONSTRAINT_PRS(NAME) \ static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \ - ModelAPI_CompositeFeature* theSketcher, \ - const std::shared_ptr& thePlane, \ + SketchPlugin_Sketch* theSketcher, \ AISObjectPtr thePrevious); /** @@ -113,16 +113,16 @@ public: /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(rotateConstraint) -#define GET_CONSTRAINT2_PRS(NAME) \ - static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \ - const std::shared_ptr& thePlane, \ - AISObjectPtr thePrevious); - /// Creates coincedent constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane /// \param thePrevious the previous presentation - GET_CONSTRAINT2_PRS(coincidentConstraint) + GET_CONSTRAINT_PRS(coincidentConstraint) + +#define GET_CONSTRAINT2_PRS(NAME) \ + static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \ + const std::shared_ptr& thePlane, \ + AISObjectPtr thePrevious); /// Creates angle constraint presentation /// \param theConstraint the constraint