Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
glplot_geom.C File Reference

Detailed Description

Demonstrates how to combine Timur's GL plots with other scene elements.

void glplot_geom()
{
TEveUtil::Macro("show_extract.C");
auto h31 = new TH3F("h31", "h31", 20, -3, 3, 20, -3, 3, 20, -3, 3);
auto gxy = new TF3("gaus2","xygaus");
gxy->SetParameters(1,0,1,0,0.3);
h31->FillRandom("gaus2");
h31->SetFillColor(2);
auto x = new TEvePlot3D("EvePlot - TH3F");
x->SetPlot(h31, "glbox");
x->RefMainTrans().Scale(800, 800, 1000);
x->RefMainTrans().RotateLF(1, 3, TMath::PiOver2());
}
constexpr Bool_t kTRUE
Definition RtypesCore.h:93
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
Author
Matevz Tadel

Definition in file glplot_geom.C.