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 ---------------------
50  virtual FWTypeToRepresentations supportedTypesAndRepresentations() const = 0;
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 
58  void setChangeManager(FWModelChangeManager* iCM);
59  void setColorManager(FWColorManager* iCM);
60 
61  void modelChangesComingSlot();
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 
85  FWModelChangeManager& changeManager() const;
86  FWColorManager& colorManager() const;
87 
88 private:
89  FWViewManagerBase(const FWViewManagerBase&) = delete; // stop default
90 
91  const FWViewManagerBase& operator=(const FWViewManagerBase&) = delete; // stop default
92 
93  // ---------- member data --------------------------------
95 
98 };
99 
100 #endif
const fireworks::Context & context() const
virtual void eventEnd()
virtual void setContext(const fireworks::Context *x)
const fireworks::Context * m_context
FWModelChangeManager * m_changeManager
FWColorManager * m_colorManager
virtual void eventBegin()