View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013206VTK(No Category)public2012-05-26 05:202016-08-12 09:55
ReporterArnaud BARRE 
Assigned ToDave DeMarle 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0013206: vtkQtStringToImage::GetBounds doesn't take into account the rotation of the text
DescriptionFor both type of strings (vtkStdString, vtkUnicodeString), the Qt text renderer doesn't take the orientation of the text as the FreeType text renderer do.

For both GetBounds methods, the code line 107-110 and line 138-141

QRectF rect;
QPainterPath path;
path.addText(0, 0, fontSpec, text);
rect = path.boundingRect();

could be replaced by this one:

QRectF rect;
QPainterPath path;
path.addText(0, 0, fontSpec, text);
QMatrix mat;
mat.rotate(-property->GetOrientation());
path = mat.map(path);
rect = path.boundingRect();

The result of this modification is visible in the uploaded picture.
TagsNo tags attached.
ProjectRelease
Typeincorrect functionality
Attached Filespng file icon vtkQtStringImageGetBoundsFix.png [^] (89,461 bytes) 2012-05-26 05:20

 Relationships

  Notes
(0031074)
Dave DeMarle (administrator)
2013-06-25 16:34

Thanks Arnaud.
Would you mind submitting the fix through gerrit? That will automate testing and review.
For details on how to do so see http://www.vtk.org/Wiki/VTK/Git/Develop [^]
(0031162)
Dave DeMarle (administrator)
2013-07-22 14:47

If this is still present in 6.0, please reopen this bug report.
(0037279)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2012-05-26 05:20 Arnaud BARRE New Issue
2012-05-26 05:20 Arnaud BARRE File Added: vtkQtStringImageGetBoundsFix.png
2013-06-25 16:34 Dave DeMarle Note Added: 0031074
2013-07-22 14:47 Dave DeMarle Note Added: 0031162
2013-07-22 14:47 Dave DeMarle Status backlog => expired
2013-07-22 14:47 Dave DeMarle Resolution open => fixed
2013-07-22 14:47 Dave DeMarle Assigned To => Dave DeMarle
2016-08-12 09:55 Kitware Robot Note Added: 0037279
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution fixed => moved


Copyright © 2000 - 2018 MantisBT Team