21 #include "TGo4LockGuard.h" 46 if (!obj)
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(
nullptr);
75 TNamed *src =
dynamic_cast<TNamed*
> (obj);
76 TNamed *tgt =
dynamic_cast<TNamed*
> (
fClone);
80 if (!tgt || !src || !padopt)
return;
81 TString title = src->GetTitle();
99 title.ReplaceAll(
";",
"#semicolon");
100 tgt->SetTitle(title.Data());
120 Error(
"Initialize",
" Problem in TGo4DrawCloneProxy");
153 Int_t rebinx = 0, rebiny = 0;
177 Int_t rebinx = 0, rebiny = 0;
183 if ((rebinx<2) && (rebiny<2))
return;
185 if (rebinx == 0) rebinx = 1;
186 if (rebiny == 0) rebiny = 1;
188 TH2 *h2 =
dynamic_cast<TH2 *
> (
fClone);
190 h2->Rebin2D(rebinx, rebiny);
194 TH1 *h1 =
dynamic_cast<TH1 *
> (
fClone);
195 if (h1) h1->Rebin(rebinx);
Bool_t GetIntPar(const char *name, Int_t &value) const
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)
Bool_t IsTitleTime() const
void Initialize(TGo4Slot *slot) override
void RegisterObjectWith(TObject *obj, TGo4Slot *slot)
TObject * GetAssignedObject() override
Bool_t ProcessEvent(TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param) override
static Bool_t UpdateObjectContent(TObject *obj, TObject *newobj, Int_t *hasrebinx=nullptr, Int_t *hasrebiny=nullptr)
TObject * GetAssignedObject()
virtual ~TGo4DrawCloneProxy()
void Finalize(TGo4Slot *slot) override
TGo4Slot * GetParent() const
static const char * ItemDate(TGo4Slot *slot)
void ChangeTitle(TObject *obj)
Bool_t RemoveRegisteredObject(TObject *obj) override
void RemovePar(const char *name)
Bool_t IsTitleItem() const
TGo4DrawCloneProxy(TGo4Slot *slot, TGo4ViewPanel *panel)
virtual TGo4Picture * GetPadOptions(TPad *pad)
static const char * GetLinkedName(TGo4Slot *slot)
void RecursiveRemove(TObject *obj) override
void Initialize(TGo4Slot *slot) override
void Finalize(TGo4Slot *slot) override
virtual TGo4ObjectManager * GetOM() const
TObject * GetAssignedObject() override
Bool_t ProcessEvent(TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param) override
static const char * ItemTime(TGo4Slot *slot)
TGo4Slot * GetLink() const
Bool_t IsTitleDate() const