CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
FW3DView Class Reference

#include <Fireworks/Core/interface/FW3DView.h>

Inheritance diagram for FW3DView:
FW3DViewBase FWEveView FWViewBase FWConfigurableParameterizable FWParameterizable FWConfigurable

Public Member Functions

 FW3DView (TEveWindowSlot *, FWViewType::EType)
 
virtual TEveCaloViz * getEveCalo () const
 
virtual void setContext (const fireworks::Context &)
 
virtual ~FW3DView ()
 
- Public Member Functions inherited from FW3DViewBase
virtual void addTo (FWConfiguration &) const
 
 FW3DViewBase (TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
 
FW3DViewDistanceMeasureToolgetDMT ()
 
virtual void populateController (ViewerParameterGUI &) const
 
virtual bool requestGLHandlerPick () const
 
void setClip (float eta, float phi)
 
void setCurrentDMTVertex (double x, double y, double z)
 
virtual void setFrom (const FWConfiguration &)
 
void showEcalBarrel (bool)
 
void updateGlobalSceneScaleParameters ()
 
virtual ~FW3DViewBase ()
 
- Public Member Functions inherited from FWEveView
const fireworks::Contextcontext ()
 
virtual
FWViewContextMenuHandlerBase
contextMenuHandler () const
 
virtual void eventBegin ()
 
virtual void eventEnd ()
 
TEveScene * eventScene ()
 
 FWEveView (TEveWindowSlot *, FWViewType::EType, unsigned int version=7)
 
FWTEveViewerfwViewer ()
 
FWTGLViewerfwViewerGL () const
 
TEveScene * geoScene ()
 
virtual bool isEnergyScaleGlobal () const
 
TEveElement * ownedProducts ()
 
virtual void saveImageTo (const std::string &iName) const
 
virtual void setBackgroundColor (Color_t)
 
virtual void setupEnergyScale ()
 
virtual void useGlobalEnergyScaleChanged ()
 
FWViewContextviewContext ()
 
TEveViewer * viewer ()
 
TGLViewer * viewerGL () const
 
virtual void voteCaloMaxVal ()
 
virtual ~FWEveView ()
 
- Public Member Functions inherited from FWViewBase
void destroy ()
 
 FWViewBase (FWViewType::EType, unsigned int iVersion=1)
 
void promptForSaveImageTo (TGFrame *) const
 
FWViewType::EType typeId () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
unsigned int version () const
 
virtual ~FWConfigurableParameterizable ()
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Member Functions

 FW3DView (const FW3DView &)
 
const FW3DViewoperator= (const FW3DView &)
 

Private Attributes

TEveCalo3D * m_calo
 

Additional Inherited Members

- Public Types inherited from FWParameterizable
typedef std::vector
< FWParameterBase * >
::const_iterator 
const_iterator
 
- Public Attributes inherited from FWViewBase
sigc::signal< void, const
FWViewBase * > 
beingDestroyed_
 
sigc::signal< void, Int_t, Int_t > openSelectedModelContextMenu_
 
- Protected Member Functions inherited from FWEveView
void addToOrthoCamera (TGLOrthoCamera *, FWConfiguration &) const
 
void addToPerspectiveCamera (TGLPerspectiveCamera *, const std::string &, FWConfiguration &) const
 
virtual void cameraGuideChanged ()
 
virtual void pointLineScalesChanged ()
 
virtual void resetCamera ()
 
void setFromOrthoCamera (TGLOrthoCamera *, const FWConfiguration &)
 
void setFromPerspectiveCamera (TGLPerspectiveCamera *, const std::string &, const FWConfiguration &)
 
- Protected Member Functions inherited from FWViewBase
virtual ~FWViewBase ()
 
- Protected Attributes inherited from FWEveView
const fireworks::Contextm_context
 
- Protected Attributes inherited from FWViewBase
FWViewType m_type
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 29 of file FW3DView.h.

Constructor & Destructor Documentation

FW3DView::FW3DView ( TEveWindowSlot *  slot,
FWViewType::EType  typeId 
)

Definition at line 39 of file FW3DView.cc.

References FWEveView::viewerGL().

39  :
40  FW3DViewBase(slot, typeId),
41  m_calo(0)
42 {
43  viewerGL()->CurrentCamera().SetFixDefCenter(kTRUE);
44 }
TGLViewer * viewerGL() const
Definition: FWEveView.cc:194
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
Definition: FW3DViewBase.cc:97
TEveCalo3D * m_calo
Definition: FW3DView.h:52
FWViewType::EType typeId() const
Definition: FWViewBase.h:41
FW3DView::~FW3DView ( )
virtual

Definition at line 46 of file FW3DView.cc.

References m_calo.

47 {
48  m_calo->Destroy();
49 }
TEveCalo3D * m_calo
Definition: FW3DView.h:52
FW3DView::FW3DView ( const FW3DView )
private

Member Function Documentation

TEveCaloViz * FW3DView::getEveCalo ( ) const
virtual

Reimplemented from FWEveView.

Definition at line 53 of file FW3DView.cc.

References m_calo.

54 {
55  return static_cast<TEveCaloViz*>(m_calo);
56 }
TEveCalo3D * m_calo
Definition: FW3DView.h:52
const FW3DView& FW3DView::operator= ( const FW3DView )
private
void FW3DView::setContext ( const fireworks::Context ctx)
virtual

Reimplemented from FW3DViewBase.

Definition at line 58 of file FW3DView.cc.

References FWPFGeom::caloR1(), FWPFGeom::caloZ1(), FWEveView::context(), data, FWEveView::eventScene(), fireworks::Context::getCaloData(), m_calo, and FW3DViewBase::setContext().

59 {
61 
62  TEveCaloData* data = context().getCaloData();
63  m_calo = new TEveCalo3D(data);
64  m_calo->SetElementName("calo barrel");
65 
66  m_calo->SetBarrelRadius(context().caloR1(false));
67  m_calo->SetEndCapPos(context().caloZ1(false));
68  m_calo->SetFrameTransparency(80);
69  m_calo->SetAutoRange(false);
70  m_calo->SetScaleAbs(true);
71  eventScene()->AddElement(m_calo);
72 }
TEveScene * eventScene()
Definition: FWEveView.h:82
float caloR1()
Definition: FWPFGeom.h:21
virtual void setContext(const fireworks::Context &)
TEveCaloDataHist * getCaloData() const
Definition: Context.h:80
const fireworks::Context & context()
Definition: FWEveView.h:67
float caloZ1()
Definition: FWPFGeom.h:22
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
TEveCalo3D * m_calo
Definition: FW3DView.h:52

Member Data Documentation

TEveCalo3D* FW3DView::m_calo
private

Definition at line 52 of file FW3DView.h.

Referenced by getEveCalo(), setContext(), and ~FW3DView().