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();
96 
97  virtual void autoLoadNewEvent();
98  virtual void checkPosition();
99  virtual void stopPlaying();
101 
102  void reachedEnd();
103  void reachedBeginning();
104 
105  // Filtering bits.
106  void navigatorChangedFilterState(int);
107  void filterButtonClicked();
108  void preFiltering();
109  void postFiltering(bool);
110 
111  void setLiveMode();
112  void checkLiveMode();
113 
114  // ---------- member data --------------------------------
115  std::auto_ptr<CmsShowNavigator> m_navigator;
116  std::auto_ptr<FWLiteJobMetadataManager> m_metadataManager;
117  std::auto_ptr<fireworks::Context> m_context;
118 
119  std::vector<std::string> m_inputFiles;
121  const TFile *m_openFile;
122 
123  std::auto_ptr<CmsShowSearchFiles> m_searchFiles;
124 
125  // live options
126  bool m_live;
127  std::auto_ptr<SignalTimer> m_liveTimer;
130 
132 
133  std::auto_ptr<TMonitor> m_monitor;
134 };
135 
136 #endif
void fileChangedSlot(const TFile *file)
Definition: CmsShowMain.cc:487
void navigatorChangedFilterState(int)
Definition: CmsShowMain.cc:830
void openData()
Definition: CmsShowMain.cc:512
const fwlite::Event * getCurrentEvent() const
Definition: CmsShowMain.cc:479
bool m_loadedAnyInputFile
Definition: CmsShowMain.h:120
const CmsShowMain & operator=(const CmsShowMain &)
void resetInitialization()
Definition: CmsShowMain.cc:508
virtual void checkPosition()
Definition: CmsShowMain.cc:638
virtual void eventChangedImp()
Definition: CmsShowMain.cc:501
void appendData()
Definition: CmsShowMain.cc:536
void preFiltering()
Definition: CmsShowMain.cc:850
void setupSocket(unsigned int)
Definition: CmsShowMain.cc:719
void checkLiveMode()
Definition: CmsShowMain.cc:891
virtual void checkKeyBindingsOnPLayEventsStateChanged()
Definition: CmsShowMain.cc:809
std::auto_ptr< FWLiteJobMetadataManager > m_metadataManager
Definition: CmsShowMain.h:116
virtual ~CmsShowMain()
Definition: CmsShowMain.cc:419
void setupDataHandling()
Definition: CmsShowMain.cc:659
virtual void autoLoadNewEvent()
Definition: CmsShowMain.cc:591
std::auto_ptr< SignalTimer > m_liveTimer
Definition: CmsShowMain.h:127
CmsShowMain(int argc, char *argv[])
Definition: CmsShowMain.cc:120
std::auto_ptr< fireworks::Context > m_context
Definition: CmsShowMain.h:117
void filterButtonClicked()
Definition: CmsShowMain.cc:841
std::auto_ptr< TMonitor > m_monitor
Definition: CmsShowMain.h:133
UInt_t m_lastXEventSerial
Definition: CmsShowMain.h:129
virtual void quit()
Definition: CmsShowMain.cc:444
void reachedBeginning()
std::vector< std::string > m_inputFiles
Definition: CmsShowMain.h:119
void setLiveMode()
Definition: CmsShowMain.cc:869
bool getVersionCheck() const
Definition: CmsShowMain.h:81
void postFiltering(bool)
Definition: CmsShowMain.cc:857
tuple argc
Definition: dir2webdir.py:38
const TFile * m_openFile
Definition: CmsShowMain.h:121
std::auto_ptr< CmsShowNavigator > m_navigator
Definition: CmsShowMain.h:115
std::auto_ptr< CmsShowSearchFiles > m_searchFiles
Definition: CmsShowMain.h:123
void loadGeometry()
bool m_noVersionCheck
Definition: CmsShowMain.h:131
void doExit()
Definition: CmsShowMain.cc:449
int m_liveTimeout
Definition: CmsShowMain.h:128
virtual void stopPlaying()
Definition: CmsShowMain.cc:819
void notified(TSocket *)
Definition: CmsShowMain.cc:739
const fireworks::Context * context() const
Definition: CmsShowMain.h:80
void connectSocket()
Definition: CmsShowMain.cc:732
void openDataViaURL()
Definition: CmsShowMain.cc:561
void reachedEnd()