Shows CMS geometry in stereo mode.
This requires quad-buffer support in the OpenGL hardware / driver, otherwise a fatal error occurs.
{
trk->SetVisLevel(6);
calo->SetVisLevel(3);
muon->SetVisLevel(4);
auto sv =
new TEveViewer(
"Stereo GL",
"Stereoscopic view");
v->ColorSet().Background().SetColor(
kMagenta+4);
v->CurrentCamera().RotateRad(-1.2, 0.5);
}
R__EXTERN TEveManager * gEve
R__EXTERN TGeoManager * gGeoManager
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
TEveViewerList * GetViewers() const
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
TEveScene * GetGlobalScene() const
TEveBrowser * GetBrowser() const
void EditElement(TEveElement *element)
Show element in default editor.
TEveGedEditor * GetEditor() const
Returns main object editor.
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
void FullRedraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Perform 3D redraw of all scenes and viewers.
TGeoManager * GetGeometry(const TString &filename)
Get geometry with given filename.
virtual void AddElement(TEveElement *el)
Call base-class implementation.
Eve representation of TGLViewer.
Description of TEveWindowSlot.
void ReplaceWindow(TEveWindow *w)
Replace this window with the passed one.
static TEveWindowSlot * CreateWindowInTab(TGTab *tab, TEveWindow *eve_parent=0)
Create a new tab in a given tab-widget and populate it with a default window-slot.
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
virtual Bool_t SetTab(Int_t tabIndex, Bool_t emit=kTRUE)
Brings the composite frame with the index tabIndex to the front and generate the following event if t...
void DefaultColors()
Set default volume colors according to A of material.
TGeoNode * FindNode(Bool_t safe_start=kTRUE)
Returns deepest node containing current point.
TGeoVolume * GetTopVolume() const
TGeoVolume * GetVolume() const
TGeoNode * FindNode(const char *name) const
search a daughter inside the list of nodes
TGTab * GetTabRight() const