CMS 3D CMS Logo

CmsShowModelPopup.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowModelPopup_h
2 #define Fireworks_Core_CmsShowModelPopup_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowModelPopup
7 //
16 //
17 // Original Author:
18 // Created: Fri Jun 27 11:23:31 EDT 2008
19 //
20 
21 // system include files
22 #include <set>
23 #include <vector>
24 #ifndef __CINT__
25 #include <sigc++/connection.h>
26 #endif
27 #include "GuiTypes.h"
28 #include "TGFrame.h"
29 
30 // user include files
31 #ifndef __CINT__
33 #endif
34 
35 // forward declarations
36 class FWEventItem;
37 class FWSelectionManager;
38 class FWColorManager;
39 //class FWModelId;
40 class FWColorSelect;
41 class TGCheckButton;
42 class TGLabel;
43 class TGTextButton;
44 class TGTextButton;
45 class TGHSlider;
47 class FWSelectionManager;
48 class FWDialogBuilder;
49 
50 class CmsShowModelPopup;
51 
52 class CmsShowModelPopup : public TGTransientFrame
53 {
54 
55 public:
57 
59  const FWColorManager*, const TGWindow* p = nullptr,
60  UInt_t w = 1, UInt_t h = 1);
61  ~CmsShowModelPopup() override;
62 
63  void CloseWindow() override { UnmapWindow(); }
64  // ---------- const member functions ---------------------
65 
66  // ---------- static member functions --------------------
67 
68  // ---------- member functions ---------------------------
69  void fillModelPopup(const FWSelectionManager& iSelMgr);
70  void updateDisplay();
71  void colorSetChanged();
72  void disconnectAll();
73  void changeModelColor(Color_t iColor);
74  void changeModelOpacity(Int_t opacity = 100);
75  void toggleModelVisible(Bool_t on = kTRUE);
76  void openDetailedView();
77 
78  void clicked();
79 
81 
82 private:
83  CmsShowModelPopup(const CmsShowModelPopup&); // stop default
84 
85  const CmsShowModelPopup& operator=(const CmsShowModelPopup&); // stop default
86 
87 
88  // ---------- member data --------------------------------
89  TGLabel* m_modelLabel;
91  TGCheckButton* m_isVisibleButton;
92  std::vector<TGTextButton*> m_openDetailedViewButtons;
93 
94 #ifndef __CINT__
95  std::set<FWModelId> m_models;
96  sigc::connection m_modelChangedConn;
97  sigc::connection m_destroyedConn;
98  sigc::connection m_changes;
99 #endif
102  TGHSlider *m_opacitySlider;
104 };
105 
106 
107 #endif
CmsShowModelPopup(FWDetailViewManager *, FWSelectionManager *, const FWColorManager *, const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1)
sigc::connection m_destroyedConn
const double w
Definition: UKUtility.cc:23
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void changeModelColor(Color_t iColor)
void toggleModelVisible(Bool_t on=kTRUE)
sigc::connection m_changes
sigc::connection m_modelChangedConn
TGCheckButton * m_isVisibleButton
std::set< FWModelId > m_models
friend class CmsShowModelPopupDetailViewButtonAdapter
~CmsShowModelPopup() override
void changeModelOpacity(Int_t opacity=100)
const FWColorManager * m_colorManager
std::vector< TGTextButton * > m_openDetailedViewButtons
ClassDefOverride(CmsShowModelPopup, 0)
FWDialogBuilder * m_dialogBuilder
void CloseWindow() override
const CmsShowModelPopup & operator=(const CmsShowModelPopup &)
FWDetailViewManager * m_detailViewManager
void fillModelPopup(const FWSelectionManager &iSelMgr)
TGHSlider * m_opacitySlider
FWColorSelect * m_colorSelectWidget