CMS 3D CMS Logo

FWSimpleProxyBuilder.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWSimpleProxyBuilder_h
2 #define Fireworks_Core_FWSimpleProxyBuilder_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWSimpleProxyBuilder
7 //
16 //
17 // Original Author: Chris Jones, AljaMrak-Tadel
18 // Created: Tue March 28 2 09:46:36 EST 2010
19 //
20 
21 // system include files
22 #include <typeinfo>
23 
24 // user include files
27 
28 // forward declarations
29 
31 public:
32  FWSimpleProxyBuilder(const std::type_info& iType);
33  ~FWSimpleProxyBuilder() override;
34 
35  // ---------- const member functions ---------------------
36 
37  // ---------- static member functions --------------------
39  static std::string typeOfBuilder();
40 
41  // ---------- member functions ---------------------------
42 
43 protected:
45  void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*) override;
47  void buildViewType(const FWEventItem* iItem,
48  TEveElementList* product,
49  FWViewType::EType viewType,
50  const FWViewContext*) override;
51 
52  //called once for each item in collection, the void* points to the
53  // object properly offset in memory
54  virtual void build(const void*, unsigned int iIndex, TEveElement& iItemHolder, const FWViewContext*) = 0;
55  virtual void buildViewType(
56  const void*, unsigned int iIndex, TEveElement& iItemHolder, FWViewType::EType, const FWViewContext*) = 0;
57 
58  void clean() override;
60 
61 private:
62  FWSimpleProxyBuilder(const FWSimpleProxyBuilder&) = delete; // stop default
63 
64  const FWSimpleProxyBuilder& operator=(const FWSimpleProxyBuilder&) = delete; // stop default
65 
66  virtual void itemChangedImp(const FWEventItem*);
67 
68  bool visibilityModelChanges(const FWModelId&, TEveElement*, FWViewType::EType, const FWViewContext*) override;
69 
70  // ---------- member data --------------------------------
71 };
72 
73 #endif
FWSimpleProxyBuilder::operator=
const FWSimpleProxyBuilder & operator=(const FWSimpleProxyBuilder &)=delete
FWSimpleProxyBuilder::buildViewType
void buildViewType(const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override
Definition: FWSimpleProxyBuilder.cc:95
FWViewType::EType
EType
Definition: FWViewType.h:31
FWModelId
Definition: FWModelId.h:28
FWSimpleProxyBuilder::itemChangedImp
virtual void itemChangedImp(const FWEventItem *)
Definition: FWSimpleProxyBuilder.cc:69
FWProxyBuilderBase.h
FWSimpleProxyBuilder::~FWSimpleProxyBuilder
~FWSimpleProxyBuilder() override
Definition: FWSimpleProxyBuilder.cc:39
FWSimpleProxyBuilder::m_helper
FWSimpleProxyHelper m_helper
Definition: FWSimpleProxyBuilder.h:59
FWProxyBuilderBase::buildViewType
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *)
Definition: FWProxyBuilderBase.cc:333
FWSimpleProxyBuilder::typeOfBuilder
static std::string typeOfBuilder()
Used by the plugin system to determine how the proxy uses the data from FWEventItem.
Definition: FWSimpleProxyBuilder.cc:142
FWSimpleProxyBuilder::clean
void clean() override
Definition: FWSimpleProxyBuilder.cc:57
FWProxyBuilderBase::build
void build()
Definition: FWProxyBuilderBase.cc:110
FWSimpleProxyBuilder::visibilityModelChanges
bool visibilityModelChanges(const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *) override
Definition: FWSimpleProxyBuilder.cc:118
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FWViewContext
Definition: FWViewContext.h:32
FWSimpleProxyBuilder::FWSimpleProxyBuilder
FWSimpleProxyBuilder(const std::type_info &iType)
Definition: FWSimpleProxyBuilder.cc:32
FWSimpleProxyBuilder
Definition: FWSimpleProxyBuilder.h:30
FWSimpleProxyHelper.h
FWEventItem
Definition: FWEventItem.h:56
FWProxyBuilderBase
Definition: FWProxyBuilderBase.h:46
FWSimpleProxyHelper
Definition: FWSimpleProxyHelper.h:30