Logo ROOT   6.07/09
Reference Guide
geom_lhcb.C
Go to the documentation of this file.
1 /// \file
2 /// \ingroup tutorial_eve
3 /// Shows CMS geometry.
4 ///
5 /// \image html eve_geom_lhcb.png
6 /// \macro_code
7 ///
8 /// \author Matevz Tadel
9 
10 void 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
30  v->RefreshPadEditor(v);
31 
32  v->CurrentCamera().RotateRad(-1.2, 0.5);
33  v->DoDraw();
34 }
void SetClipType(TGLClip::EType type)
Set current clip active in viewer - 'type' is one of kClipNone kClipPlane or kClipBox.
Definition: TGLClip.cxx:580
void AddGlobalElement(TEveElement *element, TEveElement *parent=0)
Add a global element, i.e.
void DoDraw(Bool_t swap_buffers=kTRUE)
Draw out the viewer.
Definition: TGLViewer.cxx:546
virtual Bool_t RotateRad(Double_t hRotate, Double_t vRotate)
Rotate camera around center.
Definition: TGLCamera.cxx:927
const Bool_t kFALSE
Definition: Rtypes.h:92
TGeoNode * GetTopNode() const
Definition: TGeoManager.h:498
static TEveManager * Create(Bool_t map_window=kTRUE, Option_t *opt="FIV")
If global TEveManager* gEve is not set initialize it.
TGLClipSet * GetClipSet() const
Definition: TGLViewer.h:262
A wrapper over a TGeoNode, possibly displaced with a global trasformation stored in TEveElement...
Definition: TEveGeoNode.h:92
TGeoManager * GetGeometry(const TString &filename)
Get geometry with given filename.
SVector< double, 2 > v
Definition: Dict.h:5
R__EXTERN TEveManager * gEve
Definition: TEveManager.h:243
void DefaultColors()
Set default volume colors according to A of material.
TGLCamera & CurrentCamera() const
Definition: TGLViewer.h:267
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:53
void SetVisLevel(Int_t vl)
Definition: TEveGeoNode.h:115
R__EXTERN TGeoManager * gGeoManager
Definition: TGeoManager.h:554
void FullRedraw3D(Bool_t resetCameras=kFALSE, Bool_t dropLogicals=kFALSE)
Perform 3D redraw of all scenes and viewers.
TGLViewer * GetDefaultGLViewer() const
Get TGLViewer of the default TEveViewer.
TGLColor & Background()
Definition: TGLUtil.h:853
virtual void RefreshPadEditor(TObject *obj=0)
Update GED editor if it is set.
Definition: TGLViewer.cxx:2255
void SetGuideState(Int_t axesType, Bool_t axesDepthTest, Bool_t referenceOn, const Double_t *referencePos)
Set the state of guides (axes & reference markers) from arguments.
Definition: TGLViewer.cxx:2038
TGLColorSet & ColorSet()
Definition: TGLViewer.h:234
static Bool_t SetCacheFileDir(const char *cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
Definition: TFile.cxx:4391
void SetColor(Int_t r, Int_t g, Int_t b, Int_t a=255)
Set color with Int_t values.
Definition: TGLUtil.cxx:1258
const Bool_t kTRUE
Definition: Rtypes.h:91