CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions
FWSimpleProxyBuilderTemplate< T > Class Template Reference

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

Inheritance diagram for FWSimpleProxyBuilderTemplate< T >:
FWSimpleProxyBuilder FWProxyBuilderBase FWPFPatJet3DProxyBuilder< T > FWPFPatJetLegoProxyBuilder< T >

Public Member Functions

 FWSimpleProxyBuilderTemplate ()
 
- Public Member Functions inherited from FWSimpleProxyBuilder
 FWSimpleProxyBuilder (const std::type_info &iType)
 
virtual ~FWSimpleProxyBuilder ()
 
- Public Member Functions inherited from FWProxyBuilderBase
void build ()
 
virtual bool canHandle (const FWEventItem &)
 
const fireworks::Contextcontext () const
 
TEveElementList * createProduct (FWViewType::EType, const FWViewContext *)
 
 FWProxyBuilderBase ()
 
bool getHaveWindow () const
 
virtual bool havePerViewProduct (FWViewType::EType) const
 
virtual bool haveSingleProduct () const
 
const FWEventItemitem () const
 
virtual void itemBeingDestroyed (const FWEventItem *)
 
void itemChanged (const FWEventItem *)
 
int layer () const
 
void modelChanges (const FWModelIds &)
 
void removePerViewProduct (FWViewType::EType, const FWViewContext *vc)
 
void scaleChanged (const FWViewContext *)
 
void setHaveWindow (bool iFlag)
 
virtual void setInteractionList (FWInteractionList *, const std::string &)
 
virtual void setItem (const FWEventItem *iItem)
 
void setupAddElement (TEveElement *el, TEveElement *parent, bool set_color=true) const
 
void setupElement (TEveElement *el, bool color=true) const
 
virtual bool willHandleInteraction () const
 
virtual ~FWProxyBuilderBase ()
 

Protected Member Functions

const TmodelData (int index)
 
- Protected Member Functions inherited from FWSimpleProxyBuilder
virtual void build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *)
 
virtual void buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *)
 
virtual void clean ()
 
- Protected Member Functions inherited from FWProxyBuilderBase
virtual void cleanLocal ()
 
TEveCompound * createCompound (bool set_color=true, bool propagate_color_to_all_children=false) const
 
 FWProxyBuilderBase (const FWProxyBuilderBase &)
 
void increaseComponentTransparency (unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset)
 
virtual void localModelChanges (const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
 
virtual void modelChanges (const FWModelIds &, Product *)
 
const FWProxyBuilderBaseoperator= (const FWProxyBuilderBase &)
 
virtual void scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
 

Private Member Functions

virtual void build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context)
 
virtual void build (const T &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *)
 
virtual void buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context)
 
virtual void buildViewType (const T &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *)
 
 FWSimpleProxyBuilderTemplate (const FWSimpleProxyBuilderTemplate &)
 
const
FWSimpleProxyBuilderTemplate
operator= (const FWSimpleProxyBuilderTemplate &)
 

Additional Inherited Members

- Static Public Member Functions inherited from FWSimpleProxyBuilder
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 
- Static Public Member Functions inherited from FWProxyBuilderBase
static bool representsSubPart ()
 
static std::string typeOfBuilder ()
 Used by the plugin system to determine how the proxy uses the data from FWEventItem. More...
 
- Protected Types inherited from FWProxyBuilderBase
typedef std::vector< Product * >
::iterator 
Product_it
 
- Protected Attributes inherited from FWSimpleProxyBuilder
FWSimpleProxyHelper m_helper
 
- Protected Attributes inherited from FWProxyBuilderBase
std::vector< Product * > m_products
 

Detailed Description

template<typename T>
class FWSimpleProxyBuilderTemplate< T >

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 30 of file FWSimpleProxyBuilderTemplate.h.

Constructor & Destructor Documentation

template<typename T>
FWSimpleProxyBuilderTemplate< T >::FWSimpleProxyBuilderTemplate ( )
inline

Definition at line 33 of file FWSimpleProxyBuilderTemplate.h.

33  :
34  FWSimpleProxyBuilder(typeid(T)) {
35  }
FWSimpleProxyBuilder(const std::type_info &iType)
long double T

Member Function Documentation

template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::build ( const void *  iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext context 
)
inlineprivatevirtual

Implements FWSimpleProxyBuilder.

Definition at line 53 of file FWSimpleProxyBuilderTemplate.h.

54  {
55  if(0!=iData) {
56  build(*reinterpret_cast<const T*> (iData), iIndex, oItemHolder, context);
57  }
58  }
template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::build ( const T iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext  
)
inlineprivatevirtual

iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement

