CMS 3D CMS Logo

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 {
37 public:
38  virtual ~FWDetailViewBase ();
39 
40  void build (const FWModelId&);
41 
42  virtual void init(TEveWindowSlot*) = 0;
43  virtual void setBackgroundColor(Color_t col) {}
44 
45  //canvas utilities
46  static void drawCanvasDot(Float_t x, Float_t y, Float_t r, Color_t);
47  static void drawCanvasBox(Double_t* pos, Color_t fillCol, Int_t fillType = 0, bool bg=kTRUE);
48 
49  const FWEventItem* item() { return m_item; }
50  void setItem(const FWEventItem* x) { m_item =x; }
51  const fireworks::Context& context() const;
52 
53 protected:
54  FWDetailViewBase(const std::type_info&);
55 
56 private:
57  FWDetailViewBase(const FWDetailViewBase&) = delete; // stop default
58  const FWDetailViewBase& operator=(const FWDetailViewBase&) = delete; // stop default
59 
60  virtual void build(const FWModelId&, const void*) = 0;
61 
64 };
65 
66 #endif
virtual void setBackgroundColor(Color_t col)
FWSimpleProxyHelper m_helper
const FWEventItem * item()
int init
Definition: HydjetWrapper.h:67
void setItem(const FWEventItem *x)
const FWEventItem * m_item
col
Definition: cuy.py:1010