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)
 
virtual void setBackgroundColor (Color_t)
 
virtual void setContext (const fireworks::Context &)
 
virtual ~FWEveLegoView ()
 
- Public Member Functions inherited from FWLegoViewBase
virtual void addTo (FWConfiguration &) const
 
 FWLegoViewBase (TEveWindowSlot *, FWViewType::EType)
 
virtual TEveCaloViz * getEveCalo () const
 
virtual void populateController (ViewerParameterGUI &) const
 
virtual void setFrom (const FWConfiguration &)
 
virtual ~FWLegoViewBase ()
 
- 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
 
virtual ~FWConfigurableParameterizable ()
 
- 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 &)
 
const FWEveLegoViewoperator= (const FWEveLegoView &)
 

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
virtual ~FWViewBase ()
 
- 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::FWEveLegoView ( TEveWindowSlot *  slot,
FWViewType::EType  typeId 
)

Definition at line 35 of file FWEveLegoView.cc.

35  :
36  FWLegoViewBase(slot, typeId),
37  m_boundaries(0)
38 {
39 }
FWLegoViewBase(TEveWindowSlot *, FWViewType::EType)
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:46
FWViewType::EType typeId() const
Definition: FWViewBase.h:43
FWEveLegoView::~FWEveLegoView ( )
virtual

Definition at line 42 of file FWEveLegoView.cc.

43 {
44 }
FWEveLegoView::FWEveLegoView ( const FWEveLegoView )
private

Member Function Documentation

const FWEveLegoView& FWEveLegoView::operator= ( const FWEveLegoView )
private
void FWEveLegoView::setBackgroundColor ( Color_t  c)
virtual

Reimplemented from FWEveView.

Definition at line 65 of file FWEveLegoView.cc.

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

Referenced by Vispa.Plugins.EdmBrowser.EventContentView.LabelItem::__init__().

66 {
67  m_boundaries->SetLineColor(context().colorManager()->isColorSetDark() ? kGray+2 : kGray+1);
69 }
const fireworks::Context & context()
Definition: FWEveView.h:67
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:46
virtual void setBackgroundColor(Color_t)
Definition: FWEveView.cc:258
void FWEveLegoView::setContext ( const fireworks::Context ctx)
virtual

Reimplemented from FWLegoViewBase.

Definition at line 47 of file FWEveLegoView.cc.

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

48 {
50 
51  // add calorimeter boundaries
52  m_boundaries = new TEveStraightLineSet("m_boundaries");
53  m_boundaries->SetPickable(kFALSE);
54  m_boundaries->SetLineWidth(2);
55  m_boundaries->SetLineStyle(7);
56  m_boundaries->AddLine(-1.479,-3.1416,0.001,-1.479,3.1416,0.001);
57  m_boundaries->AddLine(1.479,-3.1416,0.001,1.479,3.1416,0.001);
58  m_boundaries->AddLine(-2.964,-3.1416,0.001,-2.964,3.1416,0.001);
59  m_boundaries->AddLine(2.964,-3.1416,0.001,2.964,3.1416,0.001);
60  m_boundaries->SetLineColor(ctx.colorManager()->isColorSetDark() ? kGray+2 : kGray+1);
61  m_lego->AddElement(m_boundaries);
62 }
FWColorManager * colorManager() const
Definition: Context.h:65
Bool_t isColorSetDark() const
virtual void setContext(const fireworks::Context &)
TEveCaloLego * m_lego
TEveStraightLineSet * m_boundaries
Definition: FWEveLegoView.h:46

Member Data Documentation

TEveStraightLineSet* FWEveLegoView::m_boundaries
private

Definition at line 46 of file FWEveLegoView.h.

Referenced by setBackgroundColor(), and setContext().