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 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 protected:
53  FWDetailViewBase(const std::type_info&);
54 
55 private:
56  FWDetailViewBase(const FWDetailViewBase&) = delete; // stop default
57  const FWDetailViewBase& operator=(const FWDetailViewBase&) = delete; // stop default
58 
59  virtual void build(const FWModelId&, const void*) = 0;
60 
63 };
64 
65 #endif
FWDetailViewBase::m_item
const FWEventItem * m_item
Definition: FWDetailViewBase.h:61
DDAxes::y
fireworks::Context
Definition: Context.h:41
FWModelId
Definition: FWModelId.h:28
cuy.col
col
Definition: cuy.py:1010
pos
Definition: PixelAliasList.h:18
Context
FWDetailViewBase::drawCanvasBox
static void drawCanvasBox(Double_t *pos, Color_t fillCol, Int_t fillType=0, bool bg=kTRUE)
Definition: FWDetailViewBase.cc:53
DDAxes::x
FWDetailViewBase::drawCanvasDot
static void drawCanvasDot(Float_t x, Float_t y, Float_t r, Color_t)
Definition: FWDetailViewBase.cc:36
FWDetailViewBase::~FWDetailViewBase
virtual ~FWDetailViewBase()
Definition: FWDetailViewBase.cc:25
FWDetailViewBase::FWDetailViewBase
FWDetailViewBase(const std::type_info &)
Definition: FWDetailViewBase.cc:23
FWDetailViewBase::setBackgroundColor
virtual void setBackgroundColor(Color_t col)
Definition: FWDetailViewBase.h:42
FWDetailViewBase::m_helper
FWSimpleProxyHelper m_helper
Definition: FWDetailViewBase.h:62
FWDetailViewBase::item
const FWEventItem * item()
Definition: FWDetailViewBase.h:48
FWDetailViewBase::setItem
void setItem(const FWEventItem *x)
Definition: FWDetailViewBase.h:49
FWDetailViewBase
Definition: FWDetailViewBase.h:35
FWDetailViewBase::operator=
const FWDetailViewBase & operator=(const FWDetailViewBase &)=delete
alignCSCRings.r
r
Definition: alignCSCRings.py:93
FWSimpleProxyHelper.h
FWDetailViewBase::build
void build(const FWModelId &)
Definition: FWDetailViewBase.cc:27
FWEventItem
Definition: FWEventItem.h:56
FWDetailViewBase::context
const fireworks::Context & context() const
Definition: FWDetailViewBase.cc:32
fireworks
Definition: FWTauProxyBuilderBase.h:35
FWSimpleProxyHelper
Definition: FWSimpleProxyHelper.h:30
FWDetailViewBase::init
virtual void init(TEveWindowSlot *)=0