View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014200 | VTK | (No Category) | public | 2013-07-31 01:56 | 2014-10-02 13:39 | ||||
Reporter | Steffen Salbert | ||||||||
Assigned To | Cory Quammen | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 6.0.0 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014200: Incorrect text scaling in vtkAxisActor2D.cxx | ||||||||
Description | There seems to be an error in the vtkAxisActor2D class when enabling automatic sizing of the text relative to the axes. In some cases the text gets bigger when zooming out, instead of getting smaller. The source code of the problem is the following: if ( this->SizeFontRelativeToAxis ) { xp1 = this->PositionCoordinate->GetComputedDoubleDisplayValue(viewport); xp2 = this->Position2Coordinate->GetComputedDoubleViewportValue(viewport); len = sqrt((xp2[0]-xp1[0])*(xp2[0]-xp1[0]) + (xp2[1]-xp1[1])*(xp2[1]-xp1[1])); } The distance between the lower left and the upper right coordinate is computed, but the coordinates are in different coordinate systems. Changing the computation of xp1 to "this->PositionCoordinate->GetComputedDoubleViewportValue(viewport);" will fix the problem. (see picture) | ||||||||
Tags | No tags attached. | ||||||||
Project | Kitware | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | VTKBug.png [^] (802,358 bytes) 2013-07-31 01:56 | ||||||||
Relationships | |
Relationships |
Notes | |
(0031957) Dave DeMarle (administrator) 2013-12-16 16:00 |
http://review.source.kitware.com/#/t/3731 [^] |
(0031981) Dave DeMarle (administrator) 2013-12-17 13:09 |
proposed patch showed problems in gerrit/dashboard tests |
(0033497) Cory Quammen (developer) 2014-10-02 13:39 |
Fix merged in commit 2d3ecda0dfc6a487789103db361520250983dacb Author: Dave DeMarle <dave.demarle@kitware.com> Date: Mon Dec 16 15:58:32 2013 -0500 bug#0014200 fix incorrect text scaling per bug 142000. Thanks Steffen Salbert for the patch Change-Id: I592f14616a217b2d5a3403573b14c491e49b143f Presumably the dashboard errors Dave reported are fixed, as VTK master does not show any errors for vtkAxisActor2D. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-07-31 01:56 | Steffen Salbert | New Issue | |
2013-07-31 01:56 | Steffen Salbert | File Added: VTKBug.png | |
2013-12-16 16:00 | Dave DeMarle | Note Added: 0031957 | |
2013-12-16 16:00 | Dave DeMarle | Assigned To | => Dave DeMarle |
2013-12-16 16:00 | Dave DeMarle | Status | backlog => gerrit review |
2013-12-17 13:09 | Dave DeMarle | Note Added: 0031981 | |
2013-12-17 13:09 | Dave DeMarle | Status | gerrit review => backlog |
2014-09-30 10:55 | Dave DeMarle | Assigned To | Dave DeMarle => |
2014-10-02 13:39 | Cory Quammen | Note Added: 0033497 | |
2014-10-02 13:39 | Cory Quammen | Status | backlog => closed |
2014-10-02 13:39 | Cory Quammen | Assigned To | => Cory Quammen |
2014-10-02 13:39 | Cory Quammen | Resolution | open => fixed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |