File indexing completed on 2024-04-06 12:11:32
0001 #ifndef Fireworks_Core_FWLegoViewBase_h
0002 #define Fireworks_Core_FWLegoViewBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "Rtypes.h"
0023
0024
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
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
0049
0050 void addTo(FWConfiguration&) const override;
0051 void populateController(ViewerParameterGUI&) const override;
0052
0053 TEveCaloViz* getEveCalo() const override;
0054
0055
0056
0057 protected:
0058 TEveCaloLego* m_lego;
0059 TEveCaloLegoOverlay* m_overlay;
0060
0061 private:
0062 FWLegoViewBase(const FWLegoViewBase&);
0063
0064 const FWLegoViewBase& operator=(const FWLegoViewBase&);
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
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