Project
Loading...
Searching...
No Matches
o2::event_visualisation::MultiView Class Reference

#include <MultiView.h>

Public Types

enum  EViews { View3d , ViewRphi , ViewZY , NumberOfViews }
 
enum  EScenes {
  Scene3dGeom , Scene3dEvent , SceneRphiGeom , SceneZYGeom ,
  SceneRphiEvent , SceneZYEvent , NumberOfScenes
}
 
enum  EProjections { ProjectionRphi , ProjectionZY , NumberOfProjections }
 

Public Member Functions

TEveViewer * getView (EViews view)
 Returns pointer to specific view.
 
TEveScene * getScene (EScenes scene)
 Returns pointer to specific scene.
 
TEveProjectionManager * getProjection (EProjections projection)
 Returns pointer to specific projection manager.
 
TEveGeoShape * getDetectorGeometry (const std::string &detectorName)
 
void drawGeometryForDetector (std::string detectorName, bool threeD=true, bool rPhi=true, bool zy=true)
 
void registerGeometry (TEveGeoShape *geom, bool threeD=true, bool rPhi=true, bool zy=true)
 Registers geometry to be drawn in appropriate views.
 
void destroyAllGeometries ()
 Removes all geometries.
 
void registerElements (TEveElementList *elements[], TEveElementList *phiElements[])
 Registers an elements to be drawn.
 
void registerElement (TEveElement *event)
 Registers an element to be drawn.
 
void registerEvent (TEveElement *event)
 
TGLAnnotation * getAnnotationTop ()
 Get annotation pointer.
 
TGLAnnotation * getAnnotationBottom ()
 
void destroyAllEvents ()
 Removes all shapes representing current event.
 
void redraw3D ()
 

Static Public Member Functions

static MultiViewgetInstance ()
 Returns an instance of the MultiView.
 

Detailed Description

This singleton class manages views and scenes of the event display.

MultiView will create all necessary views and scenes, give them proper names and descriptions and provide pointers to these objects. It also allows to draw or remove simplified geometries. One can also register visualisation objects for drawing in the MultiView, which will be imported to 3D view and projections.

Definition at line 41 of file MultiView.h.

Member Enumeration Documentation

◆ EProjections

Enumerator
ProjectionRphi 

R-Phi projection.

ProjectionZY 

Z-Y projection.

NumberOfProjections 

Total number of projections.

Definition at line 60 of file MultiView.h.

◆ EScenes

Enumerator
Scene3dGeom 

3D scene of geometry

Scene3dEvent 

3D scene of event

SceneRphiGeom 

R-Phi scene of geometry.

SceneZYGeom 

Z-Y scene of geometry.

SceneRphiEvent 

R-Phi scene of event.

SceneZYEvent 

Z-Y scene of event.

NumberOfScenes 

Total number of scenes.

Definition at line 51 of file MultiView.h.

◆ EViews

Enumerator
View3d 

3D view

ViewRphi 

R-Phi view.

ViewZY 

Z-Y view.

NumberOfViews 

Total number of views.

Definition at line 44 of file MultiView.h.

Member Function Documentation

◆ destroyAllEvents()

void o2::event_visualisation::MultiView::destroyAllEvents ( )

Removes all shapes representing current event.

Definition at line 247 of file MultiView.cxx.

◆ destroyAllGeometries()

void o2::event_visualisation::MultiView::destroyAllGeometries ( )

Removes all geometries.

Definition at line 211 of file MultiView.cxx.

◆ drawGeometryForDetector()

void o2::event_visualisation::MultiView::drawGeometryForDetector ( std::string  detectorName,
bool  threeD = true,
bool  rPhi = true,
bool  zy = true 
)

Draws geometry for given detector

Parameters
detectorNameThe name of the detector to draw geometry of
threeDShould 3D view be drawn
rPhiShould R-Phi projection be drawn
zyShould Z-Y projection be drawn

Definition at line 178 of file MultiView.cxx.

◆ getAnnotationBottom()

TGLAnnotation * o2::event_visualisation::MultiView::getAnnotationBottom ( )
inline

Definition at line 100 of file MultiView.h.

◆ getAnnotationTop()

TGLAnnotation * o2::event_visualisation::MultiView::getAnnotationTop ( )
inline

Get annotation pointer.

Definition at line 99 of file MultiView.h.

◆ getDetectorGeometry()

TEveGeoShape * o2::event_visualisation::MultiView::getDetectorGeometry ( const std::string &  detectorName)

Returns the detector geometry for a given name

Parameters
detectorNameThe name of the requested detector

Definition at line 167 of file MultiView.cxx.

◆ getInstance()

MultiView * o2::event_visualisation::MultiView::getInstance ( )
static

Returns an instance of the MultiView.

Definition at line 106 of file MultiView.cxx.

◆ getProjection()

TEveProjectionManager * o2::event_visualisation::MultiView::getProjection ( EProjections  projection)
inline

Returns pointer to specific projection manager.

Definition at line 74 of file MultiView.h.

◆ getScene()

TEveScene * o2::event_visualisation::MultiView::getScene ( EScenes  scene)
inline

Returns pointer to specific scene.

Definition at line 72 of file MultiView.h.

◆ getView()

TEveViewer * o2::event_visualisation::MultiView::getView ( EViews  view)
inline

Returns pointer to specific view.

Definition at line 70 of file MultiView.h.

◆ redraw3D()

void o2::event_visualisation::MultiView::redraw3D ( )

Definition at line 256 of file MultiView.cxx.

◆ registerElement()

void o2::event_visualisation::MultiView::registerElement ( TEveElement *  event)

Registers an element to be drawn.

Definition at line 239 of file MultiView.cxx.

◆ registerElements()

void o2::event_visualisation::MultiView::registerElements ( TEveElementList *  elements[],
TEveElementList *  phiElements[] 
)

Registers an elements to be drawn.

Definition at line 226 of file MultiView.cxx.

◆ registerEvent()

void o2::event_visualisation::MultiView::registerEvent ( TEveElement *  event)
inline

Definition at line 96 of file MultiView.h.

◆ registerGeometry()

void o2::event_visualisation::MultiView::registerGeometry ( TEveGeoShape *  geom,
bool  threeD = true,
bool  rPhi = true,
bool  zy = true 
)

Registers geometry to be drawn in appropriate views.

Definition at line 186 of file MultiView.cxx.


The documentation for this class was generated from the following files: