X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketcherPrs%2FSketcherPrs_PositionMgr.h;h=d8a956ff9f4398a033ca4b591c50344bc85f1566;hb=a5746a7f8fd8bcd555fb16f98e312c86ca1210da;hp=65a2aa06827c3407fe1e780c5fddb95b70d48f58;hpb=e7f1ac7ab6a29efa09daecae84b2add0ff630c8d;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.h b/src/SketcherPrs/SketcherPrs_PositionMgr.h index 65a2aa068..d8a956ff9 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.h +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.h @@ -29,11 +29,12 @@ public: /// Returns position of symbol for the given presentation /// \param theLine constrained object /// \param thePrs a presentation of constraint - gp_Pnt getPosition(ObjectPtr 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 @@ -42,10 +43,10 @@ private: /// Returns position index of the given constraint /// \param theLine constrained object /// \param thePrs a presentation of constraint - int getPositionIndex(ObjectPtr 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;