MantisBT - ParaView
View Issue Details
0013141ParaView(No Category)public2012-04-30 19:332014-08-29 11:00
Alan Scott 
Cory Quammen 
normalminorhave not tried
closedfixed 
git-master 
4.24.2 
Sandia
sticky-axes
incorrect functionality
0013141: Cube Axis has font size weirdness
The cube axis has a font size weirdness. It may be hard to replicate.
* Linux, master, local server.
* Open Can.exo. Apply.
* Show cube axis.
* Reset, +Z.
* Now, single step forward. At timestep 17 number, on the Y-Axis, -1.00 appears, all the numbers are on top of each other, and the font becomes larger/bolder. This is the bug.
No tags attached.
related to 0013148closed Alan Scott Customization of Cube axis 
related to 0011758closed Aashish Chaudhary Prism - Cube axis labels are too small 
Issue History
2012-04-30 19:33Alan ScottNew Issue
2012-04-30 19:40Alan ScottNote Added: 0028557
2013-02-06 18:32Utkarsh AyachitAssigned To => Nikhil Shetty
2013-03-06 18:17Nikhil ShettyNote Added: 0030417
2013-03-06 18:17Nikhil ShettyStatusbacklog => todo
2013-06-05 16:32Nikhil ShettyAssigned ToNikhil Shetty =>
2013-06-05 16:32Nikhil ShettyStatustodo => backlog
2013-06-27 13:18Sebastien JourdainAssigned To => Sebastien Jourdain
2013-06-27 13:18Sebastien JourdainStatusbacklog => todo
2013-06-27 13:18Sebastien JourdainStatustodo => active development
2013-07-01 13:09Sebastien JourdainTopic Name => smooth-cube-axis-actor-labels
2013-07-01 13:09Sebastien JourdainStatusactive development => gatekeeper review
2013-07-01 13:09Sebastien JourdainResolutionopen => fixed
2013-07-12 14:07Utkarsh AyachitFixed in Version => git-master
2013-07-12 14:07Utkarsh AyachitStatusgatekeeper review => customer review
2013-07-12 14:07Utkarsh AyachitNote Added: 0031137
2013-08-12 09:39Utkarsh AyachitNote Added: 0031432
2013-08-12 09:39Utkarsh AyachitStatuscustomer review => backlog
2013-08-12 09:39Utkarsh AyachitResolutionfixed => reopened
2013-08-12 10:08Sebastien JourdainNote Added: 0031434
2013-08-12 10:32Sebastien JourdainNote Edited: 0031434bug_revision_view_page.php?bugnote_id=31434#r639
2013-09-20 16:29Alan ScottNote Added: 0031611
2013-09-20 16:29Alan ScottStatusbacklog => todo
2013-10-28 19:06Alan ScottRelationship addedrelated to 0013148
2013-10-28 19:10Alan ScottRelationship addedrelated to 0011758
2013-11-01 13:18Utkarsh AyachitFixed in Versiongit-master => 4.1
2014-01-24 11:33Utkarsh AyachitAssigned ToSebastien Jourdain => Cory Quammen
2014-01-24 22:47Cory QuammenNote Added: 0032216
2014-01-24 22:47Cory QuammenStatustodo => active development
2014-01-29 15:16Cory QuammenTopic Namesmooth-cube-axis-actor-labels => sticky-axes
2014-01-29 15:16Cory QuammenStatusactive development => gatekeeper review
2014-01-29 15:16Cory QuammenFixed in Version4.1 => git-next
2014-01-29 15:16Cory QuammenResolutionreopened => fixed
2014-01-30 08:28Utkarsh AyachitFixed in Versiongit-next => git-master
2014-01-30 08:29Utkarsh AyachitStatusgatekeeper review => customer review
2014-01-30 08:29Utkarsh AyachitNote Added: 0032249
2014-02-04 21:27Alan ScottNote Added: 0032269
2014-02-04 21:27Alan ScottStatuscustomer review => closed
2014-06-17 09:22Utkarsh AyachitTarget Version => 4.2
2014-08-29 11:00Utkarsh AyachitFixed in Versiongit-master => 4.2

Notes
(0028557)
Alan Scott   
2012-04-30 19:40   
By the way, the reason the previous functionality is obnoxious is that during a movie, the cube axis will tend to bounce.

Another place this shows up is with disk_out_ref.exo.

