geom_lhcb.C: Shows CMS geometry. | Event Display | glplot_geom.C: Demonstrates how to combine Timur's GL plots with other scene elements. |
// Preliminary demo for showing Timur's GL plots in EVE. // Author: Matevz Tadel, July 2009 void glplot() { TEveManager::Create(); gEve->GetDefaultGLViewer()->SetCurrentCamera(TGLViewer::kCameraPerspXOY); TF2 *f2 = new TF2("f2","x**2 + y**2 - x**3 -8*x*y**4", -1., 1.2, -1.5, 1.5); f2->SetFillColor(45); x = new TEvePlot3D("EvePlot - TF2"); x->SetLogZ(kTRUE); x->SetPlot(f2,"glsurf4"); x->RefMainTrans().MoveLF(2, 1); gEve->AddElement(x); TH3F *h31 = new TH3F("h31", "h31", 10, -1, 1, 10, -1, 1, 10, -1, 1); h31->FillRandom("gaus"); h31->SetFillColor(2); x = new TEvePlot3D("EvePlot - TH3F"); x->SetPlot(h31, "glbox"); x->RefMainTrans().MoveLF(2, -1); gEve->AddElement(x); gEve->Redraw3D(kTRUE); } glplot.C:1 glplot.C:2 glplot.C:3 glplot.C:4 glplot.C:5 glplot.C:6 glplot.C:7 glplot.C:8 glplot.C:9 glplot.C:10 glplot.C:11 glplot.C:12 glplot.C:13 glplot.C:14 glplot.C:15 glplot.C:16 glplot.C:17 glplot.C:18 glplot.C:19 glplot.C:20 glplot.C:21 glplot.C:22 glplot.C:23 glplot.C:24 glplot.C:25 glplot.C:26 glplot.C:27 glplot.C:28 |
|