CMS 3D CMS Logo

/data/git/CMSSW_5_3_11_patch5/src/Fireworks/Core/interface/FW3DViewBase.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FW3DViewBase_h
00002 #define Fireworks_Core_FW3DViewBase_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FW3DViewBase
00007 //
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Thu Feb 21 11:22:37 EST 2008
00019 // $Id: FW3DViewBase.h,v 1.13 2011/10/14 22:07:53 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 #include "Rtypes.h"
00026 #include "Fireworks/Core/interface/FWEveView.h"
00027 #include "Fireworks/Core/interface/FWLongParameter.h"
00028 #include "Fireworks/Core/interface/FWBoolParameter.h"
00029 
00030 // forward declarations
00031 class TEveElementList;
00032 class TEveGeoShape;
00033 class TEveWindowSlot;
00034 
00035 class FW3DViewGeometry;
00036 class FWColorManager;
00037 class TGLClip;
00038 
00039 class FW3DViewBase : public FWEveView
00040 {
00041 public:
00042    FW3DViewBase(TEveWindowSlot*, FWViewType::EType);
00043    virtual ~FW3DViewBase();
00044 
00045    // ---------- const member functions ---------------------
00046 
00047    virtual void addTo(FWConfiguration&) const;
00048    virtual void populateController(ViewerParameterGUI&) const;
00049 
00050    // ---------- static member functions --------------------
00051 
00052    // ---------- member functions ---------------------------
00053    virtual void setContext(const fireworks::Context&);
00054    virtual void setFrom(const FWConfiguration&);
00055 
00056    // To be fixed.
00057    void updateGlobalSceneScaleParameters();
00058 
00059 private:
00060    FW3DViewBase(const FW3DViewBase&);    // stop default
00061 
00062    const FW3DViewBase& operator=(const FW3DViewBase&);    // stop default
00063 
00064    // ---------- member data --------------------------------
00065    FW3DViewGeometry*  m_geometry;
00066    TGLClip*           m_glClip;
00067 
00068    // parameters
00069    FWEnumParameter m_showMuonBarrel;
00070    FWBoolParameter m_showMuonEndcap;
00071    FWBoolParameter m_showPixelBarrel;
00072    FWBoolParameter m_showPixelEndcap;
00073    FWBoolParameter m_showTrackerBarrel;
00074    FWBoolParameter m_showTrackerEndcap;
00075 
00076    FWEnumParameter m_rnrStyle;
00077    FWBoolParameter m_clipParam;
00078    FWBoolParameter m_selectable;
00079 
00080    
00081    void selectable( bool );
00082    void sceneClip( bool );
00083    void rnrStyle(long);
00084    void showMuonBarrel( long );
00085 };
00086 
00087 
00088 #endif