CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Fireworks/Core/src/FWBoxIconBase.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWBoxIconBase_h
00002 #define Fireworks_Core_FWBoxIconBase_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWBoxIconBase
00007 // 
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Thu Feb 19 15:09:30 CST 2009
00019 // $Id: FWBoxIconBase.h,v 1.1 2009/03/04 16:40:50 chrjones Exp $
00020 //
00021 
00022 // system include files
00023 #include "GuiTypes.h"
00024 
00025 // user include files
00026 
00027 // forward declarations
00028 
00029 class FWBoxIconBase {
00030    
00031 public:
00032    FWBoxIconBase(unsigned int iEdgeLength);
00033    virtual ~FWBoxIconBase();
00034    
00035    // ---------- const member functions ---------------------
00036    void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const;
00037    
00038    unsigned int edgeLength() const { return m_edgeLength;}
00039    // ---------- static member functions --------------------
00040    
00041    // ---------- member functions ---------------------------
00042    
00043 private:
00044    FWBoxIconBase(const FWBoxIconBase&); // stop default
00045    
00046    const FWBoxIconBase& operator=(const FWBoxIconBase&); // stop default
00047 
00048    virtual void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const= 0;
00049    
00050    // ---------- member data --------------------------------
00051    unsigned int m_edgeLength;
00052 };
00053 
00054 
00055 #endif