Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
geom_lhcb.C
Go to the documentation of this file.
1/// \file
2/// \ingroup tutorial_eve
3/// Shows LHCB geometry.
4///
5/// \image html eve_geom_lhcb.png
6/// \macro_code
7///
8/// \author Matevz Tadel
9
10void geom_lhcb()
11{
13
15 gGeoManager = gEve->GetGeometry("http://root.cern.ch/files/lhcbfull.root");
17
19 tn->SetVisLevel(4);
21
23
24 // EClipType not exported to CINT (see TGLUtil.h):
25 // 0 - no clip, 1 - clip plane, 2 - clip box
26 auto v = gEve->GetDefaultGLViewer();
28 v->ColorSet().Background().SetColor(kMagenta+4);
29 v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0);
30 v->RefreshPadEditor(v);
31
32 v->CurrentCamera().RotateRad(-1.2, 0.5);
33 v->DoDraw();
34}
const Bool_t kFALSE
Definition RtypesCore.h:101
const Bool_t kTRUE
Definition RtypesCore.h:100
@ kMagenta
Definition Rtypes.h:66
R__EXTERN TEveManager * gEve
R__EXTERN TGeoManager * gGeoManager
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement.
Definition TEveGeoNode.h:90
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
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.
static Bool_t SetCacheFileDir(ROOT::Internal::TStringView cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Definition TFile.h:326
void SetClipType(TGLClip::EType type)
Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.
Definition TGLClip.cxx:580
@ kAxesEdge
Definition TGLUtil.h:949
TGLClipSet * GetClipSet() const
Definition TGLViewer.h:262
void DefaultColors()
Set default volume colors according to A of material.
TGeoNode * GetTopNode() const