Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:32

0001 #ifndef Fireworks_Core_FWLegoViewBase_h
0002 #define Fireworks_Core_FWLegoViewBase_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWLegoViewBase
0007 //
0008 /**\class FWLegoViewBase FWLegoViewBase.h Fireworks/Core/interface/FWLegoViewBase.h
0009 
0010    Description: <one line class summary>
0011 
0012    Usage:
0013     <usage>
0014 
0015  */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Thu Feb 21 11:22:37 EST 2008
0019 //
0020 
0021 // system include files
0022 #include "Rtypes.h"
0023 
0024 // user include files
0025 #include "Fireworks/Core/interface/FWEveView.h"
0026 #include "Fireworks/Core/interface/FWBoolParameter.h"
0027 #include "Fireworks/Core/interface/FWDoubleParameter.h"
0028 #include "Fireworks/Core/interface/FWLongParameter.h"
0029 #include "Fireworks/Core/interface/Context.h"
0030 
0031 // forward declarations
0032 class TEveViewer;
0033 class TEveScene;
0034 class TEveElementList;
0035 class TEveCaloLego;
0036 class TEveCaloLegoOverlay;
0037 class TEveCaloDataHist;
0038 
0039 class FWLegoViewBase : public FWEveView {
0040 public:
0041   FWLegoViewBase(TEveWindowSlot*, FWViewType::EType);
0042   ~FWLegoViewBase() override;
0043 
0044   void setFrom(const FWConfiguration&) override;
0045 
0046   void setContext(const fireworks::Context&) override;
0047 
0048   // ---------- const member functions ---------------------
0049 
0050   void addTo(FWConfiguration&) const override;
0051   void populateController(ViewerParameterGUI&) const override;
0052 
0053   TEveCaloViz* getEveCalo() const override;
0054 
0055   // ---------- member functions ---------------------------
0056 
0057 protected:
0058   TEveCaloLego* m_lego;
0059   TEveCaloLegoOverlay* m_overlay;
0060 
0061 private:
0062   FWLegoViewBase(const FWLegoViewBase&);  // stop default
0063 
0064   const FWLegoViewBase& operator=(const FWLegoViewBase&);  // stop default
0065 
0066   void setCameras();
0067   void setAutoRebin();
0068   void setPixelsPerBin();
0069   void setFontSizein2D();
0070   void autoScale();
0071   void showOverlay();
0072   void setProjectionMode();
0073   void setCell2DMode();
0074 
0075   // ---------- member data --------------------------------
0076 
0077   FWBoolParameter m_autoRebin;
0078   FWDoubleParameter m_pixelsPerBin;
0079   FWEnumParameter m_projectionMode;
0080   FWEnumParameter m_cell2DMode;
0081   FWLongParameter m_drawValuesIn2D;
0082   FWBoolParameter m_showOverlay;
0083 };
0084 
0085 #endif