X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_PositionMgr.h;h=7acc36e1150d9c56bc2031fc26df6711499f5190;hb=180173d1e6a5463c4962721c1213a47794dd0974;hp=8695126b2ae06aa83d010caa8f4834614464504c;hpb=270e4178cb9832ee53cdd8e31bc4cdedd81e201c;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.h b/src/SketcherPrs/SketcherPrs_PositionMgr.h index 8695126b2..7acc36e11 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.h +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.h @@ -21,6 +21,7 @@ #ifndef SketcherPrs_PositionMgr_H #define SketcherPrs_PositionMgr_H +#include "SketcherPrs.h" #include "SketcherPrs_SymbolPrs.h" #include @@ -36,7 +37,7 @@ * A class Position Manager which manages position of constraints symbols along a source object line. * it expects that symbol icons have size 16x16 px */ -class SketcherPrs_PositionMgr +class SKETCHERPRS_EXPORT SketcherPrs_PositionMgr { public: /// Returns current instance of position manager @@ -53,6 +54,9 @@ public: /// \param thePrs a constraint presentation void deleteConstraint(const SketcherPrs_SymbolPrs* thePrs); + /// Cleares all stored positions for all constraints + void clearAll() { myShapes.clear(); myPntShapes.clear(); } + private: /// Constructor SketcherPrs_PositionMgr(); @@ -82,9 +86,6 @@ private: typedef std::map PositionsMap; typedef std::map> FeaturesMap; - /// The map which contains position of presentation - PositionsMap myIndexes; - /// The map contains position index std::map myShapes;