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 // $Id: FWSimpleProxyBuilder.h,v 1.10 2010/10/22 14:34:45 amraktad Exp $
20 //
21 
22 // system include files
23 #include <typeinfo>
24 
25 // user include files
28 
29 // forward declarations
30 
32 
33 public:
34  FWSimpleProxyBuilder(const std::type_info& iType);
35  virtual ~FWSimpleProxyBuilder();
36 
37  // ---------- const member functions ---------------------
38 
39  // ---------- static member functions --------------------
41  static std::string typeOfBuilder();
42 
43  // ---------- member functions ---------------------------
44 
45 protected:
46  virtual void build(const FWEventItem* iItem, TEveElementList* product, const FWViewContext*);
47  virtual void buildViewType(const FWEventItem* iItem, TEveElementList* product, FWViewType::EType viewType, const FWViewContext*);
48 
49 
50  virtual void clean();
52 private:
53  FWSimpleProxyBuilder(const FWSimpleProxyBuilder&); // stop default
54 
55  const FWSimpleProxyBuilder& operator=(const FWSimpleProxyBuilder&); // stop default
56 
57  virtual void itemChangedImp(const FWEventItem*);
58 
59  virtual bool visibilityModelChanges(const FWModelId&, TEveElement*, FWViewType::EType, const FWViewContext*);
60 
61  //called once for each item in collection, the void* points to the
62  // object properly offset in memory
63  virtual void build(const void*, unsigned int iIndex, TEveElement& iItemHolder, const FWViewContext*) = 0;
64  virtual void buildViewType(const void*, unsigned int iIndex, TEveElement& iItemHolder, FWViewType::EType, const FWViewContext*) = 0;
65 
66  // ---------- member data --------------------------------
67 };
68 
69 
70 #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 *)