X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_PositionMgr.h;h=d91e9af32dc235cab9397c65b1f8fdc0c487fbb7;hb=d915f243c36fb3863c3bc10d057f0c63d13c49eb;hp=8c8445de8d2b9195e91e2710873fc4edd3e72d92;hpb=71862c3b2c0e78ef927520985f68c5ffa2916b78;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.h b/src/SketcherPrs/SketcherPrs_PositionMgr.h index 8c8445de8..d91e9af32 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.h +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.h @@ -11,6 +11,7 @@ #include #include +#include #include @@ -26,31 +27,32 @@ public: static SketcherPrs_PositionMgr* get(); /// Returns position of symbol for the given presentation - /// \param theLine constrained object + /// \param theLine constrained object /// \param thePrs a presentation of constraint - gp_Pnt getPosition(std::shared_ptr theLine, Handle(SketcherPrs_SymbolPrs) thePrs); + /// \param theStep step between symbols + gp_Pnt getPosition(ObjectPtr theLine, const SketcherPrs_SymbolPrs* thePrs, double theStep = 20); /// Deletes constraint object from internal structures. Has to be called on constraint delete. /// \param thePrs a constraint presentation - void deleteConstraint(Handle(SketcherPrs_SymbolPrs) thePrs); + void deleteConstraint(const SketcherPrs_SymbolPrs* thePrs); private: /// Constructor SketcherPrs_PositionMgr(); /// Returns position index of the given constraint - /// \param theLine constrained object + /// \param theLine constrained object /// \param thePrs a presentation of constraint - int getPositionIndex(std::shared_ptr theLine, Handle(SketcherPrs_SymbolPrs) thePrs); + int getPositionIndex(ObjectPtr theLine, const SketcherPrs_SymbolPrs* thePrs); private: - typedef std::map PositionsMap; + typedef std::map PositionsMap; /// The map which contains position of presentation PositionsMap myIndexes; - /// The map contains position index - std::map, PositionsMap> myShapes; + /// The map contains position index + std::map myShapes; }; #endif \ No newline at end of file