22 #include <TEveManager.h>
23 #include <TEveBrowser.h>
24 #include <TEveWindow.h>
25 #include <TGLViewer.h>
28 using namespace DD4hep;
31 Projection::Projection(
Display* eve,
const string& nam)
32 :
View(eve, nam), m_projMgr(0), m_axis(0)
54 if ( el == unprojected ) {
59 TEveElement*
e =
m_projMgr->ImportElements(el, list);
60 printout(
INFO,
"Projection",
"ImportElement %s [%s] into list: %s Projectable:%s [%p]",
62 dynamic_cast<TEveProjectable*
>(list) ?
"true" :
"false", e);
64 unprojected->AddElement(el);
86 TEveProjectionAxes* a =
new TEveProjectionAxes(
m_projMgr);
87 a->SetMainColor(kWhite);
89 a->SetTitleSize(0.05);
91 a->SetLabelSize(0.025);
101 m_projMgr =
new TEveProjectionManager(TEveProjection::kPT_RPhi);
110 m_projMgr =
new TEveProjectionManager(TEveProjection::kPT_RhoZ);
119 m_view->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
Class of the ROOT toolkit. See http://root.cern.ch/root/htmldoc/ClassIndex.html.
virtual TEveElement * ImportGeoElement(TEveElement *element, TEveElementList *list)
Call an element to a geometry element list.
virtual TEveElementList & GetGeoTopic(const std::string &name)
Access/Create an geometry topic by name.
virtual View & Map(TEveWindow *slot)
Map the view view to the slot.
View TEveWindowSlot * slot
virtual Projection & AddAxis()
Add projection axis to the view.
TEveScene * m_eveScene
Reference to the event scene.
TEveProjectionAxes * m_axis
Reference to the projection axis.
virtual TEveElement * ImportElement(TEveElement *el, TEveElementList *list)
Call an element to a event element list.
virtual ~Projection()
Default destructor.
virtual void SetDepth(Float_t d)
TEveViewer * m_view
Reference to the view.
virtual TEveElementList * AddToGlobalItems(const std::string &nam)
Add the view to the global list of eve objects.
const char * GetName(T *p)
class View View.h DDEve/View.h
class Projection Projection.h DDEve/Projection.h
virtual TEveElement * ImportEventElement(TEveElement *element, TEveElementList *list)
Call an element to a event element list.
virtual Projection & CreateRhoZProjection()
Create Rho-Z projection.
TEveProjectionManager * m_projMgr
Reference to the projection manager.
static T::const_iterator find(const T &c, const string &s)
virtual View & Map(TEveWindow *slot)
Map the projection view to the slot.
TEveScene * m_geoScene
Reference to the geometry scene.
virtual TEveElement * ImportGeoTopic(TEveElement *element, TEveElementList *list)
Call an element to a geometry element list.
int printout(PrintLevel severity, const char *src, const char *fmt,...)
Calls the display action with a given severity level.
virtual Projection & CreateRhoPhiProjection()
Create Rho-Phi projection.
The main class of the DDEve display.
const std::string & name() const
Access to the view name/title.