CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FWDetailViewBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWDetailViewBase_h
2 #define Fireworks_Core_FWDetailViewBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWDetailViewBase
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Fri Jan 9 13:35:52 EST 2009
19 // $Id: FWDetailViewBase.h,v 1.6 2009/06/22 14:32:25 amraktad Exp
20 // system include files
21 
23 
24 #include "Rtypes.h"
25 
26 class TEveWindow;
27 class TEveWindowSlot;
28 class FWModelId;
29 class FWEventItem;
30 
31 namespace fireworks {
32  class Context;
33 }
34 
36 public:
37  virtual ~FWDetailViewBase();
38 
39  void build(const FWModelId&);
40 
41  virtual void init(TEveWindowSlot*) = 0;
42  virtual void setBackgroundColor(Color_t col) {}
43 
44  //canvas utilities
45  static void drawCanvasDot(Float_t x, Float_t y, Float_t r, Color_t);
46  static void drawCanvasBox(Double_t* pos, Color_t fillCol, Int_t fillType = 0, bool bg = kTRUE);
47 
48  const FWEventItem* item() { return m_item; }
49  void setItem(const FWEventItem* x) { m_item = x; }
50  const fireworks::Context& context() const;
51 
52  FWDetailViewBase(const FWDetailViewBase&) = delete; // stop default
53  const FWDetailViewBase& operator=(const FWDetailViewBase&) = delete; // stop default
54 
55 protected:
56  FWDetailViewBase(const std::type_info&);
57 
58 private:
59  virtual void build(const FWModelId&, const void*) = 0;
60 
63 };
64 
65 #endif
FWDetailViewBase(const FWDetailViewBase &)=delete
virtual void setBackgroundColor(Color_t col)
FWSimpleProxyHelper m_helper
const FWEventItem * item()
void setItem(const FWEventItem *x)
void build(const FWModelId &)
const fireworks::Context & context() const
const FWDetailViewBase & operator=(const FWDetailViewBase &)=delete
static void drawCanvasDot(Float_t x, Float_t y, Float_t r, Color_t)
virtual ~FWDetailViewBase()
virtual void init(TEveWindowSlot *)=0
const FWEventItem * m_item
int col
Definition: cuy.py:1009
static void drawCanvasBox(Double_t *pos, Color_t fillCol, Int_t fillType=0, bool bg=kTRUE)