![]() |
Project
|
#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 MultiView * | getInstance () |
Returns an instance of the MultiView. | |
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.
Enumerator | |
---|---|
ProjectionRphi | R-Phi projection. |
ProjectionZY | Z-Y projection. |
NumberOfProjections | Total number of projections. |
Definition at line 60 of file MultiView.h.
Definition at line 51 of file MultiView.h.
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.
void o2::event_visualisation::MultiView::destroyAllEvents | ( | ) |
Removes all shapes representing current event.
Definition at line 247 of file MultiView.cxx.
void o2::event_visualisation::MultiView::destroyAllGeometries | ( | ) |
Removes all geometries.
Definition at line 211 of file MultiView.cxx.
void o2::event_visualisation::MultiView::drawGeometryForDetector | ( | std::string | detectorName, |
bool | threeD = true , |
||
bool | rPhi = true , |
||
bool | zy = true |
||
) |
Draws geometry for given detector
detectorName | The name of the detector to draw geometry of |
threeD | Should 3D view be drawn |
rPhi | Should R-Phi projection be drawn |
zy | Should Z-Y projection be drawn |
Definition at line 178 of file MultiView.cxx.
|
inline |
Definition at line 100 of file MultiView.h.
|
inline |
Get annotation pointer.
Definition at line 99 of file MultiView.h.
TEveGeoShape * o2::event_visualisation::MultiView::getDetectorGeometry | ( | const std::string & | detectorName | ) |
Returns the detector geometry for a given name
detectorName | The name of the requested detector |
Definition at line 167 of file MultiView.cxx.
|
static |
Returns an instance of the MultiView.
Definition at line 106 of file MultiView.cxx.
|
inline |
Returns pointer to specific projection manager.
Definition at line 74 of file MultiView.h.
|
inline |
Returns pointer to specific scene.
Definition at line 72 of file MultiView.h.
|
inline |
Returns pointer to specific view.
Definition at line 70 of file MultiView.h.
void o2::event_visualisation::MultiView::redraw3D | ( | ) |
Definition at line 256 of file MultiView.cxx.
void o2::event_visualisation::MultiView::registerElement | ( | TEveElement * | event | ) |
Registers an element to be drawn.
Definition at line 239 of file MultiView.cxx.
void o2::event_visualisation::MultiView::registerElements | ( | TEveElementList * | elements[], |
TEveElementList * | phiElements[] | ||
) |
Registers an elements to be drawn.
Definition at line 226 of file MultiView.cxx.
|
inline |
Definition at line 96 of file MultiView.h.
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.