Feature #1018
controlPointRect for transformed paths
| Status: | Closed | Start: | 10/11/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | Koen Deforche | % Done: | 0% |
|
| Category: | - | |||
| Target version: | 3.2.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.
History
Updated by Koen Deforche 6 months ago
- Status changed from New to Resolved
- Assigned to 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 6 months ago
- Status changed from Resolved to Closed