MantisBT - ParaView |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013141 | ParaView | (No Category) | public | 2012-04-30 19:33 | 2014-08-29 11:00 |
|
| Reporter | Alan Scott | |
| Assigned To | Cory Quammen | |
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | | OS Version | |
| Product Version | git-master | |
| Target Version | 4.2 | Fixed in Version | 4.2 | |
| Project | Sandia |
| Topic Name | sticky-axes |
| Type | incorrect functionality |
|
| Summary | 0013141: Cube Axis has font size weirdness |
| Description | 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.
|
| Steps To Reproduce | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | related to | 0013148 | closed | Alan Scott | Customization of Cube axis | | related to | 0011758 | closed | Aashish Chaudhary | Prism - Cube axis labels are too small |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2012-04-30 19:33 | Alan Scott | New Issue | |
| 2012-04-30 19:40 | Alan Scott | Note Added: 0028557 | |
| 2013-02-06 18:32 | Utkarsh Ayachit | Assigned To | => Nikhil Shetty |
| 2013-03-06 18:17 | Nikhil Shetty | Note Added: 0030417 | |
| 2013-03-06 18:17 | Nikhil Shetty | Status | backlog => todo |
| 2013-06-05 16:32 | Nikhil Shetty | Assigned To | Nikhil Shetty => |
| 2013-06-05 16:32 | Nikhil Shetty | Status | todo => backlog |
| 2013-06-27 13:18 | Sebastien Jourdain | Assigned To | => Sebastien Jourdain |
| 2013-06-27 13:18 | Sebastien Jourdain | Status | backlog => todo |
| 2013-06-27 13:18 | Sebastien Jourdain | Status | todo => active development |
| 2013-07-01 13:09 | Sebastien Jourdain | Topic Name | => smooth-cube-axis-actor-labels |
| 2013-07-01 13:09 | Sebastien Jourdain | Status | active development => gatekeeper review |
| 2013-07-01 13:09 | Sebastien Jourdain | Resolution | open => fixed |
| 2013-07-12 14:07 | Utkarsh Ayachit | Fixed in Version | => git-master |
| 2013-07-12 14:07 | Utkarsh Ayachit | Status | gatekeeper review => customer review |
| 2013-07-12 14:07 | Utkarsh Ayachit | Note Added: 0031137 | |
| 2013-08-12 09:39 | Utkarsh Ayachit | Note Added: 0031432 | |
| 2013-08-12 09:39 | Utkarsh Ayachit | Status | customer review => backlog |
| 2013-08-12 09:39 | Utkarsh Ayachit | Resolution | fixed => reopened |
| 2013-08-12 10:08 | Sebastien Jourdain | Note Added: 0031434 | |
| 2013-08-12 10:32 | Sebastien Jourdain | Note Edited: 0031434 | bug_revision_view_page.php?bugnote_id=31434#r639 |
| 2013-09-20 16:29 | Alan Scott | Note Added: 0031611 | |
| 2013-09-20 16:29 | Alan Scott | Status | backlog => todo |
| 2013-10-28 19:06 | Alan Scott | Relationship added | related to 0013148 |
| 2013-10-28 19:10 | Alan Scott | Relationship added | related to 0011758 |
| 2013-11-01 13:18 | Utkarsh Ayachit | Fixed in Version | git-master => 4.1 |
| 2014-01-24 11:33 | Utkarsh Ayachit | Assigned To | Sebastien Jourdain => Cory Quammen |
| 2014-01-24 22:47 | Cory Quammen | Note Added: 0032216 | |
| 2014-01-24 22:47 | Cory Quammen | Status | todo => active development |
| 2014-01-29 15:16 | Cory Quammen | Topic Name | smooth-cube-axis-actor-labels => sticky-axes |
| 2014-01-29 15:16 | Cory Quammen | Status | active development => gatekeeper review |
| 2014-01-29 15:16 | Cory Quammen | Fixed in Version | 4.1 => git-next |
| 2014-01-29 15:16 | Cory Quammen | Resolution | reopened => fixed |
| 2014-01-30 08:28 | Utkarsh Ayachit | Fixed in Version | git-next => git-master |
| 2014-01-30 08:29 | Utkarsh Ayachit | Status | gatekeeper review => customer review |
| 2014-01-30 08:29 | Utkarsh Ayachit | Note Added: 0032249 | |
| 2014-02-04 21:27 | Alan Scott | Note Added: 0032269 | |
| 2014-02-04 21:27 | Alan Scott | Status | customer review => closed |
| 2014-06-17 09:22 | Utkarsh Ayachit | Target Version | => 4.2 |
| 2014-08-29 11:00 | Utkarsh Ayachit | Fixed in Version | git-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
|
|
|
|
|
(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. |
|