CMS 3D CMS Logo

List of all members | Public 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)
 
 FWEveLegoView (const FWEveLegoView &)=delete
 
const FWEveLegoViewoperator= (const FWEveLegoView &)=delete
 
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)
 
 FWEveView (const FWEveView &)=delete
 
FWTEveViewerfwViewer ()
 
FWTGLViewerfwViewerGL () const
 
TEveScene * geoScene ()
 
virtual bool isEnergyScaleGlobal () const
 
const FWEveViewoperator= (const FWEveView &)=delete
 
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)
 
 FWViewBase (const FWViewBase &)=delete
 
const FWViewBaseoperator= (const FWViewBase &)=delete
 
void promptForSaveImageTo (TGFrame *) const
 
FWViewType::EType typeId () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
 FWConfigurableParameterizable (const FWConfigurableParameterizable &)=delete
 
const FWConfigurableParameterizableoperator= (const FWConfigurableParameterizable &)=delete
 
unsigned int version () const
 
 ~FWConfigurableParameterizable () override
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
 FWParameterizable (const FWParameterizable &)=delete
 
const FWParameterizableoperator= (const FWParameterizable &)=delete
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 

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) {}
FWLegoViewBase(TEveWindowSlot *, FWViewType::EType)
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:45
FWViewType::EType typeId() const
Definition: FWViewBase.h:42

◆ ~FWEveLegoView()

FWEveLegoView::~FWEveLegoView ( )
override

Definition at line 35 of file FWEveLegoView.cc.

35 {}

◆ FWEveLegoView() [2/2]

FWEveLegoView::FWEveLegoView ( const FWEveLegoView )
delete

Member Function Documentation

◆ operator=()

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

◆ setBackgroundColor()

void FWEveLegoView::setBackgroundColor ( Color_t  c)
overridevirtual

Reimplemented from FWEveView.

Definition at line 53 of file FWEveLegoView.cc.

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

53  {
54  m_boundaries->SetLineColor(context().colorManager()->isColorSetDark() ? kGray + 2 : kGray + 1);
56 }
const fireworks::Context & context()
Definition: FWEveView.h:64
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:45
virtual void setBackgroundColor(Color_t)
Definition: FWEveView.cc:222

◆ setContext()

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

Reimplemented from FWEveView.

Definition at line 37 of file FWEveLegoView.cc.

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

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 }
Bool_t isColorSetDark() const
TEveCaloLego * m_lego
void setContext(const fireworks::Context &) override
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:45
FWColorManager * colorManager() const
Definition: Context.h:58

Member Data Documentation

◆ m_boundaries

TEveStraightLineSet* FWEveLegoView::m_boundaries
private

Definition at line 45 of file FWEveLegoView.h.

Referenced by setBackgroundColor(), and setContext().