Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
glplot_geom.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_eve
3 /// Demonstrates how to combine Timur's GL plots with other scene elements.
4 ///
5 /// \image html eve_glplot_geom.png
6 /// \macro_code
7 ///
8 /// \author Matevz Tadel
9 
10 void glplot_geom()
11 {
12  TEveManager::Create();
13 
14  TEveUtil::Macro("show_extract.C");
15 
16  auto h31 = new TH3F("h31", "h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
17  auto gxy = new TF3("gaus2","xygaus");
18  gxy->SetParameters(1,0,1,0,0.3);
19  h31->FillRandom("gaus2");
20 
21  h31->SetFillColor(2);
22  auto x = new TEvePlot3D("EvePlot - TH3F");
23  x->SetPlot(h31, "glbox");
24  x->RefMainTrans().Scale(800, 800, 1000);
25  x->RefMainTrans().RotateLF(1, 3, TMath::PiOver2());
26  gEve->AddElement(x);
27 
28  gEve->Redraw3D(kTRUE);
29 }