CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWEveLegoView.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWEveLegoView
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author:
10 // Created: Mon May 31 13:09:53 CEST 2010
11 //
12 
13 // system include files
14 #include "TEveManager.h"
15 
16 // user include files
17 #include "TEveCalo.h"
18 #include "TEveStraightLineSet.h"
25 
28 
29 //
30 // constructors and destructor
31 //
32 FWEveLegoView::FWEveLegoView(TEveWindowSlot* slot, FWViewType::EType typeId)
33  : FWLegoViewBase(slot, typeId), m_boundaries(nullptr) {}
34 
36 
39 
40  // add calorimeter boundaries
41  m_boundaries = new TEveStraightLineSet("m_boundaries");
42  m_boundaries->SetPickable(kFALSE);
43  m_boundaries->SetLineWidth(2);
44  m_boundaries->SetLineStyle(7);
45  m_boundaries->AddLine(-1.479, -3.1416, 0.001, -1.479, 3.1416, 0.001);
46  m_boundaries->AddLine(1.479, -3.1416, 0.001, 1.479, 3.1416, 0.001);
47  m_boundaries->AddLine(-2.964, -3.1416, 0.001, -2.964, 3.1416, 0.001);
48  m_boundaries->AddLine(2.964, -3.1416, 0.001, 2.964, 3.1416, 0.001);
49  m_boundaries->SetLineColor(ctx.colorManager()->isColorSetDark() ? kGray + 2 : kGray + 1);
50  m_lego->AddElement(m_boundaries);
51 }
52 
54  m_boundaries->SetLineColor(context().colorManager()->isColorSetDark() ? kGray + 2 : kGray + 1);
56 }
void setContext(const fireworks::Context &) override
FWEveLegoView(TEveWindowSlot *, FWViewType::EType)
const edm::EventSetup & c
void setBackgroundColor(Color_t) override
FWColorManager * colorManager() const
Definition: Context.h:58
~FWEveLegoView() override
Bool_t isColorSetDark() const
TEveCaloLego * m_lego
void setContext(const fireworks::Context &) override
const fireworks::Context & context()
Definition: FWEveView.h:64
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:45
virtual void setBackgroundColor(Color_t)
Definition: FWEveView.cc:222