Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EventDisplay/GfxStripList.h

Go to the documentation of this file.
00001 
00018 #ifndef GFXDIGITLIST_H
00019 #define GFXDIGITLIST_H
00020 
00021 #include "GfxStrip.h"
00022 #include "GfxBase.h"
00023 #include "GfxStripListCfg.h"
00024 #include <Midad/Util/Range.h>
00025 
00026 #include <sigc++/sigc++.h>
00027 
00028 #include <vector>
00029 
00030 class MomNavigator;
00031 class PageDisplay;
00032 class EVD;
00033 class Mint;
00034 class TClonesArray;
00035 
00036 class GfxStripList : public GfxBase
00037 {
00038 
00039 public:
00040 
00041     GfxStripList();
00042     ~GfxStripList();
00043 
00044     void Init(PageDisplay& pd, EVD& mp);
00045     void Configure(Mint& mint);
00046 
00047     // Override TObject
00048     void Draw(Option_t *option=""); 
00049     void ExecuteEvent(int event, int /*px */, int /* py */, GfxStrip* hit);
00050     void ExecuteEvent(int /*event */, int /* px */, int /*py */){;}
00051 
00052     GfxStripListCfg& GetCfg() { return *fCfg; }
00053 
00054     RangeDouble& GetColorRange() { return *fColorRange; }
00055     bool StripMasked(const CandStripHandle& csh) const;
00056     int GetStripColor(const CandStripHandle& csh) const;
00057     Mint& GetMint() { return *fMint; }
00058     EVD * GetEVD(){return fEVD;}
00059     void HideStrips(bool hide = true);
00060     bool StripsHidden() { return fHideStrips; }
00061 
00062 private:
00063 
00064     void ReConfigure(void);
00065     void ClearStripList();
00066     void SetTQfromButton();
00067 
00068     GfxStripListCfg* fCfg;
00069 
00070     SigC::Ptr<RangeDouble> fColorRange;
00071     PageDisplay* fPageDisplay;
00072     EVD* fEVD;
00073     Mint* fMint;
00074     TClonesArray* fStripsCA;
00075     typedef std::vector<GfxStrip*> GfxStripVector_t;
00076     GfxStripVector_t fStrips;
00077 
00078     bool fHideStrips;
00079 };                              // end of class GfxStripList
00080 
00081 #endif  // GFXDIGITLIST_H

Generated on Mon Feb 15 11:06:46 2010 for loon by  doxygen 1.3.9.1