Logo ROOT   6.07/09
Reference Guide
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 {
13 
14  TEveUtil::Macro("show_extract.C");
15 
16  TH3F *h31 = new TH3F("h31", "h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
17  h31->FillRandom("gaus", 20*20*20);
18  h31->SetFillColor(2);
19  x = new TEvePlot3D("EvePlot - TH3F");
20  x->SetPlot(h31, "glbox");
21  x->RefMainTrans().Scale(800, 800, 1000);
22  x->RefMainTrans().RotateLF(1, 3, TMath::PiOver2());
23  gEve->AddElement(x);
24 
26 }
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
Definition: TH3.cxx:658
tomato 3-D histogram with a float per channel (see TH1 documentation)}
Definition: TH3.h:271
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Definition: TEveManager.h:168
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
Double_t x[n]
Definition: legend1.C:17
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
Description of TEvePlot3D.
Definition: TEvePlot3D.h:18
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
Definition: TAttFill.h:42
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
static void Macro(const char *mac)
Execute macro 'mac'. Do not reload the macro.
Definition: TEveUtil.cxx:168
THist< 3, float, THistStatContent, THistStatUncertainty > TH3F
Definition: THist.hxx:314
Double_t PiOver2()
Definition: TMath.h:46
const Bool_t kTRUE
Definition: Rtypes.h:91