|
SHAPER
9.15.0
|
A class Position Manager which manages position of constraints symbols along a source object line. More...
Public Member Functions | |
| gp_Pnt | getPosition (ObjectPtr theLine, const SketcherPrs_SymbolPrs *thePrs, double theStep=20, GeomPointPtr thePnt=GeomPointPtr()) |
| Returns position of symbol for the given presentation. More... | |
| void | deleteConstraint (const SketcherPrs_SymbolPrs *thePrs) |
| Deletes constraint object from internal structures. More... | |
| void | clearAll () |
| Cleares all stored positions for all constraints. More... | |
Static Public Member Functions | |
| static SketcherPrs_PositionMgr * | get () |
| Returns current instance of position manager. More... | |
A class Position Manager which manages position of constraints symbols along a source object line.
it expects that symbol icons have size 16x16 px
|
static |
Returns current instance of position manager.
| gp_Pnt SketcherPrs_PositionMgr::getPosition | ( | ObjectPtr | theLine, |
| const SketcherPrs_SymbolPrs * | thePrs, | ||
| double | theStep = 20, |
||
| GeomPointPtr | thePnt = GeomPointPtr() |
||
| ) |
Returns position of symbol for the given presentation.
| theLine | constrained object |
| thePrs | a presentation of constraint |
| theStep | step between symbols |
| void SketcherPrs_PositionMgr::deleteConstraint | ( | const SketcherPrs_SymbolPrs * | thePrs | ) |
Deletes constraint object from internal structures.
Has to be called on constraint delete.
| thePrs | a constraint presentation |
|
inline |
Cleares all stored positions for all constraints.