glplot_geom.C

Go to the documentation of this file.
00001 // Demonstrates how to combine Timur's GL plots with other scene elements.
00002 // Author: Matevz Tadel, Sept 2009
00003 
00004 void glplot_geom()
00005 {
00006    TEveManager::Create();
00007 
00008    TEveUtil::Macro("show_extract.C");
00009 
00010    TH3F *h31 = new TH3F("h31", "h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
00011    h31->FillRandom("gaus", 20*20*20);
00012    h31->SetFillColor(2);
00013    x = new TEvePlot3D("EvePlot - TH3F");
00014    x->SetPlot(h31, "glbox");
00015    x->RefMainTrans().Scale(800, 800, 1000);
00016    x->RefMainTrans().RotateLF(1, 3, TMath::PiOver2());
00017    gEve->AddElement(x);
00018 
00019    gEve->Redraw3D(kTRUE);
00020 }

Generated on Tue Jul 5 15:43:50 2011 for ROOT_528-00b_version by  doxygen 1.5.1