#include <GeomAPI_Shape.h>
#include <gp_Pnt.hxx>
+#include <ModelAPI_Object.h>
#include <map>
/// Returns position of symbol for the given presentation
/// \param theLine constrained object
/// \param thePrs a presentation of constraint
- gp_Pnt getPosition(std::shared_ptr<GeomAPI_Shape> theLine, Handle(SketcherPrs_SymbolPrs) thePrs);
+ gp_Pnt getPosition(ObjectPtr theLine, Handle(SketcherPrs_SymbolPrs) thePrs);
/// Deletes constraint object from internal structures. Has to be called on constraint delete.
/// \param thePrs a constraint presentation
/// Returns position index of the given constraint
/// \param theLine constrained object
/// \param thePrs a presentation of constraint
- int getPositionIndex(std::shared_ptr<GeomAPI_Shape> theLine, Handle(SketcherPrs_SymbolPrs) thePrs);
+ int getPositionIndex(ObjectPtr theLine, Handle(SketcherPrs_SymbolPrs) thePrs);
private:
typedef std::map<void*, int> PositionsMap;
PositionsMap myIndexes;
/// The map contains position index
- std::map<std::shared_ptr<GeomAPI_Shape>, PositionsMap> myShapes;
+ std::map<ObjectPtr, PositionsMap> myShapes;
};
#endif
\ No newline at end of file