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
FWISpyView Class Reference

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

Inheritance diagram for FWISpyView:
FW3DViewBase FWEveView FWViewBase FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Member Functions

 FWISpyView (TEveWindowSlot *, FWViewType::EType, unsigned int version=9)
 
virtual void populateController (ViewerParameterGUI &) const
 
virtual void setContext (const fireworks::Context &x)
 
void showEcalBarrel (bool)
 
virtual ~FWISpyView ()
 
- Public Member Functions inherited from FW3DViewBase
virtual void addTo (FWConfiguration &) const
 
 FW3DViewBase (TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
 
FW3DViewDistanceMeasureToolgetDMT ()
 
virtual bool requestGLHandlerPick () const
 
void setCurrentDMTVertex (double x, double y, double z)
 
virtual void setFrom (const FWConfiguration &)
 
void updateGlobalSceneScaleParameters ()
 
virtual ~FW3DViewBase ()
 
- 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)
 
FWTEveViewerfwViewer ()
 
FWTGLViewerfwViewerGL () const
 
TEveScene * geoScene ()
 
virtual bool isEnergyScaleGlobal () const
 
TEveElement * ownedProducts ()
 
virtual void saveImageTo (const std::string &iName) const
 
virtual void setBackgroundColor (Color_t)
 
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

 FWISpyView (const FWISpyView &)
 
const FWISpyViewoperator= (const FWISpyView &)
 

Private Attributes

TEveBoxSet * m_ecalBarrel
 
FWBoolParameter m_showEcalBarrel
 

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 TEveCaloViz * getEveCalo () const
 
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 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 29 of file FWISpyView.h.

Constructor & Destructor Documentation

FWISpyView::FWISpyView ( TEveWindowSlot *  slot,
FWViewType::EType  typeId,
unsigned int  version = 9 
)

Definition at line 38 of file FWISpyView.cc.

References FWEveView::geoScene(), and m_ecalBarrel.

38  :
39  FW3DViewBase(slot, typeId, version),
40  m_ecalBarrel(0),
41  m_showEcalBarrel(this, "Show Ecal Barrel", true )
42 {
43  m_ecalBarrel = new TEveBoxSet("ecalBarrel");
44  m_ecalBarrel->UseSingleColor();
45  m_ecalBarrel->SetMainColor(kAzure+10);
46  m_ecalBarrel->SetMainTransparency(98);
47  geoScene()->AddElement(m_ecalBarrel);
48 }
FWBoolParameter m_showEcalBarrel
Definition: FWISpyView.h:51
TEveBoxSet * m_ecalBarrel
Definition: FWISpyView.h:50
TEveScene * geoScene()
Definition: FWEveView.h:83
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
FWViewType::EType typeId() const
Definition: FWViewBase.h:41
FWISpyView::~FWISpyView ( )
virtual

Definition at line 56 of file FWISpyView.cc.

57 {
58 }
FWISpyView::FWISpyView ( const FWISpyView )
private

Member Function Documentation

const FWISpyView& FWISpyView::operator= ( const FWISpyView )
private
void FWISpyView::populateController ( ViewerParameterGUI gui) const
virtual

Reimplemented from FW3DViewBase.

Definition at line 90 of file FWISpyView.cc.

References m_showEcalBarrel, FW3DViewBase::populateController(), ViewerParameterGUI::requestTab(), and ViewerParameterGUI::separator().

91 {
93 
94  gui.requestTab("Detector").separator().
95  addParam(&m_showEcalBarrel);
96 }
FWBoolParameter m_showEcalBarrel
Definition: FWISpyView.h:51
ViewerParameterGUI & requestTab(const char *)
ViewerParameterGUI & separator()
virtual void populateController(ViewerParameterGUI &) const
void FWISpyView::setContext ( const fireworks::Context x)
virtual

Reimplemented from FW3DViewBase.

Definition at line 61 of file FWISpyView.cc.

References FWGenericParameter< T >::changed_, m_showEcalBarrel, FW3DViewBase::setContext(), showEcalBarrel(), and FWGenericParameter< T >::value().

62 {
64  m_showEcalBarrel.changed_.connect(boost::bind(&FWISpyView::showEcalBarrel, this,_1));
65 
67 
68 }
FWBoolParameter m_showEcalBarrel
Definition: FWISpyView.h:51
sigc::signal< void, T > changed_
virtual void setContext(const fireworks::Context &)
void showEcalBarrel(bool)
Definition: FWISpyView.cc:70
void FWISpyView::showEcalBarrel ( bool  x)

Definition at line 70 of file FWISpyView.cc.

References FWEveView::context(), relativeConstraints::geom, FWGeometry::getCorners(), fireworks::Context::getGeom(), FWGeometry::getMatchedIds(), m_ecalBarrel, GeomDetEnumerators::PixelBarrel, and x.

Referenced by setContext().

70  {
71  if (x && m_ecalBarrel->GetPlex()->Size() == 0) {
72  const FWGeometry* geom = context().getGeom();
73  std::vector<unsigned int> ids = geom->getMatchedIds(FWGeometry::Detector::Ecal, FWGeometry::SubDetector::PixelBarrel);
74  m_ecalBarrel->Reset(TEveBoxSet::kBT_FreeBox, true, ids.size() );
75  for (std::vector<unsigned int>::iterator it = ids.begin(); it != ids.end(); ++it) {
76  const float* cor = context().getGeom()->getCorners(*it);
77  m_ecalBarrel->AddBox(cor);
78  }
79  m_ecalBarrel->RefitPlex();
80  }
81 
82  if (m_ecalBarrel->GetRnrSelf() != x) {
83  m_ecalBarrel->SetRnrSelf(x);
84  gEve->Redraw3D();
85  }
86 }
const FWGeometry * getGeom() const
Definition: Context.h:83
const fireworks::Context & context()
Definition: FWEveView.h:67
TEveBoxSet * m_ecalBarrel
Definition: FWISpyView.h:50
const float * getCorners(unsigned int id) const
Definition: FWGeometry.cc:280
std::vector< unsigned int > getMatchedIds(Detector det, SubDetector subdet) const
Definition: FWGeometry.cc:197
Definition: DDAxes.h:10

Member Data Documentation

TEveBoxSet* FWISpyView::m_ecalBarrel
private

Definition at line 50 of file FWISpyView.h.

Referenced by FWISpyView(), and showEcalBarrel().

FWBoolParameter FWISpyView::m_showEcalBarrel
private

Definition at line 51 of file FWISpyView.h.

Referenced by populateController(), and setContext().