Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #2169 Segmentation fault when drawing sketch line with undocked property panel
[modules/shaper.git]
/
src
/
SketcherPrs
/
SketcherPrs_PositionMgr.h
diff --git
a/src/SketcherPrs/SketcherPrs_PositionMgr.h
b/src/SketcherPrs/SketcherPrs_PositionMgr.h
index 65a2aa06827c3407fe1e780c5fddb95b70d48f58..d91e9af32dc235cab9397c65b1f8fdc0c487fbb7 100644
(file)
--- a/
src/SketcherPrs/SketcherPrs_PositionMgr.h
+++ b/
src/SketcherPrs/SketcherPrs_PositionMgr.h
@@
-27,30
+27,31
@@
public:
static SketcherPrs_PositionMgr* get();
/// Returns position of symbol for the given presentation
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
/// \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
/// 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
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
/// \param thePrs a presentation of constraint
- int getPositionIndex(ObjectPtr theLine,
Handle(SketcherPrs_SymbolPrs)
thePrs);
+ int getPositionIndex(ObjectPtr theLine,
const SketcherPrs_SymbolPrs*
thePrs);
private:
private:
- typedef std::map<
void
*, int> PositionsMap;
+ typedef std::map<
const SketcherPrs_SymbolPrs
*, int> PositionsMap;
/// The map which contains position of presentation
PositionsMap myIndexes;
/// The map which contains position of presentation
PositionsMap myIndexes;
- /// The map contains position index
+ /// The map contains position index
std::map<ObjectPtr, PositionsMap> myShapes;
};
std::map<ObjectPtr, PositionsMap> myShapes;
};