CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
virtual
FWViewContextMenuHandlerBase
contextMenuHandler () const
 
virtual void eventBegin ()
 
virtual void eventEnd ()
 
TEveScene * eventScene ()
 
 FWEveView (TEveWindowSlot *, FWViewType::EType, unsigned int version=7)
 
TEveScene * geoScene ()
 
virtual bool isEnergyScaleGlobal () const
 
TEveElement * ownedProducts ()
 
virtual bool requestGLHandlerPick () const
 
virtual void saveImageTo (const std::string &iName) const
 
virtual void setupEnergyScale ()
 
virtual void useGlobalEnergyScaleChanged ()
 
FWViewContextviewContext ()
 
TEveViewer * viewer ()
 
TGLViewer * viewerGL () const
 
virtual void voteCaloMaxVal ()
 
virtual ~FWEveView ()
 
- 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 FWViewBase
FWViewType m_type
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 26 of file FWEveLegoView.h.

Constructor & Destructor Documentation

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

Definition at line 36 of file FWEveLegoView.cc.

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

Definition at line 43 of file FWEveLegoView.cc.

44 {
45 }
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 66 of file FWEveLegoView.cc.

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

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

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

Reimplemented from FWLegoViewBase.

Definition at line 48 of file FWEveLegoView.cc.

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

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

Member Data Documentation

TEveStraightLineSet* FWEveLegoView::m_boundaries
private

Definition at line 47 of file FWEveLegoView.h.

Referenced by setBackgroundColor(), and setContext().