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 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
FWViewManagerBase::modelChangesComing
virtual void modelChangesComing()=0
fireworks::Context
Definition: Context.h:41
FWViewManagerBase::modelChangesDone
virtual void modelChangesDone()=0
FWGeometry
Definition: FWGeometry.h:27
FWViewManagerBase::~FWViewManagerBase
virtual ~FWViewManagerBase()
Definition: FWViewManagerBase.cc:43
FWViewManagerBase
Definition: FWViewManagerBase.h:45
FWViewManagerBase::createInstanceOf
void * createInstanceOf(const TClass *iBaseClass, const char *iNameOfClass)
Definition: FWViewManagerBase.cc:60
FWViewManagerBase::colorManager
FWColorManager & colorManager() const
Definition: FWViewManagerBase.cc:123
FWModelId
Definition: FWModelId.h:28
FWViewManagerBase::newItem
virtual void newItem(const FWEventItem *)=0
FWViewManagerBase::changeManager
FWModelChangeManager & changeManager() const
Definition: FWViewManagerBase.cc:118
Context
FWViewManagerBase::colorsChanged
virtual void colorsChanged()=0
DDAxes::x
FWModelChangeManager
Definition: FWModelChangeManager.h:33
FWViewManagerBase::colorsChangedSlot
void colorsChangedSlot()
Definition: FWViewManagerBase.cc:97
FWViewManagerBase::modelChangesDoneSlot
void modelChangesDoneSlot()
Definition: FWViewManagerBase.cc:93
FWViewManagerBase::modelChangesComingSlot
void modelChangesComingSlot()
Definition: FWViewManagerBase.cc:89
FWViewManagerBase::m_context
const fireworks::Context * m_context
Definition: FWViewManagerBase.h:94
FWViewManagerBase::FWViewManagerBase
FWViewManagerBase()
Definition: FWViewManagerBase.cc:36
FWViewManagerBase::m_changeManager
FWModelChangeManager * m_changeManager
Definition: FWViewManagerBase.h:96
FWViewManagerBase::eventEnd
virtual void eventEnd()
Definition: FWViewManagerBase.h:65
FWViewManagerBase::operator=
const FWViewManagerBase & operator=(const FWViewManagerBase &)=delete
FWViewManagerBase::setContext
virtual void setContext(const fireworks::Context *x)
Definition: FWViewManagerBase.h:56
FWViewManagerBase::setChangeManager
void setChangeManager(FWModelChangeManager *iCM)
Definition: FWViewManagerBase.cc:99
FWViewManagerBase::m_colorManager
FWColorManager * m_colorManager
Definition: FWViewManagerBase.h:97
FWViewManagerBase::supportedTypesAndRepresentations
virtual FWTypeToRepresentations supportedTypesAndRepresentations() const =0
FWColorManager
Definition: FWColorManager.h:45
FWEventItem
Definition: FWEventItem.h:56
FWTypeToRepresentations
Definition: FWTypeToRepresentations.h:33
FWTypeToRepresentations.h
FWViewManagerBase::setColorManager
void setColorManager(FWColorManager *iCM)
Definition: FWViewManagerBase.cc:106
fireworks
Definition: FWTauProxyBuilderBase.h:35
FWViewManagerBase::eventBegin
virtual void eventBegin()
Definition: FWViewManagerBase.h:64
FWViewManagerBase::context
const fireworks::Context & context() const
Definition: FWViewManagerBase.h:69