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 // $Id: CmsShowMain.h,v 1.59 2012/07/06 23:33:29 amraktad Exp $
20 //
21 
23 // user include files
25 
26 // system include files
27 #include <vector>
28 #include <string>
29 #include <memory>
30 #include <boost/shared_ptr.hpp>
31 #include "Rtypes.h"
32 
33 
34 // forward declarations
35 class TGPictureButton;
36 class TGComboBox;
37 class TGTextButton;
38 class TGTextEntry;
42 class FWColorManager;
43 class FWSelectionManager;
44 class FWGUIManager;
45 class FWEventItem;
49 class TTimer;
50 class TMonitor;
51 class TSocket;
52 class CmsShowNavigator;
54 class CSGAction;
55 class CmsShowSearchFiles;
56 
57 namespace fwlite {
58  class Event;
59 }
60 
62 {
63 public:
64  CmsShowMain(int argc, char *argv[]);
65  virtual ~CmsShowMain();
66  void resetInitialization();
67  void openData();
68  void appendData();
69  void openDataViaURL();
70  virtual void quit();
71  void doExit();
72 
73  // void writeConfigurationFile(const std::string& iFileName) const;
74  // ---------- static member functions --------------------
75 
76  // ---------- member functions ---------------------------
77  // int draw(const fwlite::Event& );
78 
79  void notified(TSocket*);
80  const fwlite::Event* getCurrentEvent() const;
81  const fireworks::Context* context() const { return m_context.get(); };
82  bool getVersionCheck() const { return !m_noVersionCheck; }
83 
84  void fileChangedSlot(const TFile *file);
85 
86 protected:
87  virtual void eventChangedImp();
88 
89 private:
90  CmsShowMain(const CmsShowMain&); // stop default
91  const CmsShowMain& operator=(const CmsShowMain&); // stop default
92 
93  void loadGeometry();
94  void setupDataHandling();
95  void setupSocket(unsigned int);
96  void connectSocket();
97 
98  virtual void autoLoadNewEvent();
99  virtual void checkPosition();
100  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:439
void navigatorChangedFilterState(int)
Definition: CmsShowMain.cc:768
void openData()
Definition: CmsShowMain.cc:460
const fwlite::Event * getCurrentEvent() const
Definition: CmsShowMain.cc:431
bool m_loadedAnyInputFile
Definition: CmsShowMain.h:120
const CmsShowMain & operator=(const CmsShowMain &)
void resetInitialization()
Definition: CmsShowMain.cc:456
virtual void checkPosition()
Definition: CmsShowMain.cc:586
virtual void eventChangedImp()
Definition: CmsShowMain.cc:449
void appendData()
Definition: CmsShowMain.cc:484
void preFiltering()
Definition: CmsShowMain.cc:788
void setupSocket(unsigned int)
Definition: CmsShowMain.cc:667
void checkLiveMode()
Definition: CmsShowMain.cc:829
std::auto_ptr< FWLiteJobMetadataManager > m_metadataManager
Definition: CmsShowMain.h:116
virtual ~CmsShowMain()
Definition: CmsShowMain.cc:371
void setupDataHandling()
Definition: CmsShowMain.cc:607
virtual void autoLoadNewEvent()
Definition: CmsShowMain.cc:539
std::auto_ptr< SignalTimer > m_liveTimer
Definition: CmsShowMain.h:127
CmsShowMain(int argc, char *argv[])
Definition: CmsShowMain.cc:112
std::auto_ptr< fireworks::Context > m_context
Definition: CmsShowMain.h:117
void filterButtonClicked()
Definition: CmsShowMain.cc:779
std::auto_ptr< TMonitor > m_monitor
Definition: CmsShowMain.h:133
UInt_t m_lastXEventSerial
Definition: CmsShowMain.h:129
virtual void quit()
Definition: CmsShowMain.cc:396
void reachedBeginning()
std::vector< std::string > m_inputFiles
Definition: CmsShowMain.h:119
void setLiveMode()
Definition: CmsShowMain.cc:807
bool getVersionCheck() const
Definition: CmsShowMain.h:82
unsigned int UInt_t
Definition: FUTypes.h:12
void postFiltering(bool)
Definition: CmsShowMain.cc:795
tuple argc
Definition: dir2webdir.py:41
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:401
int m_liveTimeout
Definition: CmsShowMain.h:128
virtual void stopPlaying()
Definition: CmsShowMain.cc:757
void notified(TSocket *)
Definition: CmsShowMain.cc:687
const fireworks::Context * context() const
Definition: CmsShowMain.h:81
void connectSocket()
Definition: CmsShowMain.cc:680
void openDataViaURL()
Definition: CmsShowMain.cc:509
void reachedEnd()