X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketcherPrs%2FSketcherPrs_Factory.h;h=0c463e59e70649e0c0f39924dbad8d6e77fd95cc;hb=9ba9d933ec63ba4d5521df7710e5d3374ac036f7;hp=b6feedebc887265e3cd1a0d789999b8d32d05026;hpb=ee8227215801cf94dd1d5c03d647b1bf18ea6ffb;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Factory.h b/src/SketcherPrs/SketcherPrs_Factory.h index b6feedebc..0c463e59e 100644 --- a/src/SketcherPrs/SketcherPrs_Factory.h +++ b/src/SketcherPrs/SketcherPrs_Factory.h @@ -9,15 +9,15 @@ #include "SketcherPrs.h" +#include + #include #include -class SketchPlugin_Constraint; - #define GET_CONSTRAINT_PRS(NAME) \ - static AISObjectPtr NAME(SketchPlugin_Constraint* theConstraint, \ - const std::shared_ptr& thePlane); - + static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \ + const std::shared_ptr& thePlane, \ + AISObjectPtr thePrevious); /** * Class which creates constraints presentations @@ -28,42 +28,98 @@ public: /// Creates coincedent constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(coincidentConstraint) - /// Creates coincedent parallel presentation + /// Creates collinear constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(collinearConstraint) + + /// Creates parallel constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(parallelConstraint) /// Creates coincedent perpendicular presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(perpendicularConstraint) - /// Creates coincedent perpendicular presentation + /// Creates rigid constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(rigidConstraint) - /// Creates coincedent perpendicular presentation + /// Creates horizontal constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(horisontalConstraint) - /// Creates coincedent perpendicular presentation + /// Creates vertical constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(verticalConstraint) - /// Creates coincedent perpendicular presentation + /// Creates equal constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(equalConstraint) - /// Creates coincedent perpendicular presentation + /// Creates tangent constraiont presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation GET_CONSTRAINT_PRS(tangentConstraint) + + /// Creates radius dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(radiusConstraint) + + /// Creates length dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(lengthDimensionConstraint) + + /// Creates middle constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(middleConstraint) + + /// Creates mirror constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(mirrorConstraint) + + /// Creates translate constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(translateConstraint) + + /// Creates rotate constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(rotateConstraint) + + /// Creates angle constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + /// \param thePrevious the previous presentation + GET_CONSTRAINT_PRS(angleConstraint) }; #endif