MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013206 | VTK | (No Category) | public | 2012-05-26 05:20 | 2016-08-12 09:55 |
Reporter | Arnaud BARRE | ||||
Assigned To | Dave DeMarle | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | 5.8.0 | ||||
Target Version | Fixed in Version | ||||
Project | Release | ||||
Type | incorrect functionality | ||||
Summary | 0013206: vtkQtStringToImage::GetBounds doesn't take into account the rotation of the text | ||||
Description | For 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. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/9203/vtkQtStringImageGetBoundsFix.png ![]() | ||||
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 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|