Skip to content

[graf2d/graf] Eliminate gVirtualX usage from Graf classes - #23225

Merged
linev merged 8 commits into
root-project:masterfrom
linev:virtualx_graf2d
Sep 2, 2026
Merged

[graf2d/graf] Eliminate gVirtualX usage from Graf classes#23225
linev merged 8 commits into
root-project:masterfrom
linev:virtualx_graf2d

Conversation

@linev

@linev linev commented Sep 1, 2026

Copy link
Copy Markdown
Member

Only change ExecuteEvent in the TPie, TDiamond, TBox and TSliderBox classes.

These were last classes in Graf and Gpad library.

To be done: remove heavy use of static variables in TPie .

@linev linev self-assigned this Sep 1, 2026
@linev
linev requested a review from couet as a code owner September 1, 2026 16:16
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Test Results

    23 files      23 suites   3d 17h 35m 40s ⏱️
 3 863 tests  3 861 ✅ 0 💤 2 ❌
79 621 runs  79 619 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit 8376484.

in non-opaque moving line drawing is used.
Replace gVirtualX by pad painter
As first step, combine 3d and normal loops over slices to draw contour lines.
Take into account coordinate transformation
Make ExecuteEvent very simiar ro TBox
Both are very similar, therefore make similar changes.
Do not store pad coordinates in the static variables,
use in both firstPaint flaf
Via event argument provide flag when
onlyX or onlyY can be changed. It can be used then in derived classes like TSliderBox
Use functionality of TBox::ExecuteEvent instead reimplementing it again.

Depending on vertical or horizontal orientation of TSlider, either only X or only Y axis can be modified by the ExecuteEvent

Also when setting min/max value back to TSlider, respect border values of TSlider itself.
Now most of graphics classes do not use gVirtualX directly
@linev
linev merged commit 2e489ca into root-project:master Sep 2, 2026
26 of 31 checks passed
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