CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_1/src/Fireworks/Core/interface/FWViewContext.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWViewContext_h
00002 #define Fireworks_Core_FWViewContext_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWViewContext
00007 // 
00016 //
00017 // Original Author:  Alja Mrak-Tadel
00018 //         Created:  Wed Apr 14 18:31:27 CEST 2010
00019 // $Id: FWViewContext.h,v 1.6 2010/11/26 20:24:47 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 #include <sigc++/sigc++.h>
00024 #include <map>
00025 #include <string>
00026 #include "Rtypes.h"
00027 
00028 // user include files
00029 
00030 // forward declarations
00031 class FWViewEnergyScale;
00032 
00033 class FWViewContext
00034 {
00035 public:
00036    FWViewContext();
00037    virtual ~FWViewContext();
00038 
00039    FWViewEnergyScale* getEnergyScale() const;
00040    void setEnergyScale(FWViewEnergyScale*);
00041 
00042    void scaleChanged();
00043 
00044    mutable sigc::signal<void, const FWViewContext*> scaleChanged_;
00045    
00046 private:
00047    FWViewContext(const FWViewContext&); // stop default
00048 
00049    const FWViewContext& operator=(const FWViewContext&); // stop default
00050 
00051    // ---------- member data --------------------------------
00052 
00053    FWViewEnergyScale* m_energyScale;
00054 };
00055 
00056 
00057 #endif