CMS 3D CMS Logo

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 >

List of all members.

Public Member Functions

 FWSimpleProxyBuilderTemplate ()

Protected Member Functions

const TmodelData (int index)

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

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.

                                  :
      FWSimpleProxyBuilder(typeid(T)) {
   }
template<typename T>
FWSimpleProxyBuilderTemplate< T >::FWSimpleProxyBuilderTemplate ( const FWSimpleProxyBuilderTemplate< T > &  ) [private]

Member Function Documentation

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

Implements FWSimpleProxyBuilder.

Definition at line 53 of file FWSimpleProxyBuilderTemplate.h.

   {
      if(0!=iData) {
         build(*reinterpret_cast<const T*> (iData), iIndex, oItemHolder, context);
      }
   }
template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::build ( const T iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
const FWViewContext  
) [inline, private, virtual]

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

Definition at line 69 of file FWSimpleProxyBuilderTemplate.h.

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

Implements FWSimpleProxyBuilder.

Definition at line 60 of file FWSimpleProxyBuilderTemplate.h.

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

   {
      if(0!=iData) {
         buildViewType(*reinterpret_cast<const T*> (iData), iIndex, oItemHolder, viewType, context);
      }
   }
template<typename T>
virtual void FWSimpleProxyBuilderTemplate< T >::buildViewType ( const T iData,
unsigned int  iIndex,
TEveElement &  oItemHolder,
FWViewType::EType  viewType,
const FWViewContext  
) [inline, private, virtual]

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

Definition at line 74 of file FWSimpleProxyBuilderTemplate.h.

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

Definition at line 46 of file FWSimpleProxyBuilderTemplate.h.

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

{ return *reinterpret_cast<const T*>(m_helper.offsetObject(item()->modelData(index))); }
template<typename T>
const FWSimpleProxyBuilderTemplate& FWSimpleProxyBuilderTemplate< T >::operator= ( const FWSimpleProxyBuilderTemplate< T > &  ) [private]