Report problems to ATLAS LXR Team (with time and IP address indicated)

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: linux ]
Version: head ] [ nightly ] [ GaudiDev ]
  Links to LXR source navigation pages for stable releases [ 12.*.* ]   [ 13.*.* ]   [ 14.*.* ]   [ 15.*.* ] 

001 #include "AbstractGrid.h"
002 
003 AbstractGrid::AbstractGrid(void):
004         m_bIsDrawn(false)
005 {
006 }
007 
008 AbstractGrid::~AbstractGrid(void)
009 {
010 //      std::vector<TLine*>::const_iterator it = m_vGridLines.begin();

011 //      for(;it!=m_vGridLines.end();++it) {

012 //              delete *it;

013 //      }

014 
015         TIter next(&m_lObjects);
016         while (TObject *obj = next()) {
017                 delete obj;
018         }
019 }
020 
021 void AbstractGrid::draw() {
022         if(!m_bIsDrawn) {
023 //              std::vector<TLine*>::const_iterator it = m_vGridLines.begin();

024 //              for(;it!=m_vGridLines.end();++it) {

025 //                      (*it)->Draw("same");

026 //              }

027 
028                 TIter next(&m_lObjects);
029                 while (TObject *obj = next()) {
030                         obj->Draw("lsame");
031                 }
032 
033                 m_pPad = (TPad*) gPad;
034                 m_bIsDrawn = true;
035         }
036 }
037 
038 void AbstractGrid::remove() {
039         if(m_bIsDrawn) {
040                 TList* li = m_pPad->GetListOfPrimitives();
041 //              std::vector<TLine*>::const_iterator it = m_vGridLines.begin();

042 //              for(;it!=m_vGridLines.end();++it) {

043 //                      li->Remove(*it);

044 //              }

045 
046                 TIter next(&m_lObjects);
047                 while (TObject *obj = next()) {
048                         li->Remove(obj);
049                 }
050 
051                 m_pPad = 0;
052                 m_bIsDrawn = false;
053         }
054 }
055 
056 void AbstractGrid::addObject(TObject* newObject) {
057         if(newObject) {
058                 //m_vGridLines.push_back(newLine);

059                 m_lObjects.Add(newObject);
060         }
061 }

source navigation ] diff markup ] identifier search ] general search ]

Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems
This page was automatically generated by the LXR engine. Valid HTML 4.01!