CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Fireworks/Core/src/FWViewContext.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Core
00004 // Class  :     FWViewContext
00005 // 
00006 // Implementation:
00007 //     [Notes on implementation]
00008 //
00009 // Original Author:  Alja Mrak-Tadel
00010 //         Created:  Wed Apr 14 18:31:58 CEST 2010
00011 // $Id: FWViewContext.cc,v 1.8 2011/02/22 18:37:31 amraktad Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "Fireworks/Core/interface/FWViewContext.h"
00018 #include "Fireworks/Core/interface/FWViewEnergyScale.h"
00019 
00020 FWViewContext::FWViewContext():
00021    m_energyScale(0)
00022 {
00023 }
00024 
00025 FWViewContext::~FWViewContext()
00026 {
00027 }
00028 
00029 
00030 void
00031 FWViewContext::scaleChanged()
00032 {
00033    scaleChanged_.emit(this);
00034 }
00035 
00036 FWViewEnergyScale*
00037 FWViewContext::getEnergyScale() const
00038 {
00039    return m_energyScale;
00040 }
00041 
00042 void
00043 FWViewContext::setEnergyScale(FWViewEnergyScale* x)
00044 {
00045    m_energyScale =x;
00046 }