CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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)
 
 FW3DView (const FW3DView &)=delete
 
TEveCaloViz * getEveCalo () const override
 
const FW3DViewoperator= (const FW3DView &)=delete
 
void setContext (const fireworks::Context &) override
 
 ~FW3DView () override
 
- Public Member Functions inherited from FW3DViewBase
void addTo (FWConfiguration &) const override
 
 FW3DViewBase (TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
 
FW3DViewDistanceMeasureToolgetDMT ()
 
void populateController (ViewerParameterGUI &) const override
 
bool requestGLHandlerPick () const override
 
void setClip (float eta, float phi)
 
void setContext (const fireworks::Context &) override
 
void setCurrentDMTVertex (double x, double y, double z)
 
void setFrom (const FWConfiguration &) override
 
void showEcalBarrel (bool)
 
void updateGlobalSceneScaleParameters ()
 
 ~FW3DViewBase () override
 
- Public Member Functions inherited from FWEveView
void addTo (FWConfiguration &) const override
 
const fireworks::Contextcontext ()
 
FWViewContextMenuHandlerBasecontextMenuHandler () const override
 
virtual void eventBegin ()
 
virtual void eventEnd ()
 
TEveScene * eventScene ()
 
 FWEveView (TEveWindowSlot *, FWViewType::EType, unsigned int version=7)
 
 FWEveView (const FWEveView &)=delete
 
FWTEveViewerfwViewer ()
 
FWTGLViewerfwViewerGL () const
 
TEveScene * geoScene ()
 
virtual bool isEnergyScaleGlobal () const
 
const FWEveViewoperator= (const FWEveView &)=delete
 
TEveElement * ownedProducts ()
 
void populateController (ViewerParameterGUI &) const override
 
void saveImageTo (const std::string &iName) const override
 
virtual void setBackgroundColor (Color_t)
 
void setFrom (const FWConfiguration &) override
 
virtual void setupEnergyScale ()
 
virtual void setupEventCenter ()
 
virtual void useGlobalEnergyScaleChanged ()
 
FWViewContextviewContext ()
 
TEveViewer * viewer ()
 
TGLViewer * viewerGL () const
 
virtual void voteCaloMaxVal ()
 
 ~FWEveView () override
 
- Public Member Functions inherited from FWViewBase
void destroy ()
 
 FWViewBase (FWViewType::EType, unsigned int iVersion=1)
 
 FWViewBase (const FWViewBase &)=delete
 
const FWViewBaseoperator= (const FWViewBase &)=delete
 
void promptForSaveImageTo (TGFrame *) const
 
FWViewType::EType typeId () const
 
const std::string & typeName () const
 
- Public Member Functions inherited from FWConfigurableParameterizable
 FWConfigurableParameterizable (unsigned int iVersion=1)
 
 FWConfigurableParameterizable (const FWConfigurableParameterizable &)=delete
 
const
FWConfigurableParameterizable
operator= (const FWConfigurableParameterizable &)=delete
 
unsigned int version () const
 
 ~FWConfigurableParameterizable () override
 
- Public Member Functions inherited from FWParameterizable
void add (FWParameterBase *)
 
const_iterator begin () const
 
const_iterator end () const
 
 FWParameterizable ()
 
 FWParameterizable (const FWParameterizable &)=delete
 
const FWParameterizableoperator= (const FWParameterizable &)=delete
 
virtual ~FWParameterizable ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
 FWConfigurable (const FWConfigurable &)=delete
 
const FWConfigurableoperator= (const FWConfigurable &)=delete
 
virtual ~FWConfigurable ()
 

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
 ~FWViewBase () override
 
- 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  : FW3DViewBase(slot, typeId), m_calo(nullptr) {
40  viewerGL()->CurrentCamera().SetFixDefCenter(kTRUE);
41 }
TGLViewer * viewerGL() const
Definition: FWEveView.cc:177
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
TEveCalo3D * m_calo
Definition: FW3DView.h:50
FWViewType::EType typeId() const
Definition: FWViewBase.h:42
FW3DView::~FW3DView ( )
override

Definition at line 43 of file FW3DView.cc.

References m_calo.

43 { m_calo->Destroy(); }
TEveCalo3D * m_calo
Definition: FW3DView.h:50
FW3DView::FW3DView ( const FW3DView )
delete

Member Function Documentation

TEveCaloViz * FW3DView::getEveCalo ( ) const
overridevirtual

Reimplemented from FWEveView.

Definition at line 45 of file FW3DView.cc.

References m_calo.

45 { return static_cast<TEveCaloViz*>(m_calo); }
TEveCalo3D * m_calo
Definition: FW3DView.h:50
const FW3DView& FW3DView::operator= ( const FW3DView )
delete
void FW3DView::setContext ( const fireworks::Context ctx)
overridevirtual

Reimplemented from FWEveView.

Definition at line 47 of file FW3DView.cc.

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

47  {
49 
50  TEveCaloData* data = context().getCaloData();
51  m_calo = new TEveCalo3D(data);
52  m_calo->SetElementName("calo barrel");
53 
54  m_calo->SetBarrelRadius(context().caloR1(false));
55  m_calo->SetEndCapPos(context().caloZ1(false));
56  m_calo->SetFrameTransparency(80);
57  m_calo->SetAutoRange(false);
58  m_calo->SetScaleAbs(true);
59  eventScene()->AddElement(m_calo);
60 }
TEveScene * eventScene()
Definition: FWEveView.h:79
float caloR1()
Definition: FWPFGeom.h:20
TEveCaloDataHist * getCaloData() const
Definition: Context.h:69
void setContext(const fireworks::Context &) override
const fireworks::Context & context()
Definition: FWEveView.h:64
float caloZ1()
Definition: FWPFGeom.h:21
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
TEveCalo3D * m_calo
Definition: FW3DView.h:50

Member Data Documentation

TEveCalo3D* FW3DView::m_calo
private

Definition at line 50 of file FW3DView.h.

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