Feature #1018
closedcontrolPointRect for transformed paths
0%
Description
Hello!
There is no way to get bounding box of the control points for a painter path, transformed with WMatrix.
Moreover, path doesn't publish its segments, so there is no opportunity for users to implement such function.
Bounding box is needed to scale path to whole device using setWindow().
Could you add overloaded method path.controlPointRect(WMatrix)?
It would be cool if internal container of path Segments (or at least iterators) were published by WPainterPath.
BR.
Updated by Koen Deforche about 13 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.2.0
Hey,
As suggested, I've added an optional parameter to controlPointRect() which is applied before computing the bounding-box.
Access to the segments is in fact possible, it is just not documented. Probably because the internal representation is a bit contrived. But it doesn't look like it will ever change so we might just as well document it...
Regards,
koen
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed