X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Tools.h;h=c847a1ad11f205dab6de36a0e1c5ae64f6afdef5;hb=09f9714f3df9f24a6dd80e0219a94d347dad9cd2;hp=a09604556fe7d90df822284428ae6f43fb4f904f;hpb=2e9a155145c3b05fa1f592edde88489c8521d029;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Tools.h b/src/PartSet/PartSet_Tools.h index a09604556..c847a1ad1 100644 --- a/src/PartSet/PartSet_Tools.h +++ b/src/PartSet/PartSet_Tools.h @@ -7,12 +7,14 @@ #include "PartSet.h" +#include #include #include #include #include +#include #include @@ -125,6 +127,20 @@ class PARTSET_EXPORT PartSet_Tools /// \param theKind a feature kind /// \return the boolean value static bool isConstraintFeature(const std::string& theKind); + + /// Creates a line (arc or circle) by given edge + /// Created line will have fixed constraint + /// \param theEdge - an edge + /// \return - result of created feature + static ResultPtr createFixedObjectByEdge(const ModuleBase_ViewerPrs& thePrs, CompositeFeaturePtr theSketch); + + /// Checks whether the list of selected presentations contains the given one + /// \param theSelected a list of presentations + /// \param thePrs a presentation to be found + /// \return - result of check, true if the list contains the prs + static bool isContainPresentation(const QList& theSelected, + const ModuleBase_ViewerPrs& thePrs); + }; #endif