Viewing 3d data: gPad->x3d()

Hello,
I am using win32gdk v3.10/02 on win2k. I have a TTree with xyz points that I want to display. I use, for example

pTree->SetMarkerColor(2);
pTree->Draw(“z:y:x”,“abs(mass-29.5)<.5”);
pTree->SetMarkerColor(4);
pTree->Draw(“z:y:x”,“abs(mass-27.5)<.5”);
gPad->x3d();

The opengl window is comes up and I can rotate the data rapidly and get a good idea of whats going on. I have two questions:

  1. Is it possible to have the opengl window replace the TRootEmbeddedCanvas in my application rather than opening up a second window?

2.Is it possibly to programatically apply clipping to the displayed data? I would like to add sliders to my application that control the
displayed x- y- and z- extent of the data. The alternative, which is quite slow, is to redraw the TTree with cuts. There appears to be at
least 1 clipping plane in the x3d viewer - typeing “j” and “k” into the viewer appears to move the data through a clipping plane. Behavior
seems different in perspective vs. orthographic projections…

Thanks!

Ed

What you want is provided with Qt ROOT
The windows binary does include QGLviewer (with the clipping plane)
artis.imag.fr/Members/Gilles.Deb … index.html
and Coin3D coin3d.org/Coin/free.php viewers
to choose from.

One can manage things pragmatically but . . . via Qt / Coint interfaces. In other words it is an implementation depended yet.

In theory one can put paint GL windows OVER canvas also. That will do what you want. By the waht do you want? (:slight_smile:

Check
root.bnl.gov/QtRoot/n49CoinViewer.png
root.bnl.gov/picture/rootGeomGViewer.png

These viewers are developing as a part of STAR Event Display project.

Hope this helps