Hi Krzysztof!
Thanks for the quick reply! What is the correct way to obtain the PathVector? (Or a list of PathVectorS in case multiple paths are being edited?) I presume I need to extract it from _multipath (in the node tool context), but this is a pointer to a MultiPathManipulator, and it looks like the path data in that class is not publicly accessable. Also, is there a canonical way to find out which of the nodes I'm traversing are selected? From what I gather from the code it seems that the path data itself is conceptually separated from UI stuff like selected nodes. Do I need to check for each encountered node whether it occurs in _selected_nodes (e.g. by comparing the position) or is there a better way?
Cheers, Max
2012/1/16 Krzysztof Kosiński <tweenk.pl@...400...>:
You need to get a PathVector and iterate over segments rather than nodes. If you need the types of nodes too, you could reuse the code in ui/tool/path-manipulator.cpp that contains a conversion from the path
- nodestring data to a node-based representation (I think the function
is called _createControlPointsFromGeometry())
Regards, Krzysztof