MantisBT - VTK
View Issue Details
0014963VTK(No Category)public2014-08-23 12:072016-08-12 09:55
Michael Bachmann 
Utkarsh Ayachit 
urgentminorhave not tried
closedmoved 
6.0.0 
 
TBD
incorrect functionality
0014963: vtkTextActor scaling and justification bug
In the attached example, the text actor is configured such that the text to display has a height of 3% of the viewport and is centered to the viewport.

When starting the example the text is centered and the height of the text is OK.

However: when maximizing the Window, the text is not centered anymore and it is also not scaled up to 3% of the maximized window.

Using vtk 5.10.1 scaling/justification worked as expected.
Using vtk 6.1.0 the described issue can be reproduced.
centered, justification, scaling, vtkTextActor
? vtkTextActor_scaling_and_alignment_issue.py (1,528) 2014-08-23 12:07
https://www.vtk.org/Bug/file/9702/vtkTextActor_scaling_and_alignment_issue.py
? vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1.tcl (1,882) 2014-08-23 12:49
https://www.vtk.org/Bug/file/9703/vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1.tcl
png Screen Shot 2014-10-02 at 2.35.06 PM.png (177,304) 2014-10-02 14:35
https://www.vtk.org/Bug/file/9740/Screen%20Shot%202014-10-02%20at%202.35.06%20PM.png
png

png vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_2014-10-03_08-03_PM.png (145,223) 2014-10-03 14:08
https://www.vtk.org/Bug/file/9743/vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_2014-10-03_08-03_PM.png
png

? vtkTextActor_scaling_and_alignment_issue_10%.py (1,527) 2014-10-03 14:16
https://www.vtk.org/Bug/file/9744/vtkTextActor_scaling_and_alignment_issue_10%25.py
? vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%.tcl (1,881) 2014-10-03 14:16
https://www.vtk.org/Bug/file/9745/vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%25.tcl
png vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%_2014-10-03_08-15_PM.png (156,378) 2014-10-03 14:17
https://www.vtk.org/Bug/file/9746/vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%25_2014-10-03_08-15_PM.png
png
Issue History
2014-08-23 12:07Michael BachmannNew Issue
2014-08-23 12:07Michael BachmannFile Added: vtkTextActor_scaling_and_alignment_issue.py
2014-08-23 12:13Michael BachmannTag Attached: centered
2014-08-23 12:13Michael BachmannTag Attached: justification
2014-08-23 12:13Michael BachmannTag Attached: scaling
2014-08-23 12:13Michael BachmannTag Attached: vtkTextActor
2014-08-23 12:49Michael BachmannFile Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1.tcl
2014-08-23 12:50Michael BachmannNote Added: 0033283
2014-10-02 14:35Utkarsh AyachitFile Added: Screen Shot 2014-10-02 at 2.35.06 PM.png
2014-10-02 14:36Utkarsh AyachitNote Added: 0033510
2014-10-02 14:36Utkarsh AyachitStatusbacklog => closed
2014-10-02 14:36Utkarsh AyachitAssigned To => Utkarsh Ayachit
2014-10-02 14:36Utkarsh AyachitResolutionopen => no change required
2014-10-02 14:36Utkarsh AyachitFixed in Version => 6.2.0
2014-10-03 14:08Michael BachmannNote Added: 0033572
2014-10-03 14:08Michael BachmannStatusclosed => backlog
2014-10-03 14:08Michael BachmannResolutionno change required => reopened
2014-10-03 14:08Michael BachmannFile Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_2014-10-03_08-03_PM.png
2014-10-03 14:14Michael BachmannNote Edited: 0033572bug_revision_view_page.php?bugnote_id=33572#r865
2014-10-03 14:16Michael BachmannFile Added: vtkTextActor_scaling_and_alignment_issue_10%.py
2014-10-03 14:16Michael BachmannFile Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%.tcl
2014-10-03 14:17Michael BachmannFile Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%_2014-10-03_08-15_PM.png
2014-10-09 03:01Michael BachmannNote Edited: 0033572bug_revision_view_page.php?bugnote_id=33572#r876
2016-07-06 16:48Berk GeveciStatusbacklog => expired
2016-07-06 16:48Berk GeveciNote Added: 0036257
2016-08-12 09:55Kitware RobotNote Added: 0037339
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotFixed in Version6.2.0 =>
2016-08-12 09:55Kitware RobotResolutionreopened => moved

Notes
(0033283)
Michael Bachmann   
2014-08-23 12:50   
Added an example file for VTK 5.10.1.
(0033510)
Utkarsh Ayachit   
2014-10-02 14:36   
Works as expected in development version of VTK (image attached). Fix will be included in 6.2.
(0033572)
Michael Bachmann   
2014-10-03 14:08   
(edited on: 2014-10-09 03:01)
I built the latest version of the development version of VTK 6.2 and the centering works now as expected :)

However the text is not scaled up to 3% of the viewport height when maximizing the window. See the attached screenshot how the font was scaled up in VTK 5.10.1. :(

Maybe it is more obvious when changing the maximum line height to 10%
=> attached modified scripts and a screenshot for 10%

(0036257)
Berk Geveci   
2016-07-06 16:48   
Setting to status of bugs that have not been updated in the last year to expired. Please re-open if still important.
(0037339)
Kitware Robot   
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.