View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014963VTK(No Category)public2014-08-23 12:072016-08-12 09:55
ReporterMichael Bachmann 
Assigned ToUtkarsh Ayachit 
PriorityurgentSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version6.0.0 
Target VersionFixed in Version 
Summary0014963: vtkTextActor scaling and justification bug
DescriptionIn 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.
Tagscentered, justification, scaling, vtkTextActor
ProjectTBD
Typeincorrect functionality
Attached Files? file icon vtkTextActor_scaling_and_alignment_issue.py [^] (1,528 bytes) 2014-08-23 12:07
? file icon vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1.tcl [^] (1,882 bytes) 2014-08-23 12:49
png file icon Screen Shot 2014-10-02 at 2.35.06 PM.png [^] (177,304 bytes) 2014-10-02 14:35


png file icon vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_2014-10-03_08-03_PM.png [^] (145,223 bytes) 2014-10-03 14:08


? file icon vtkTextActor_scaling_and_alignment_issue_10%.py [^] (1,527 bytes) 2014-10-03 14:16
? file icon vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%.tcl [^] (1,881 bytes) 2014-10-03 14:16
png file icon vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%_2014-10-03_08-15_PM.png [^] (156,378 bytes) 2014-10-03 14:17

 Relationships

  Notes
(0033283)
Michael Bachmann (reporter)
2014-08-23 12:50

Added an example file for VTK 5.10.1.
(0033510)
Utkarsh Ayachit (administrator)
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 (reporter)
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 (administrator)
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 (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
2014-08-23 12:07 Michael Bachmann New Issue
2014-08-23 12:07 Michael Bachmann File Added: vtkTextActor_scaling_and_alignment_issue.py
2014-08-23 12:13 Michael Bachmann Tag Attached: centered
2014-08-23 12:13 Michael Bachmann Tag Attached: justification
2014-08-23 12:13 Michael Bachmann Tag Attached: scaling
2014-08-23 12:13 Michael Bachmann Tag Attached: vtkTextActor
2014-08-23 12:49 Michael Bachmann File Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1.tcl
2014-08-23 12:50 Michael Bachmann Note Added: 0033283
2014-10-02 14:35 Utkarsh Ayachit File Added: Screen Shot 2014-10-02 at 2.35.06 PM.png
2014-10-02 14:36 Utkarsh Ayachit Note Added: 0033510
2014-10-02 14:36 Utkarsh Ayachit Status backlog => closed
2014-10-02 14:36 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2014-10-02 14:36 Utkarsh Ayachit Resolution open => no change required
2014-10-02 14:36 Utkarsh Ayachit Fixed in Version => 6.2.0
2014-10-03 14:08 Michael Bachmann Note Added: 0033572
2014-10-03 14:08 Michael Bachmann Status closed => backlog
2014-10-03 14:08 Michael Bachmann Resolution no change required => reopened
2014-10-03 14:08 Michael Bachmann File Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_2014-10-03_08-03_PM.png
2014-10-03 14:14 Michael Bachmann Note Edited: 0033572
2014-10-03 14:16 Michael Bachmann File Added: vtkTextActor_scaling_and_alignment_issue_10%.py
2014-10-03 14:16 Michael Bachmann File Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%.tcl
2014-10-03 14:17 Michael Bachmann File Added: vtkTextActor_scaling_and_alignment_works_in_vtk5.10.1_10%_2014-10-03_08-15_PM.png
2014-10-09 03:01 Michael Bachmann Note Edited: 0033572
2016-07-06 16:48 Berk Geveci Status backlog => expired
2016-07-06 16:48 Berk Geveci Note Added: 0036257
2016-08-12 09:55 Kitware Robot Note Added: 0037339
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Fixed in Version 6.2.0 =>
2016-08-12 09:55 Kitware Robot Resolution reopened => moved


Copyright © 2000 - 2018 MantisBT Team