Project

General

Profile

Actions

Feature #1018

closed

controlPointRect for transformed paths

Added by Boris Nagaev about 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
10/11/2011
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Koen Deforche almost 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

Actions #2

Updated by Koen Deforche almost 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF