swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 06207eec9ee890c3c6283634fd3ef9d8ab3d512d authored by Fons Rademakers on 24 November 2011, 16:10:46 UTC
tag patch release v5-30-05.
Tip revision: 06207ee
glplot_geom.C
// Demonstrates how to combine Timur's GL plots with other scene elements.
// Author: Matevz Tadel, Sept 2009

void glplot_geom()
{
   TEveManager::Create();

   TEveUtil::Macro("show_extract.C");

   TH3F *h31 = new TH3F("h31", "h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
   h31->FillRandom("gaus", 20*20*20);
   h31->SetFillColor(2);
   x = new TEvePlot3D("EvePlot - TH3F");
   x->SetPlot(h31, "glbox");
   x->RefMainTrans().Scale(800, 800, 1000);
   x->RefMainTrans().RotateLF(1, 3, TMath::PiOver2());
   gEve->AddElement(x);

   gEve->Redraw3D(kTRUE);
}
back to top