00001 #ifndef Fireworks_Core_FWEventAnnotation_h 00002 #define Fireworks_Core_FWEventAnnotation_h 00003 00004 #include "TGLAnnotation.h" 00005 class FWConfiguration; 00006 00007 00008 namespace fwlite { 00009 class Event; 00010 } 00011 00012 class FWEventAnnotation : public TGLAnnotation 00013 { 00014 public: 00015 FWEventAnnotation(TGLViewerBase *view); 00016 virtual ~FWEventAnnotation(); 00017 00018 virtual void Render(TGLRnrCtx& rnrCtx); 00019 00020 //configuration management interface 00021 virtual void addTo(FWConfiguration&) const; 00022 virtual void setFrom(const FWConfiguration&); 00023 00024 void setLevel(long x); 00025 void setEvent(); 00026 00027 private: 00028 FWEventAnnotation(const FWEventAnnotation&); // stop default 00029 const FWEventAnnotation& operator=(const FWEventAnnotation&); // stop default 00030 00031 void updateOverlayText(); 00032 00033 int m_level; 00034 }; 00035 00036 #endif