Open disk_out_ref.exo.
Turn on Show cube axis.
+Z
The Y axis labels will change size.
(0030417)
Nikhil Shetty   
2013-03-06 18:17   
This could be replicated. The general observation is that whenever there is a transitions then the font size briefly changes.

This could be because of a number of reasons.
(0031137)
Utkarsh Ayachit   
2013-07-12 14:07   
merged into master.
(0031432)
Utkarsh Ayachit   
2013-08-12 09:39   
reopening since the font weridness exists. It does go away once we swicth to using FreeType based text, but that needs more work to ensure it continues to render correctly even for small text.
(0031434)
Sebastien Jourdain   
2013-08-12 10:08   
(edited on: 2013-08-12 10:32)
To enable FreeType font in cube axes just add the following line

commit 881e87a860a9f39da350fe8610a1dddd70468d6e
Author: Julien Finet <julien.finet@kitware.com>
Date: Mon Jul 1 11:06:41 2013 -0400

    Use TextActor3D for CubeAxes representation
    
    The titles and labels are smoother with UseTextActors3D
    
    Change-Id: I310ebcbe1d798d95e141dd8e608b4de39699bd18

diff --git a/ParaViewCore/ClientServerCore/Rendering/vtkCubeAxesRepresentation.cxx b/ParaViewCore/ClientServerCore/Rendering/vtkCubeAxesRepresentation.cxx
index bc8a70c..583069e 100644
--- a/ParaViewCore/ClientServerCore/Rendering/vtkCubeAxesRepresentation.cxx
+++ b/ParaViewCore/ClientServerCore/Rendering/vtkCubeAxesRepresentation.cxx
@@ -49,6 +49,7 @@ vtkCubeAxesRepresentation::vtkCubeAxesRepresentation()
 
   this->CubeAxesActor = vtkCubeAxesActor::New();
   this->CubeAxesActor->SetPickable(0);
+ this->CubeAxesActor->SetUseTextActor3D(1);
 
   this->Position[0] = this->Position[1] = this->Position[2] = 0.0;
   this->Orientation[0] = this->Orientation[1] = this->Orientation[2] = 0.0;

(0031611)
Alan Scott   
2013-09-20 16:29   
Marking todo, since this is hurting one of my users.
(0032216)
Cory Quammen   
2014-01-24 22:47   
I encountered this same bug when implementing a mode where the axes change size to stay within the viewport. The underlying problem was that when the number of numeric labels changed, the position of the labels was not set prior to computing the label size, causing the jump in font size in the first render after the number of labels changed. You'll notice that in Alan's steps to reproduce, the label size jumps at timesteps in the dataset where the number of labels along an axis direction changes. During subsequent renderings, the label position would get set and the label size would be correct, making this bug a little tricky to characterize and track down.

The bug is fixed in this VTK commit:

commit 5040362b27b6555ef789cc948216dc47a625b343
Author: Cory Quammen <cory.quammen@kitware.com>
Date: Fri Jan 10 15:01:30 2014 -0500

    Added "sticky" axes mode to vtkCubeAxesActor

@@ -1650,6 +1690,12 @@ void vtkCubeAxesActor::BuildAxes(vtkViewport *viewport)
       this->XAxes[i]->SetTitleScale(this->TitleScale);
       this->YAxes[i]->SetTitleScale(this->TitleScale);
       this->ZAxes[i]->SetTitleScale(this->TitleScale);
+
+ // Need to build the axis again prior to calling AutoScale so
+ // that labels are positioned accordingly.
+ this->XAxes[i]->BuildAxis(viewport, true);
+ this->YAxes[i]->BuildAxis(viewport, true);
+ this->ZAxes[i]->BuildAxis(viewport, true);

I verified that this change fixes the error produced by Alan's bug report. Note that this change is not yet available in ParaView master, but should hopefully make it in after the next gatekeeper review.
(0032249)
Utkarsh Ayachit   
2014-01-30 08:29   
SUMMARY
---------------------------------------------
Topics merged into master:
(VTK) 14508-title-bar
        14512_print_info_on_handshake_failure
        add-rendering-base-edition
(VTK) enable-new-vtk-image-filters
        fix_parallel_amrconnectivity
        fix_tiff_dependency_issues
        popout_tabwidget
        pvweb-apache-doc-fix
        pvweb-fixes
        rescale_over_time_bug
        sqtk-refactor-fixes
(VTK) sticky-axes
        view-settings
(VTK) web-catalyst-module-update
(0032269)
Alan Scott   
2014-02-04 21:27   
Tested local server, master, Linux. Tested with can and disk_out_ref.