CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowMain.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 #ifndef Fireworks_Core_CmsShowMain_h
3 #define Fireworks_Core_CmsShowMain_h
4 //
5 // Package: Core
6 // Class : CmsShowMain
7 //
16 //
17 // Original Author:
18 // Created: Mon Dec 3 08:34:30 PST 2007
19 //
20 
22 // user include files
24 
25 // system include files
26 #include <vector>
27 #include <string>
28 #include <memory>
29 #include <boost/shared_ptr.hpp>
30 #include "Rtypes.h"
31 
32 
33 // forward declarations
34 class TGPictureButton;
35 class TGComboBox;
36 class TGTextButton;
37 class TGTextEntry;
41 class FWColorManager;
42 class FWSelectionManager;
43 class FWGUIManager;
44 class FWEventItem;
48 class TTimer;
49 class TMonitor;
50 class TSocket;
51 class CmsShowNavigator;
53 class CSGAction;
54 class CmsShowSearchFiles;
55 
56 namespace fwlite {
57  class Event;
58 }
59 
61 {
62 public:
63  CmsShowMain(int argc, char *argv[]);
64  virtual ~CmsShowMain();
65  void resetInitialization();
66  void openData();
67  void appendData();
68  void openDataViaURL();
69  virtual void quit();
70  void doExit();
71 
72  // void writeConfigurationFile(const std::string& iFileName) const;
73  // ---------- static member functions --------------------
74 
75  // ---------- member functions ---------------------------
76  // int draw(const fwlite::Event& );
77 
78  void notified(TSocket*);
79  const fwlite::Event* getCurrentEvent() const;
80  const fireworks::Context* context() const { return m_context.get(); };
81  bool getVersionCheck() const { return !m_noVersionCheck; }
82 
83  void fileChangedSlot(const TFile *file);
84 
85 protected:
86  virtual void eventChangedImp();
87 
88 private:
89  CmsShowMain(const CmsShowMain&); // stop default
90  const CmsShowMain& operator=(const CmsShowMain&); // stop default
91 
92  void loadGeometry();
93  void setupDataHandling();
94  void setupSocket(unsigned int);
95  void connectSocket();
97 
98  virtual void autoLoadNewEvent();
99  virtual void checkPosition();
100  virtual void stopPlaying();
102 
103  void reachedEnd();
104  void reachedBeginning();
105 
106  // Filtering bits.
107  void navigatorChangedFilterState(int);
108  void filterButtonClicked();
109  void preFiltering();
110  void postFiltering(bool);
111 
112  void setLiveMode();
113  void checkLiveMode();
114 
115  // ---------- member data --------------------------------
116  std::auto_ptr<CmsShowNavigator> m_navigator;
117  std::auto_ptr<FWLiteJobMetadataManager> m_metadataManager;
118  std::auto_ptr<fireworks::Context> m_context;
119 
120  std::vector<std::string> m_inputFiles;
122  const TFile *m_openFile;
123 
124  std::auto_ptr<CmsShowSearchFiles> m_searchFiles;
125 
126  // live options
127  bool m_live;
128  std::auto_ptr<SignalTimer> m_liveTimer;
131 
133 
134  std::auto_ptr<TMonitor> m_monitor;
135 };
136 
137 #endif
void fileChangedSlot(const TFile *file)
Definition: CmsShowMain.cc:475
void navigatorChangedFilterState(int)
Definition: CmsShowMain.cc:837
void openData()
Definition: CmsShowMain.cc:500
const fwlite::Event * getCurrentEvent() const
Definition: CmsShowMain.cc:467
void setLoadedAnyInputFileAfterStartup()
Definition: CmsShowMain.cc:715
bool m_loadedAnyInputFile
Definition: CmsShowMain.h:121
const CmsShowMain & operator=(const CmsShowMain &)
void resetInitialization()
Definition: CmsShowMain.cc:496
virtual void checkPosition()
Definition: CmsShowMain.cc:627
virtual void eventChangedImp()
Definition: CmsShowMain.cc:489
void appendData()
Definition: CmsShowMain.cc:525
void preFiltering()
Definition: CmsShowMain.cc:857
void setupSocket(unsigned int)
Definition: CmsShowMain.cc:726
void checkLiveMode()
Definition: CmsShowMain.cc:898
virtual void checkKeyBindingsOnPLayEventsStateChanged()
Definition: CmsShowMain.cc:816
std::auto_ptr< FWLiteJobMetadataManager > m_metadataManager
Definition: CmsShowMain.h:117
virtual ~CmsShowMain()
Definition: CmsShowMain.cc:407
void setupDataHandling()
Definition: CmsShowMain.cc:648
virtual void autoLoadNewEvent()
Definition: CmsShowMain.cc:580
std::auto_ptr< SignalTimer > m_liveTimer
Definition: CmsShowMain.h:128
CmsShowMain(int argc, char *argv[])
Definition: CmsShowMain.cc:120
std::auto_ptr< fireworks::Context > m_context
Definition: CmsShowMain.h:118
void filterButtonClicked()
Definition: CmsShowMain.cc:848
std::auto_ptr< TMonitor > m_monitor
Definition: CmsShowMain.h:134
UInt_t m_lastXEventSerial
Definition: CmsShowMain.h:130
virtual void quit()
Definition: CmsShowMain.cc:432
void reachedBeginning()
std::vector< std::string > m_inputFiles
Definition: CmsShowMain.h:120
void setLiveMode()
Definition: CmsShowMain.cc:876
bool getVersionCheck() const
Definition: CmsShowMain.h:81
void postFiltering(bool)
Definition: CmsShowMain.cc:864
tuple argc
Definition: dir2webdir.py:38
const TFile * m_openFile
Definition: CmsShowMain.h:122
std::auto_ptr< CmsShowNavigator > m_navigator
Definition: CmsShowMain.h:116
std::auto_ptr< CmsShowSearchFiles > m_searchFiles
Definition: CmsShowMain.h:124
void loadGeometry()
bool m_noVersionCheck
Definition: CmsShowMain.h:132
void doExit()
Definition: CmsShowMain.cc:437
int m_liveTimeout
Definition: CmsShowMain.h:129
virtual void stopPlaying()
Definition: CmsShowMain.cc:826
void notified(TSocket *)
Definition: CmsShowMain.cc:746
const fireworks::Context * context() const
Definition: CmsShowMain.h:80
void connectSocket()
Definition: CmsShowMain.cc:739
void openDataViaURL()
Definition: CmsShowMain.cc:550
void reachedEnd()