10const char* esd_geom_file_name =
11 "http://root.cern.ch/files/alice_ESDgeometry.root";
30 axes->SetTitle(
"TEveProjections demo");
36 auto geom =
TFile::Open(esd_geom_file_name,
"CACHEREAD");
44 gsre->SetPickableRecursively(
kTRUE);
47 mng->ImportElements(gsre);
51 for (
Int_t i=0; i<160; ++i)
52 line->SetNextPoint(120*
sin(0.2*i), 120*
cos(0.2*i), 80-i);
54 mng->ImportElements(
line);
R__EXTERN TEveManager * gEve
virtual Bool_t SetRnrState(Bool_t rnr)
Set render state of this element and of its children to the same value.
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=0)
Import a shape extract 'gse' under element 'parent'.
An arbitrary polyline with fixed line and marker attributes.
void AddElement(TEveElement *element, TEveElement *parent=0)
Add an element.
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
TEveViewer * GetDefaultViewer() const
Returns the default viewer - the first one in the fViewers list.
TEveScene * GetGlobalScene() const
TGListTreeItem * AddToListTree(TEveElement *re, Bool_t open, TGListTree *lt=0)
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)
TEveScene * SpawnNewScene(const char *name, const char *title="")
Create a new scene.
Axes for non-linear projections.
Manager class for steering of projections and managing projected objects.
virtual void AddScene(TEveScene *scene)
Add 'scene' to the list of scenes.
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
Orthographic projection camera.
void SetZoomMinMax(Double_t min, Double_t max)
void SetCurrentCamera(ECameraType camera)
Set current active camera - 'cameraType' one of: kCameraPerspX, kCameraPerspY, kCameraPerspZ,...