36 TGo4Marker(Double_t x, Double_t y, Int_t style);
41 void Print(Option_t *opt =
"")
const override;
44 void Paint(Option_t *opt =
"")
override;
47 void Draw(Option_t *opt =
"")
override;
50 virtual void UnDraw(Option_t *opt =
"");
56 void ExecuteEvent(Int_t event, Int_t px, Int_t py)
override;
69 void SetToBin(Int_t xbin, Int_t ybin = 0);
153 static void SetGlobalStyle(Bool_t HASLABEL, Bool_t HASCONNECTOR, Bool_t XDRAW, Bool_t YDRAW,
154 Bool_t XBINDRAW,Bool_t YBINDRAW,Bool_t CONTDRAW,
const char *NUMFORMAT);
156 static void GetGlobalStyle(Bool_t &HASLABEL, Bool_t &HASCONNECTOR, Bool_t &XDRAW, Bool_t &YDRAW,
157 Bool_t &XBINDRAW, Bool_t &YBINDRAW, Bool_t &CONTDRAW, TString &NUMFORMAT);
Int_t GetXbin() const
Deliver x axis bin number of work histogram at marker position.
Bool_t fbYbinDraw
If true, draw corresponding value as label on working pad.
TString fxNumFormat
format string for all label numbers.
TH1 * fxHisto
Reference to currently used histogram (for bin contents).
Bool_t CheckDrawPad() const
True if current draw pad is still existing.
Bool_t IsContDraw() const
static Bool_t fgbYBINDRAW
default setting for all markers of ybindraw flag.
static Bool_t fgbYDRAW
default setting for all markers of ydraw flag.
void SetToBin(Int_t xbin, Int_t ybin=0)
Set marker to position according to work histogram axis.
virtual void SetName(const char *name)
Bool_t fbXbinDraw
If true, draw corresponding value as label on working pad.
static Bool_t fgbCONTDRAW
default setting for all markers of bin content flag.
TVirtualPad * fxDrawPad
Remember last pad used for Draw.
static UInt_t fguInstanceCounter
use this counter for automatic naming and coloring
void SetVisible(Bool_t on)
void ResetLabel()
Will reset label position to defaults.
Bool_t IsYbinDraw() const
void InitLabelStyle()
Initialize label setup from static default variables.
void Print(Option_t *opt="") const override
Implement standard root print.
static Bool_t fgbXDRAW
default setting for all markers of xdraw flag.
void SaveLabelStyle()
This will save draw flags into static default setup.
Bool_t fbXDraw
If true, draw corresponding value as label on working pad.
TGo4MarkerPainter * fxPainter
Painter instance to display the condition in root pad.
Bool_t fbHasLabel
Switch marker label on or off.
void SetYbinDraw(Bool_t on)
Double_t GetLabelY() const
Calculate initial label coordinate from marker position.
static Bool_t fgbXBINDRAW
default setting for all markers of xbindraw flag.
const char * GetName() const override
TMarker is not TNamed, so we implement name ourself.
static Bool_t fgbHASLABEL
default setting for all markers of label on/off flag.
virtual TGo4MarkerPainter * CreatePainter()
Factory method to generate (optional subclass) implementation for painter.
void SetHistogram(TH1 *histo)
Bool_t fbVisible
Visibility of this marker on pad.
void SetXbinDraw(Bool_t on)
void SetNumFormat(const char *fmt="%.4E")
TVirtualPad * GetDrawPad() const
void Paint(Option_t *opt="") override
Display marker with plain root canvas and in go4 viewpanel.
Bool_t IsXbinDraw() const
static void SetGlobalStyle(Bool_t HASLABEL, Bool_t HASCONNECTOR, Bool_t XDRAW, Bool_t YDRAW, Bool_t XBINDRAW, Bool_t YBINDRAW, Bool_t CONTDRAW, const char *NUMFORMAT)
static Bool_t fgbHASCONNECTOR
default setting for all markers of connector line flag.
void SetLabelDraw(Bool_t on)
void SetContDraw(Bool_t on)
Int_t GetCont() const
Deliver bin content of work histogram at marker position.
static Int_t GetInstances()
Bool_t CheckHistogram() const
True if current histogram is still existing.
Int_t GetYbin() const
Deliver y axis bin number of work histogram at marker position.
const char * GetNumFormat() const
virtual void UnDraw(Option_t *opt="")
Erase view of this marker from the pad.
Bool_t fbYDraw
If true, draw corresponding value as label on working pad.
Bool_t fbHasConnector
Switch connection line between marker and label on or off.
Bool_t HasConnector() const
void SetDrawPad(TVirtualPad *pad)
void SetLineDraw(Bool_t on)
TH1 * GetHistogram() const
TString fxName
since TMarker is not TNamed, we provide identifier string here:
void Pop() override
Re-implement TObject method to pop all our views to front.
void SetXY(Double_t x, Double_t y)
static void GetGlobalStyle(Bool_t &HASLABEL, Bool_t &HASCONNECTOR, Bool_t &XDRAW, Bool_t &YDRAW, Bool_t &XBINDRAW, Bool_t &YBINDRAW, Bool_t &CONTDRAW, TString &NUMFORMAT)
Bool_t fbContDraw
If true, draw corresponding value as label on working pad.
void Draw(Option_t *opt="") override
Draw this marker on current pad.
void SetPainted(Bool_t on)
static TString fgxNUMFORMAT
default setting for all conditions with format string for numbers.
Bool_t fbIsPainted
Flag to prevent Paint() method to redraw marker views after UnDraw.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Reimplemented to pop our labels to front when selected.
Double_t GetLabelX() const
Calculate initial label coordinate from marker position.