/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Fireworks/Core/interface/FWViewManagerBase.h
101 строка
3 KB
Shahzad Malik Muzaffar
[VISUALIZATION] Changes suggested by new llvm18 clang-format
05 сен 2024, 17:14
05 сен 2024, 17:14
de16ab8
Код
Авторство
О чём код?
#ifndef Fireworks_Core_FWViewManagerBase_h #define Fireworks_Core_FWViewManagerBase_h // -*- C++ -*- // // Package: Core // Class : FWViewManagerBase // /**\class FWViewManagerBase FWViewManagerBase.h Fireworks/Core/interface/FWViewManagerBase.h Description: Base class for a Manger for a specific type of View Usage: <usage> */ // // Original Author: // Created: Sat Jan 5 10:29:00 EST 2008 // // system include files #include <string> #include <vector> #include <set> #include <map> // user include files //Needed for gccxml #include "Fireworks/Core/interface/FWTypeToRepresentations.h" // forward declarations class FWEventItem; class TClass; class FWGeometry; class FWModelId; class FWModelChangeManager; class FWColorManager; class FWTypeToRepresentations; namespace fireworks { class Context; } class FWViewManagerBase { public: virtual ~FWViewManagerBase(); // ---------- const member functions --------------------- virtual FWTypeToRepresentations supportedTypesAndRepresentations() const = 0; // ---------- static member functions -------------------- // ---------- member functions --------------------------- virtual void newItem(const FWEventItem*) = 0; virtual void setContext(const fireworks::Context* x) { m_context = x; } void setChangeManager(FWModelChangeManager* iCM); void setColorManager(FWColorManager* iCM); void modelChangesComingSlot(); void modelChangesDoneSlot(); void colorsChangedSlot(); virtual void eventBegin() {} virtual void eventEnd() {} // ---------- const member functions --------------------- const fireworks::Context& context() const { return *m_context; } protected: FWViewManagerBase(); /**handles dynamic loading of a library or macro containing the class named iNameOfClass which inherits from iBaseClass. The returned void* will correspond to the address of the 'BaseClass' */ void* createInstanceOf(const TClass* iBaseClass, const char* iNameOfClass); /** called when models have changed and so the display must be updated*/ virtual void modelChangesComing() = 0; virtual void modelChangesDone() = 0; virtual void colorsChanged() = 0; FWModelChangeManager& changeManager() const; FWColorManager& colorManager() const; public: FWViewManagerBase(const FWViewManagerBase&) = delete; // stop default const FWViewManagerBase& operator=(const FWViewManagerBase&) = delete; // stop default private: // ---------- member data -------------------------------- const fireworks::Context* m_context; FWModelChangeManager* m_changeManager; FWColorManager* m_colorManager; }; #endif