Changeset 2411
- Timestamp:
- 10/20/03 17:54:03 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParContainer.cc
r2410 r2411 584 584 } 585 585 586 // -------------------------------------------------------------------------- 587 // 588 // DrawTS which is a thread safe version of Draw. Draw 589 // are also overwritten to call DrawTS. Please overwrite 590 // the TS version of the member function if you want to implement 591 // Draw for your class. Classes which overwrites Draw instead 592 // should work well, too, except in multithreaded environments like Mona. 593 // 594 // The static version maybe called dor any TObject. For you class it is 595 // called with a pointer to 'this' object. 596 // 586 597 void MParContainer::DrawTS(TObject *obj, TVirtualPad *pad, Option_t *option) 587 598 { … … 616 627 } 617 628 629 // -------------------------------------------------------------------------- 630 // 631 // DrawCloneTS which is a thread safe version of DrawClone. DrawClone 632 // are also overwritten to call DrawCloneTS. Please overwrite 633 // the TS version of the member function if you want to implement 634 // DrawClone for your class. Classes which overwrites DrawClone instead 635 // should work well, too, except in multithreaded environments like Mona 636 // 637 // The static version maybe called dor any TObject. For you class it is 638 // called with a pointer to 'this' object. 639 // 618 640 TObject *MParContainer::DrawCloneTS(const TObject *obj, TVirtualPad *pad, Option_t *option) 619 641 { -
trunk/MagicSoft/Mars/mbase/MParContainer.h
r2219 r2411 129 129 const char *GetEnvValue(const TEnv &env, TString prefix, const char *dflt) const; 130 130 131 static void DrawTS(TObject *obj, TVirtualPad *pad=NULL, Option_t *option=""); 132 virtual void DrawTS(TVirtualPad *pad=NULL, Option_t *option="") 133 { 134 DrawTS(this, pad, option); 135 } 136 void Draw(Option_t *option="") { DrawTS(NULL, option); } 137 138 static TObject *DrawCloneTS(const TObject *obj, TVirtualPad *pad=NULL, Option_t *option=""); 139 virtual TObject *DrawCloneTS(TVirtualPad *pad=NULL, Option_t *option="") const 140 { 141 return DrawCloneTS(this, pad, option); 142 } 143 TObject *DrawClone(Option_t *option="") const 144 { 145 return DrawCloneTS(NULL, option); 146 } 147 131 148 ClassDef(MParContainer, 0) //The basis for all parameter containers 132 149 }; -
trunk/MagicSoft/Mars/mgui/MCamEvent.h
r2229 r2411 12 12 public: 13 13 virtual Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const = 0; 14 virtual void DrawPixelContent(Int_t num ) const = 0;14 virtual void DrawPixelContent(Int_t num, TVirtualPad *pad=NULL) const = 0; 15 15 16 16 ClassDef(MCamEvent, 0) // A camera event
Note:
See TracChangeset
for help on using the changeset viewer.