CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWEveLegoView Class Reference

#include <Fireworks/Core/interface/FWEveLegoView.h>

Inheritance diagram for FWEveLegoView:
FWLegoViewBase FWEveView FWViewBase FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Member Functions

 FWEveLegoView (TEveWindowSlot *, FWViewType::EType)
 
void setBackgroundColor (Color_t) override
 
void setContext (const fireworks::Context &) override
 
 ~FWEveLegoView () override
 
- Public Member Functions inherited from FWLegoViewBase
void addTo (FWConfiguration &) const override
 
 FWLegoViewBase (TEveWindowSlot *, FWViewType::EType)
 
TEveCaloViz * getEveCalo () const override
 
void populateController (ViewerParameterGUI &) const override
 
void setContext (const fireworks::Context &) override
 
void setFrom (const FWConfiguration &) override
 
 ~FWLegoViewBase () override
 
- Public Member Functions inherited from FWEveView
const fireworks::Contextcontext ()
 
FWViewContextMenuHandlerBasecontextMenuHandler () const override
 
virtual void eventBegin ()
 
virtual void eventEnd ()
 
TEveScene * eventScene ()
 
 FWEveView (TEveWindowSlot *, FWViewType::EType, unsigned int version=7)
 
FWTEveViewerfwViewer ()
 
FWTGLViewerfwViewerGL () const
 
TEveScene * geoScene ()
 
virtual bool isEnergyScaleGlobal () const
 
TEveElement * ownedProducts ()
 
virtual bool requestGLHandlerPick () const
 
void saveImageTo (const std::string &iName) const override
 
virtual void setupEnergyScale ()
 
virtual void setupEventCenter ()
 
virtual void useGlobalEnergyScaleChanged ()
 
FWViewContextviewContext ()
 
TEveViewer * viewer ()
 
TGLViewer * viewerGL () const
 
virtual void voteCaloMaxVal ()
 
 ~FWEveView () override
 
- Public Member Functions inherited from FWViewBase
void destroy ()
 
 FWViewBase (FWViewType::EType, unsigned int iVersion=1)
 
void promptForSaveImageTo (TGFrame *) const
 
FWViewType::EType typeId () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
unsigned int version () const
 
 ~FWConfigurableParameterizable () override
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Member Functions

 FWEveLegoView (const FWEveLegoView &)=delete
 
const FWEveLegoViewoperator= (const FWEveLegoView &)=delete
 

Private Attributes

TEveStraightLineSet * m_boundaries
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector< FWParameterBase * >::const_iterator const_iterator
 
- Public Attributes inherited from FWViewBase
sigc::signal< void, const FWViewBase * > beingDestroyed_
 
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
 
- Protected Member Functions inherited from FWEveView
void addToOrthoCamera (TGLOrthoCamera *, FWConfiguration &) const
 
void addToPerspectiveCamera (TGLPerspectiveCamera *, const std::string &, FWConfiguration &) const
 
virtual void cameraGuideChanged ()
 
virtual void pointLineScalesChanged ()
 
virtual void resetCamera ()
 
void setFromOrthoCamera (TGLOrthoCamera *, const FWConfiguration &)
 
void setFromPerspectiveCamera (TGLPerspectiveCamera *, const std::string &, const FWConfiguration &)
 
- Protected Member Functions inherited from FWViewBase
 ~FWViewBase () override
 
- Protected Attributes inherited from FWLegoViewBase
TEveCaloLego * m_lego
 
TEveCaloLegoOverlay * m_overlay
 
- Protected Attributes inherited from FWEveView
const fireworks::Contextm_context
 
- Protected Attributes inherited from FWViewBase
FWViewType m_type
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 25 of file FWEveLegoView.h.

Constructor & Destructor Documentation

◆ FWEveLegoView() [1/2]

FWEveLegoView::FWEveLegoView ( TEveWindowSlot *  slot,
FWViewType::EType  typeId 
)

Definition at line 32 of file FWEveLegoView.cc.

33  : FWLegoViewBase(slot, typeId), m_boundaries(nullptr) {}

◆ ~FWEveLegoView()

FWEveLegoView::~FWEveLegoView ( )
override

Definition at line 35 of file FWEveLegoView.cc.

35 {}

◆ FWEveLegoView() [2/2]

FWEveLegoView::FWEveLegoView ( const FWEveLegoView )
privatedelete

Member Function Documentation

◆ operator=()

const FWEveLegoView& FWEveLegoView::operator= ( const FWEveLegoView )
privatedelete

◆ setBackgroundColor()

void FWEveLegoView::setBackgroundColor ( Color_t  c)
overridevirtual

Reimplemented from FWEveView.

Definition at line 53 of file FWEveLegoView.cc.

53  {
54  m_boundaries->SetLineColor(context().colorManager()->isColorSetDark() ? kGray + 2 : kGray + 1);
56 }

References HltBtagPostValidation_cff::c, FWEveView::context(), m_boundaries, and FWEveView::setBackgroundColor().

◆ setContext()

void FWEveLegoView::setContext ( const fireworks::Context ctx)
overridevirtual

Reimplemented from FWEveView.

Definition at line 37 of file FWEveLegoView.cc.

37  {
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 }

References fireworks::Context::colorManager(), FWColorManager::isColorSetDark(), m_boundaries, FWLegoViewBase::m_lego, and FWLegoViewBase::setContext().

Member Data Documentation

◆ m_boundaries

TEveStraightLineSet* FWEveLegoView::m_boundaries
private

Definition at line 45 of file FWEveLegoView.h.

Referenced by setBackgroundColor(), and setContext().

fireworks::Context::colorManager
FWColorManager * colorManager() const
Definition: Context.h:58
FWColorManager::isColorSetDark
Bool_t isColorSetDark() const
Definition: FWColorManager.h:57
FWViewBase::typeId
FWViewType::EType typeId() const
Definition: FWViewBase.h:42
FWEveView::context
const fireworks::Context & context()
Definition: FWEveView.h:64
FWLegoViewBase::FWLegoViewBase
FWLegoViewBase(TEveWindowSlot *, FWViewType::EType)
Definition: FWLegoViewBase.cc:51
FWEveView::setBackgroundColor
virtual void setBackgroundColor(Color_t)
Definition: FWEveView.cc:222
FWLegoViewBase::m_lego
TEveCaloLego * m_lego
Definition: FWLegoViewBase.h:58
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
FWLegoViewBase::setContext
void setContext(const fireworks::Context &) override
Definition: FWLegoViewBase.cc:88
FWEveLegoView::m_boundaries
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:45