Skip to content

Remove gVirtualX usage in TGaxis and TView3D#22737

Merged
linev merged 2 commits into
root-project:masterfrom
linev:less_virtualx
Jul 2, 2026
Merged

Remove gVirtualX usage in TGaxis and TView3D#22737
linev merged 2 commits into
root-project:masterfrom
linev:less_virtualx

Conversation

@linev

@linev linev commented Jul 1, 2026

Copy link
Copy Markdown
Member

In TGaxis gVirtualX was used to set text angle - which is not obsolete and ignored when axistext.PaintLatex() method is used. Also gVirtualX clipping is not used in ROOT, therefore no need to disable it.

In TView3D only line attributes of gVirtualX were reset. Now it is mostly useless, but just replace with similar pad painter method.

Both commits allow to use TQt6Canvas from #22736 for all kinds of histogram painting

linev added 2 commits July 1, 2026 14:32
Two methods were used:
1. gVirtualX->SetClipOFF(), which is not necessary while
no any places in ROOT where ClipRegion is configured
2. gVirtualX->SetCharacterUp() which was used
long time agi to define text rotation angle.
It is obsolete while direct text painting with gVirtualX methods
no longer usead and textaxis.PaintLatex() always specify angle.

This change allows to paint axes and all histograms
on qt6 canvas.
In one place line attributes were reset.
Now pad painter is responsible for attributes - use it.

Allow to use lego plots with qt6 canvas
@linev linev self-assigned this Jul 1, 2026
@linev linev requested a review from couet as a code owner July 1, 2026 12:37
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 16h 17m 27s ⏱️
 3 876 tests  3 779 ✅   0 💤  97 ❌
78 826 runs  78 608 ✅ 117 💤 101 ❌

For more details on these failures, see this check.

Results for commit 979e03d.

@linev linev merged commit 4cf1095 into root-project:master Jul 2, 2026
35 of 42 checks passed
@linev linev deleted the less_virtualx branch July 2, 2026 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants