ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 /// Author: Matevz Tadel, Sept 2009
5 ///
6 /// \image html eve_glplot_geom.png
7 /// \macro_code
8 ///
9 /// \author Matevz Tadel
10 
11 void glplot_geom()
12 {
14 
15  TEveUtil::Macro("show_extract.C");
16 
17  TH3F *h31 = new TH3F("h31", "h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
18  h31->FillRandom("gaus", 20*20*20);
19  h31->SetFillColor(2);
20  x = new TEvePlot3D("EvePlot - TH3F");
21  x->SetPlot(h31, "glbox");
22  x->RefMainTrans().Scale(800, 800, 1000);
23  x->RefMainTrans().RotateLF(1, 3, TMath::PiOver2());
24  gEve->AddElement(x);
25 
27 }
virtual void FillRandom(const char *fname, Int_t ntimes=5000)
Fill histogram following distribution in function fname.
Definition: TH3.cxx:653
3-D histogram with a float per channel (see TH1 documentation)}
Definition: TH3.h:272
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)
Definition: TAttFill.h:50
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
Double_t PiOver2()
Definition: TMath.h:46
const Bool_t kTRUE
Definition: Rtypes.h:91