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 // $Id: FWViewManagerBase.h,v 1.22 2011/07/08 04:39:59 amraktad Exp $
20 //
21 
22 // system include files
23 #include <string>
24 #include <vector>
25 #include <set>
26 #include <map>
27 
28 // user include files
29 
30 //Needed for gccxml
32 
33 // forward declarations
34 class FWEventItem;
35 class TClass;
36 class FWGeometry;
37 class FWModelId;
39 class FWColorManager;
41 
42 namespace fireworks
43 {
44 class Context;
45 }
46 
48 {
49 
50 public:
51  virtual ~FWViewManagerBase();
52 
53  // ---------- const member functions ---------------------
55  // ---------- static member functions --------------------
56 
57  // ---------- member functions ---------------------------
58  virtual void newItem(const FWEventItem*) = 0;
59 
60  virtual void setContext(const fireworks::Context* x) { m_context = x; }
61 
64 
65 
67  void modelChangesDoneSlot();
68  void colorsChangedSlot();
69  virtual void eventBegin(){
70  };
71  virtual void eventEnd(){
72  };
73 
74  // ---------- const member functions ---------------------
75 
76  const fireworks::Context& context() const { return *m_context; }
77 
78 protected:
80 
85  void* createInstanceOf(const TClass* iBaseClass,
86  const char* iNameOfClass);
87 
89  virtual void modelChangesComing() = 0;
90  virtual void modelChangesDone() = 0;
91  virtual void colorsChanged() = 0;
92 
95 
96 private:
97  FWViewManagerBase(const FWViewManagerBase&); // stop default
98 
99  const FWViewManagerBase& operator=(const FWViewManagerBase&); // stop default
100 
101  // ---------- member data --------------------------------
103 
106 };
107 
108 
109 #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()