Reimplemented in FWElectronGlimpseProxyBuilder, FWPFHcalClusterLegoProxyBuilder, FWPFHcalClusterRPZProxyBuilder, FWMET3DProxyBuilder, FWPFEcalClusterLegoProxyBuilder, FWPFEcalClusterRPZProxyBuilder, FWVertexProxyBuilder, FWCandidateLegoProxyBuilder, FWPFCandidate3DProxyBuilder, FWPFCandidatesLegoProxyBuilder, FWPFPatJet3DProxyBuilder< T >, FWPFPatJetLegoProxyBuilder< T >, FWPFPatJet3DProxyBuilder< pat::Jet >, FWPFPatJet3DProxyBuilder< reco::PFJet >, FWPFPatJetLegoProxyBuilder< pat::Jet >, FWPFPatJetLegoProxyBuilder< reco::PFJet >, FWGenParticleProxyBuilder, FWPFTrackLegoProxyBuilder, FWPFTrack3DProxyBuilder, FWPFTrackRPZProxyBuilder, FWTrackingParticleProxyBuilder, FWTrackProxyBuilder, FWCSCSegmentProxyBuilder, FWCandidateProxyBuilder, FWGenParticleLegoProxyBuilder, FWSecVertexProxyBuilder, FWElectronLegoProxyBuilder, FWMuonProxyBuilder, FWPFClusterRPZProxyBuilder, FWL1EmParticleProxyBuilder, FWL1EtMissParticleProxyBuilder, FWL1JetParticleProxyBuilder, FWL1MuonParticleProxyBuilder, FWCSCRecHitProxyBuilder, FWBeamSpotOnlineProxyBuilder, FWTrackingVertexProxyBuilder, FWBeamSpotProxyBuilder, FWMuonLegoProxyBuilder, FWTracksModulesProxyBuilder, FWTracksRecHitsProxyBuilder, FWMuonGlimpseProxyBuilder, FWSimVertexProxyBuilder, FWPhotonLegoProxyBuilder, FWMuonRhoPhiProxyBuilder, FWL1EtMissParticleGlimpseProxyBuilder, FWL1EtMissParticleLegoProxyBuilder, FWL1JetParticleLegoProxyBuilder, FWL1MuonParticleLegoProxyBuilder, FWMETGlimpseProxyBuilder, FWMETLegoProxyBuilder, FWTrackTrackingRecHitProxyBuilder, FWCaloClusterProxyBuilder, and FWJetLegoProxyBuilder.

Definition at line 69 of file FWSimpleProxyBuilderTemplate.h.

70  {
71  throw std::runtime_error("virtual build(const T&, unsigned int, TEveElement&, const FWViewContext*) not implemented by inherited class.");
72  }
template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::buildViewType ( const void *  iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
FWViewType::EType  viewType,
const FWViewContext context 
)
inlineprivatevirtual

Implements FWSimpleProxyBuilder.

Definition at line 60 of file FWSimpleProxyBuilderTemplate.h.

Referenced by FWSimpleProxyBuilderTemplate< l1extra::L1JetParticle >::buildViewType().

61  {
62  if(0!=iData) {
63  buildViewType(*reinterpret_cast<const T*> (iData), iIndex, oItemHolder, viewType, context);
64  }
65  }
virtual void buildViewType(const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context)
template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::buildViewType ( const T iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
FWViewType::EType  viewType,
const FWViewContext  
)
inlineprivatevirtual

Reimplemented in FWJetProxyBuilder, FWMETProxyBuilder, FWPFBlockProxyBuilder, FWConversionProxyBuilder, FWElectronProxyBuilder, FWDTSegmentProxyBuilder, FWPhotonProxyBuilder, FWRPCRecHitProxyBuilder, FWDTRecHitProxyBuilder, and FWPSimHitProxyBuilder.

Definition at line 74 of file FWSimpleProxyBuilderTemplate.h.

75  {
76  throw std::runtime_error("virtual buildViewType(const T&, unsigned int, TEveElement&, FWViewType::EType, const FWViewContext*) not implemented by inherited class");
77  };
template<typename T>
const T& FWSimpleProxyBuilderTemplate< T >::modelData ( int  index)
inlineprotected

Definition at line 46 of file FWSimpleProxyBuilderTemplate.h.

Referenced by FWSimpleProxyBuilderTemplate< l1extra::L1JetParticle >::modelData().

46 { return *reinterpret_cast<const T*>(m_helper.offsetObject(item()->modelData(index))); }
const void * offsetObject(const void *iObj) const
const FWEventItem * item() const
FWSimpleProxyHelper m_helper
long double T
template<typename T>
const FWSimpleProxyBuilderTemplate& FWSimpleProxyBuilderTemplate< T >::operator= ( const FWSimpleProxyBuilderTemplate< T > &  )
private