CMS 3D CMS Logo

FWViewManagerBase.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewManagerBase_h
2 #define Fireworks_Core_FWViewManagerBase_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewManagerBase
7 //
16 //
17 // Original Author:
18 // Created: Sat Jan 5 10:29:00 EST 2008
19 //
20 
21 // system include files
22 #include <string>
23 #include <vector>
24 #include <set>
25 #include <map>
26 
27 // user include files
28 
29 //Needed for gccxml
31 
32 // forward declarations
33 class FWEventItem;
34 class TClass;
35 class FWGeometry;
36 class FWModelId;
38 class FWColorManager;
40 
41 namespace fireworks {
42  class Context;
43 }
44 
46 public:
47  virtual ~FWViewManagerBase();
48 
49  // ---------- const member functions ---------------------
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  virtual void newItem(const FWEventItem*) = 0;
55 
56  virtual void setContext(const fireworks::Context* x) { m_context = x; }
57 
60 
62  void modelChangesDoneSlot();
63  void colorsChangedSlot();
64  virtual void eventBegin(){};
65  virtual void eventEnd(){};
66 
67  // ---------- const member functions ---------------------
68 
69  const fireworks::Context& context() const { return *m_context; }
70 
71 protected:
73 
78  void* createInstanceOf(const TClass* iBaseClass, const char* iNameOfClass);
79 
81  virtual void modelChangesComing() = 0;
82  virtual void modelChangesDone() = 0;
83  virtual void colorsChanged() = 0;
84 
87 
88 public:
89  FWViewManagerBase(const FWViewManagerBase&) = delete; // stop default
90 
91  const FWViewManagerBase& operator=(const FWViewManagerBase&) = delete; // stop default
92 
93 private:
94  // ---------- member data --------------------------------
96 
99 };
100 
101 #endif
void * createInstanceOf(const TClass *iBaseClass, const char *iNameOfClass)
FWModelChangeManager & changeManager() const
FWColorManager & colorManager() const
virtual void modelChangesComing()=0
virtual void colorsChanged()=0
virtual void modelChangesDone()=0
virtual void newItem(const FWEventItem *)=0
virtual void eventEnd()
virtual void setContext(const fireworks::Context *x)
virtual FWTypeToRepresentations supportedTypesAndRepresentations() const =0
const fireworks::Context * m_context
FWModelChangeManager * m_changeManager
FWColorManager * m_colorManager
void setChangeManager(FWModelChangeManager *iCM)
const FWViewManagerBase & operator=(const FWViewManagerBase &)=delete
void setColorManager(FWColorManager *iCM)
virtual ~FWViewManagerBase()
virtual void eventBegin()
const fireworks::Context & context() const