CMS 3D CMS Logo

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

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 *)
 
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

 FWSimpleProxyBuilderTemplate (const FWSimpleProxyBuilderTemplate &)
 
const FWSimpleProxyBuilderTemplateoperator= (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.

Referenced by FWSimpleProxyBuilderTemplate< TrajectorySeed >::buildViewType().

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 
)
inlineprotectedvirtual

Implements FWSimpleProxyBuilder.

Definition at line 49 of file FWSimpleProxyBuilderTemplate.h.

50  {
51  if(0!=iData) {
52  build(*reinterpret_cast<const T*> (iData), iIndex, oItemHolder, context);
53  }
54  }
template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::build ( const T iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext  
)
inlineprotectedvirtual

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, FWVertexCandidateProxyBuilder, FWVertexProxyBuilder, FWCandidateLegoProxyBuilder, FWCandidateProxyBuilder, FWCandidateHGCalLegoProxyBuilder, FWPFCandidate3DProxyBuilder, FWPFCandidatesLegoProxyBuilder, FWPFPatJet3DProxyBuilder< T >, FWPFPatJetLegoProxyBuilder< T >, FWTrajectorySeedProxyBuilder, FWPFPatJet3DProxyBuilder< pat::Jet >, FWPFPatJet3DProxyBuilder< reco::PFJet >, FWPFPatJetLegoProxyBuilder< pat::Jet >, FWPFPatJetLegoProxyBuilder< reco::PFJet >, FWTrackingParticleProxyBuilderFullFramework, FWGenParticleProxyBuilder, FWPFTrackLegoProxyBuilder, FWTrackProxyBuilder, FWTrackingParticleProxyBuilder, FWMuonProxyBuilder, FWSecVertexCandidateProxyBuilder, FWCSCSegmentProxyBuilder, FWCandidatePtrProxyBuilder, FWGenParticleLegoProxyBuilder, FWSecVertexProxyBuilder, FWPFClusterRPZProxyBuilder, FWElectronLegoProxyBuilder, FWPFTrack3DProxyBuilder, FWPFTrackRPZProxyBuilder, FWBeamSpotOnlineProxyBuilder, FWL1EmParticleProxyBuilder, FWL1EtMissParticleProxyBuilder, FWL1JetParticleProxyBuilder, FWL1MuonParticleProxyBuilder, FWCSCRecHitProxyBuilder, FWMuonRhoPhiProxyBuilder, FWTrackingVertexProxyBuilder, FWBeamSpotProxyBuilder, FWTracksModulesProxyBuilder, FWTracksRecHitsProxyBuilder, FWMuonLegoProxyBuilder, FWSimVertexProxyBuilder, FWMuonGlimpseProxyBuilder, FWL1EtMissParticleGlimpseProxyBuilder, FWL1EtMissParticleLegoProxyBuilder, FWL1JetParticleLegoProxyBuilder, FWL1MuonParticleLegoProxyBuilder, FWMETGlimpseProxyBuilder, FWMETLegoProxyBuilder, FWPhotonLegoProxyBuilder, FWME0SegmentProxyBuilder, FWTrackTrackingRecHitProxyBuilder, FWCaloClusterProxyBuilder, FWHGCalMultiClusterProxyBuilder, and FWJetLegoProxyBuilder.

Definition at line 66 of file FWSimpleProxyBuilderTemplate.h.

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

Implements FWSimpleProxyBuilder.

Definition at line 57 of file FWSimpleProxyBuilderTemplate.h.

Referenced by FWSimpleProxyBuilderTemplate< TrajectorySeed >::buildViewType().

58  {
59  if(0!=iData) {
60  buildViewType(*reinterpret_cast<const T*> (iData), iIndex, oItemHolder, viewType, context);
61  }
62  }
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  
)
inlineprotectedvirtual

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

Definition at line 71 of file FWSimpleProxyBuilderTemplate.h.

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

Definition at line 46 of file FWSimpleProxyBuilderTemplate.h.

Referenced by FWSimpleProxyBuilderTemplate< TrajectorySeed >::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