CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
43 class Context;
44 }
45 
47 {
48 
49 public:
50  virtual ~FWViewManagerBase();
51 
52  // ---------- const member functions ---------------------
54  // ---------- static member functions --------------------
55 
56  // ---------- member functions ---------------------------
57  virtual void newItem(const FWEventItem*) = 0;
58 
59  virtual void setContext(const fireworks::Context* x) { m_context = x; }
60 
63 
64 
66  void modelChangesDoneSlot();
67  void colorsChangedSlot();
68  virtual void eventBegin(){
69  };
70  virtual void eventEnd(){
71  };
72 
73  // ---------- const member functions ---------------------
74 
75  const fireworks::Context& context() const { return *m_context; }
76 
77 protected:
79 
84  void* createInstanceOf(const TClass* iBaseClass,
85  const char* iNameOfClass);
86 
88  virtual void modelChangesComing() = 0;
89  virtual void modelChangesDone() = 0;
90  virtual void colorsChanged() = 0;
91 
94 
95 private:
96  FWViewManagerBase(const FWViewManagerBase&); // stop default
97 
98  const FWViewManagerBase& operator=(const FWViewManagerBase&); // stop default
99 
100  // ---------- member data --------------------------------
102 
105 };
106 
107 
108 #endif
void * createInstanceOf(const TClass *iBaseClass, const char *iNameOfClass)
const fireworks::Context & context() const
virtual void modelChangesComing()=0
virtual void colorsChanged()=0
virtual void modelChangesDone()=0
virtual void newItem(const FWEventItem *)=0
FWColorManager & colorManager() const
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)
FWModelChangeManager & changeManager() const
const FWViewManagerBase & operator=(const FWViewManagerBase &)
void setColorManager(FWColorManager *iCM)
Definition: DDAxes.h:10
virtual ~FWViewManagerBase()
virtual void eventBegin()