Logo ROOT   6.07/09
Reference Guide
show_extract.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_eve
3 /// Helper script for showing of extracted / simplified geometries.
4 /// By default shows a simplified ALICE geometry.
5 ///
6 /// \image html eve_show_extract.png
7 /// \macro_code
8 ///
9 /// \author Matevz Tadel
10 
11 void show_extract(const char* file="http://root.cern.ch/files/alice_ESDgeometry.root")
12 {
14 
16 
17  TIter next(gDirectory->GetListOfKeys());
18  TKey* key;
19  TString xxx("TEveGeoShapeExtract");
20 
21  while ((key = (TKey*) next()))
22  {
23  if (xxx == key->GetClassName())
24  {
25  TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) key->ReadObj();
28  }
29  }
30 
32 }
Globally positioned TGeoShape with rendering attributes and an optional list of daughter shape-extrac...
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
Basic string class.
Definition: TString.h:137
void Redraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Definition: TEveManager.h:168
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1, Int_t netopt=0)
Create / open a file.
Definition: TFile.cxx:3871
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Definition: TKey.h:30
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
Definition: file.py:1
Wrapper for TGeoShape with absolute positioning and color attributes allowing display of extracted TG...
Definition: TEveGeoShape.h:23
#define gDirectory
Definition: TDirectory.h:221
const Bool_t kTRUE
Definition: Rtypes.h:91
static TEveGeoShape * ImportShapeExtract(TEveGeoShapeExtract *gse, TEveElement *parent=0)
Import a shape extract 'gse' under element 'parent'.