Changeset 5498 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 11/28/04 20:06:04 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r5307 r5498 761 761 // -------------------------------------------------------------------------- 762 762 // 763 // Returns j-th pad of the i-th Tab. 764 // Sets the pad to fill an entire window. 765 // 766 // This function can be used if single pad's out of an MStatusDisplay 767 // have to be stored to file. 768 // 769 // ATTENTION: This function modifies the requested tab in MStatusDisplay itself! 770 // 771 TVirtualPad *MStatusDisplay::GetFullPad(const Int_t i, const Int_t j) 772 { 773 774 TVirtualPad *vpad = GetCanvas(i)->GetPad(j); 775 if (vpad) 776 vpad->SetPad(0.,0.,1.,1.); 777 else 778 *fLog << warn << "MStatusDisplay::GetFullPad: Pad is out of range." << endl; 779 780 return vpad; 781 } 782 783 784 785 // -------------------------------------------------------------------------- 786 // 763 787 // Searches for a TRootEmbeddedCanvas in the TGCompositeFramme of the 764 788 // Tab with the name 'name'. Returns the corresponding TCanvas or -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.h
r3825 r5498 159 159 TCanvas *GetCanvas(int i) const; 160 160 TCanvas *GetCanvas(const TString &name) const; 161 161 TVirtualPad *GetFullPad(const Int_t canvas, const Int_t pad); 162 162 163 Int_t Read(const char *name="MStatusDisplay"); 163 164 Int_t Write(const char *name="MStatusDisplay", Int_t option=0, Int_t bufsize=0)
Note:
See TracChangeset
for help on using the changeset viewer.