X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_Factory.h;h=c0101fa0a47a3b39231c246ae94c9be64dcc59bb;hb=497397f795254cb5adf0d727f5858d5aeb16eaf3;hp=fb287c05e7dc5500512fc272efa7d2fb358b09cd;hpb=7453d57ebe6eaa15b3b032fb2511a30fc128af5c;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_Factory.h b/src/SketcherPrs/SketcherPrs_Factory.h index fb287c05e..c0101fa0a 100644 --- a/src/SketcherPrs/SketcherPrs_Factory.h +++ b/src/SketcherPrs/SketcherPrs_Factory.h @@ -9,10 +9,15 @@ #include "SketcherPrs.h" +#include + #include #include -class SketchPlugin_Constraint; +#define GET_CONSTRAINT_PRS(NAME) \ + static AISObjectPtr NAME(ModelAPI_Feature* theConstraint, \ + const std::shared_ptr& thePlane); + /** * Class which creates constraints presentations @@ -23,20 +28,72 @@ public: /// Creates coincedent constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane - static AISObjectPtr coincidentConstraint(SketchPlugin_Constraint* theConstraint, - const std::shared_ptr& thePlane); + GET_CONSTRAINT_PRS(coincidentConstraint) - /// Creates coincedent parallel presentation + /// Creates parallel constraint presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane - static AISObjectPtr parallelConstraint(SketchPlugin_Constraint* theConstraint, - const std::shared_ptr& thePlane); + GET_CONSTRAINT_PRS(parallelConstraint) /// Creates coincedent perpendicular presentation /// \param theConstraint the constraint /// \param thePlane the current sketch plane - static AISObjectPtr perpendicularConstraint(SketchPlugin_Constraint* theConstraint, - const std::shared_ptr& thePlane); + GET_CONSTRAINT_PRS(perpendicularConstraint) + + /// Creates rigid constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(rigidConstraint) + + /// Creates horizontal constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(horisontalConstraint) + + /// Creates vertical constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(verticalConstraint) + + /// Creates equal constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(equalConstraint) + + /// Creates tangent constraiont presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(tangentConstraint) + + /// Creates radius dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(radiusConstraint) + + /// Creates length dimension presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(lengthDimensionConstraint) + + /// Creates mirror constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(mirrorConstraint) + + /// Creates translate constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(translateConstraint) + + /// Creates rotate constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(rotateConstraint) + + /// Creates angle constraint presentation + /// \param theConstraint the constraint + /// \param thePlane the current sketch plane + GET_CONSTRAINT_PRS(angleConstraint) }; #endif