CMS 3D CMS Logo

FWEventAnnotation.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWEventAnnotation_h
2 #define Fireworks_Core_FWEventAnnotation_h
3 
4 #include "TGLAnnotation.h"
5 class FWConfiguration;
6 
7 
8 namespace fwlite {
9  class Event;
10 }
11 
12 class FWEventAnnotation : public TGLAnnotation
13 {
14 public:
15  FWEventAnnotation(TGLViewerBase *view);
16  ~FWEventAnnotation() override;
17 
18  void Render(TGLRnrCtx& rnrCtx) override;
19 
20  //configuration management interface
21  virtual void addTo(FWConfiguration&) const;
22  virtual void setFrom(const FWConfiguration&);
23 
24  void setLevel(long x);
25  void setEvent();
26 
27 private:
28  FWEventAnnotation(const FWEventAnnotation&) = delete; // stop default
29  const FWEventAnnotation& operator=(const FWEventAnnotation&) = delete; // stop default
30 
31  void updateOverlayText();
32 
33  int m_level;
34 };
35 
36 #endif