Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
10void glplot_geom()
11{
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());
27
29}
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
R__EXTERN TEveManager * gEve
void AddElement(TEveElement *element, TEveElement *parent=nullptr)
Add an element.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Description of TEvePlot3D.
Definition TEvePlot3D.h:19
static void Macro(const char *mac)
Execute macro 'mac'. Do not reload the macro.
Definition TEveUtil.cxx:164
A 3-Dim function with parameters.
Definition TF3.h:28
3-D histogram with a float per channel (see TH1 documentation)
Definition TH3.h:317
Double_t x[n]
Definition legend1.C:17
constexpr Double_t PiOver2()
Definition TMath.h:51