Logo ROOT   6.18/05
Reference Guide
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());
}
const Bool_t kTRUE
Definition: RtypesCore.h:87
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
void AddElement(TEveElement *element, TEveElement *parent=0)
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)
Definition: TEveManager.h:168
Description of TEvePlot3D.
Definition: TEvePlot3D.h:19
static void Macro(const char *mac)
Execute macro 'mac'. Do not reload the macro.
Definition: TEveUtil.cxx:168
A 3-Dim function with parameters.
Definition: TF3.h:28
3-D histogram with a float per channel (see TH1 documentation)}
Definition: TH3.h:265
Double_t x[n]
Definition: legend1.C:17
constexpr Double_t PiOver2()
Definition: TMath.h:52
Author
Matevz Tadel

Definition in file glplot_geom.C.