CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWDigitSetProxyBuilder.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWDigitSetProxyBuilder_h
2 #define Fireworks_Core_FWDigitSetProxyBuilder_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWDigitSetProxyBuilder
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Tue Oct 19 12:00:57 CEST 2010
19 // $Id: FWDigitSetProxyBuilder.h,v 1.3 2010/12/03 20:38:57 amraktad Exp $
20 //
21 
22 // system include files
23 
24 // user include files
26 
27 // forward declarations
28 class TEveDigitSet;
29 class TEveBoxSet;
31 
33 {
34 
35 public:
37  virtual ~FWDigitSetProxyBuilder();
38 
39  // ---------- const member functions ---------------------
40 
41  virtual bool willHandleInteraction() const { return true; }
42 
43  // ---------- static member functions --------------------
44 
45  // ---------- member functions ---------------------------
46 
47 protected:
48 
49  // AMT: temproary structure since TEveBoxSet::BFreeBox_t is protected
50  // this workaround should be removed in next root patch
51  struct BFreeBox_t
52  {
53  Int_t fValue;
54  void *fUserData;
55  Float_t fVertices[8][3];
56  BFreeBox_t(Int_t v=0) : fValue(v), fUserData(0) {}
57  };
58 
59 
60  TEveBoxSet* addBoxSetToProduct(TEveElementList* product);
61  void addBox(TEveBoxSet* set, const float* pnts, const FWDisplayProperties& dp);
62  TEveBoxSet* getBoxSet() const { return m_boxSet; }
63 
64 private:
65  FWDigitSetProxyBuilder(const FWDigitSetProxyBuilder&); // stop default
66 
67  const FWDigitSetProxyBuilder& operator=(const FWDigitSetProxyBuilder&); // stop default
68 
69  // ---------- member data --------------------------------
70 
71  virtual void modelChanges(const FWModelIds&, Product*);
72 
73  static TString getTooltip(TEveDigitSet* set, int idx);
74 
75  TEveDigitSet* digitSet(TEveElement* product);
76 
77  TEveBoxSet* m_boxSet;
78 };
79 
80 
81 #endif
std::set< FWModelId > FWModelIds
TEveBoxSet * getBoxSet() const
static TString getTooltip(TEveDigitSet *set, int idx)
const FWDigitSetProxyBuilder & operator=(const FWDigitSetProxyBuilder &)
virtual void modelChanges(const FWModelIds &, Product *)
virtual bool willHandleInteraction() const
TEveBoxSet * addBoxSetToProduct(TEveElementList *product)
void addBox(TEveBoxSet *set, const float *pnts, const FWDisplayProperties &dp)
TEveDigitSet * digitSet(TEveElement *product)
mathSSE::Vec4< T > v
void set(const std::string &name, int value)
set the flag, with a run-time name