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 class TEveWindow;
25 class FWModelId;
26 class FWEventItem;
27 
28 namespace fireworks {
29  class Context;
30 }
31 
33 {
34 public:
35  virtual ~FWDetailViewBase ();
36 
37  void build (const FWModelId&);
38 
39  virtual void init(TEveWindowSlot*) = 0;
40  virtual void setBackgroundColor(Color_t col) {}
41 
42  //canvas utilities
43  static void drawCanvasDot(Float_t x, Float_t y, Float_t r, Color_t);
44  static void drawCanvasBox(Double_t* pos, Color_t fillCol, Int_t fillType = 0, bool bg=kTRUE);
45 
46  const FWEventItem* item() { return m_item; }
47  void setItem(const FWEventItem* x) { m_item =x; }
48  const fireworks::Context& context() const;
49 
50 protected:
51  FWDetailViewBase(const std::type_info&);
52 
53 private:
54  FWDetailViewBase(const FWDetailViewBase&); // stop default
55  const FWDetailViewBase& operator=(const FWDetailViewBase&); // stop default
56 
57  virtual void build(const FWModelId&, const void*) = 0;
58 
61 };
62 
63 #endif
virtual void setBackgroundColor(Color_t col)
FWSimpleProxyHelper m_helper
const FWEventItem * item()
void setItem(const FWEventItem *x)
T x() const
Cartesian x coordinate.
const FWEventItem * m_item
col
Definition: cuy.py:1008