Skip to content

Use TImage in TGeoPainter::Raytrace() - #23591

Open
linev wants to merge 2 commits into
root-project:masterfrom
linev:geom_raytrace
Open

linev wants to merge 2 commits into
root-project:masterfrom
linev:geom_raytrace

Conversation

@linev

@linev linev commented Oct 2, 2026

Copy link
Copy Markdown
Member

Instead direct painting on X11 window using gVirtualX->DrawPolyMarker() just
create TASImage object and fill it with pixel data. Image automatically painted on the pad afterwards,

There are many advantages:

  • works in batch
  • result can be stored in image file
  • works on different platforms (like qt6 or gtk4 canvas)
  • more performant

Adjust correspondent macro.

Resolves very old user request:
https://root-forum.cern.ch/t/export-raytraced-geometries-in-batch-mode/64974/

linev added 2 commits October 2, 2026 15:30
Instead direct painting of pixels on the display,
create image which can be simply displayed.

Main motivation - remove usage of gVirtualX API.
But also now it works on all platforms, including batch and more performant
It can now run in batch and produced image can be stored in the PNG file
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown

Test Results

    24 files      24 suites   4d 0h 28m 46s ⏱️
 3 880 tests  3 878 ✅ 0 💤 2 ❌
83 957 runs  83 955 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit d3750aa.

This branch has not been deployed

No deployments
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.

1 participant