21 #include "TGo4LockGuard.h"
46 if (obj==0)
return kFALSE;
48 if (!obj->InheritsFrom(TH1::Class()) &&
49 !obj->InheritsFrom(TGraph::Class()))
return kFALSE;
52 if (
fClone->InheritsFrom(TH1::Class()))
53 ((TH1*)
fClone)->SetDirectory(0);
55 if ((om!=0) && (
fClone!=0))
75 TNamed* src =
dynamic_cast<TNamed*
> (obj);
76 TNamed* tgt =
dynamic_cast<TNamed*
> (
fClone);
80 if ((tgt==0) || (src==0) || (padopt==0))
return;
81 TString title = src->GetTitle();
99 title.ReplaceAll(
";",
"#semicolon");
100 tgt->SetTitle(title.Data());
120 Error(
"Initialize",
" Problem in TGo4DrawCloneProxy");
154 Int_t rebinx(0), rebiny(0);
178 Int_t rebinx(0), rebiny(0);
184 if ((rebinx<2) && (rebiny<2))
return;
186 if (rebinx==0) rebinx = 1;
187 if (rebiny==0) rebiny = 1;
189 TH2* h2 =
dynamic_cast<TH2*
> (
fClone);
191 h2->Rebin2D(rebinx, rebiny);
195 TH1* h1 =
dynamic_cast<TH1*
> (
fClone);
196 if (h1!=0) h1->Rebin(rebinx);
virtual Bool_t ProcessEvent(TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param)
Bool_t GetIntPar(const char *name, Int_t &value)
Bool_t AssignClone(TObject *obj, TGo4Slot *slot)
void UnregisterObject(TObject *obj, TGo4Slot *slot)
void SetIntPar(const char *name, Int_t value)
void CleanupClone(TGo4Slot *slot)
virtual void Finalize(TGo4Slot *slot)
static Bool_t UpdateObjectContent(TObject *obj, TObject *newobj, Int_t *hasrebinx=0, Int_t *hasrebiny=0)
virtual void Initialize(TGo4Slot *slot)
void RegisterObjectWith(TObject *obj, TGo4Slot *slot)
TObject * GetAssignedObject()
virtual ~TGo4DrawCloneProxy()
virtual TObject * GetAssignedObject()
TGo4Slot * GetParent() const
static const char * ItemDate(TGo4Slot *slot)
virtual void Finalize(TGo4Slot *slot)
void ChangeTitle(TObject *obj)
void RemovePar(const char *name)
TGo4DrawCloneProxy(TGo4Slot *slot, TGo4ViewPanel *panel)
virtual TGo4Picture * GetPadOptions(TPad *pad)
static const char * GetLinkedName(TGo4Slot *slot)
virtual void Initialize(TGo4Slot *slot)
virtual TObject * GetAssignedObject()
virtual void RecursiveRemove(TObject *obj)
TGo4Slot * GetLink() const
virtual Bool_t ProcessEvent(TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param)
Bool_t IsTitleDate() const
virtual Bool_t RemoveRegisteredObject(TObject *obj)
virtual TGo4ObjectManager * GetOM() const
Bool_t IsTitleItem() const
Bool_t IsTitleTime() const
static const char * ItemTime(TGo4Slot *slot)