CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
32 public:
33  FWSimpleProxyBuilder(const std::type_info& iType);
34  virtual ~FWSimpleProxyBuilder();
35 
36  // ---------- const member functions ---------------------
37 
38  // ---------- static member functions --------------------
40  static std::string typeOfBuilder();
41 
42  // ---------- member functions ---------------------------
43 
44 protected:
45  virtual void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*);
46  virtual void buildViewType(const FWEventItem* iItem, TEveElementList* product, FWViewType::EType viewType, const FWViewContext*);
47 
48 
49  virtual void clean();
51 private:
52  FWSimpleProxyBuilder(const FWSimpleProxyBuilder&); // stop default
53 
54  const FWSimpleProxyBuilder& operator=(const FWSimpleProxyBuilder&); // stop default
55 
56  virtual void itemChangedImp(const FWEventItem*);
57 
58  virtual bool visibilityModelChanges(const FWModelId&, TEveElement*, FWViewType::EType, const FWViewContext*);
59 
60  //called once for each item in collection, the void* points to the
61  // object properly offset in memory
62  virtual void build(const void*, unsigned int iIndex, TEveElement& iItemHolder, const FWViewContext*) = 0;
63  virtual void buildViewType(const void*, unsigned int iIndex, TEveElement& iItemHolder, FWViewType::EType, const FWViewContext*) = 0;
64 
65  // ---------- member data --------------------------------
66 };
67 
68 
69 #endif
virtual bool visibilityModelChanges(const FWModelId &, TEveElement *, FWViewType::EType, const FWViewContext *)
FWSimpleProxyBuilder(const std::type_info &iType)
FWSimpleProxyHelper m_helper
static std::string typeOfBuilder()
Used by the plugin system to determine how the proxy uses the data from FWEventItem.
const FWSimpleProxyBuilder & operator=(const FWSimpleProxyBuilder &)
virtual void itemChangedImp(const FWEventItem *)
virtual void buildViewType(const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *)