00001 #include "TkrRecon/TkrRecObjsRep.h" 00002 00003 //------------------------------------------------------------------------------ 00006 00007 //############################################################################# 00008 TkrRecObjsRep::TkrRecObjsRep(SiRecObjs** ppObjs) 00009 //############################################################################# 00010 { 00011 ppRecObjs = ppObjs; 00012 } 00013 //-------------------- private ---------------------- 00014 //############################################## 00015 void TkrRecObjsRep::update() 00016 //############################################## 00017 { 00018 SiRecObjs* pRecObjs = *ppRecObjs; 00019 00020 //Zero out the pointer so we don't accidentally try to draw the event 00021 *ppRecObjs = 0; 00022 00023 //Now see if we can do the drawing 00024 if (pRecObjs) 00025 { 00026 gui::DisplayRep* pDisplay = this; 00027 // pRecObjs->update(*pDisplay); 00028 00029 int nGammas = pRecObjs->numGammas(); 00030 while(nGammas--) 00031 { 00032 GFgamma* pGamma = pRecObjs->Gamma(nGammas); 00033 00034 pGamma->draw(*pDisplay); 00035 } 00036 00037 int nTracks = pRecObjs->numParticles(); 00038 while(nTracks--) 00039 { 00040 GFparticle* pTrack = pRecObjs->Particle(nTracks); 00041 00042 pTrack->draw(*pDisplay); 00043 } 00044 } 00045 00046 return; 00047 }
1.2.3 written by Dimitri van Heesch,
© 1997-2000