| v2.10-0 (21000JUN2005) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extended graphical marker class for go4 condition editor and
viewpanel. Offers coordinate label updated from pad. Scans
work histogram for bin numbers and contents.
Field Summary | |
private Bool_t | fbContDraw If true, draw corresponding value as label on working pad |
private Bool_t | fbHasConnector Switch connectionline between marker and label on or off. |
private Bool_t | fbHasLabel Switch marker label on or off. |
private Bool_t | fbIsPainted Flag to prevent Paint() method to redraw marker views after UnDraw. |
private Bool_t | fbVisible Visibility of this marker on pad. |
private Bool_t | fbXbinDraw If true, draw corresponding value as label on working pad |
private Bool_t | fbXDraw If true, draw corresponding value as label on working pad |
private Bool_t | fbYbinDraw If true, draw corresponding value as label on working pad |
private Bool_t | fbYDraw If true, draw corresponding value as label on working pad |
static Bool_t | fgbCONTDRAW default setting for all markers of bin content flag. |
static Bool_t | fgbHASCONNECTOR default setting for all markers of connector line flag. |
static Bool_t | fgbHASLABEL default setting for all markers of label on/off flag. |
static Bool_t | fgbXBINDRAW default setting for all markers of xbindraw flag. |
static Bool_t | fgbXDRAW default setting for all markers of xdraw flag. |
static Bool_t | fgbYBINDRAW default setting for all markers of ybindraw flag. |
static Bool_t | fgbYDRAW default setting for all markers of ydraw flag. |
private static UInt_t | fguInstanceCounter use this counter for automatic naming and coloring |
private TVirtualPad* | fxDrawPad Remember last pad used for Draw. |
private TH1* | fxHisto Reference to currently used histogram (for bin contents). |
private TString | fxName since TMarker is not TNamed, we provide identifier string here: |
protected TGo4MarkerPainter* | fxPainter Painter instance to display the condition in root pad. |
Fields inherited from class TMarker |
fX, fY |
Fields inherited from class TAttMarker |
fMarkerColor, fMarkerStyle, fMarkerSize |
Constructor Summary | |
TGo4Marker() | |
TGo4Marker(Double_t x, Double_t y, Int_t style) |
Destructor Summary | |
virtual synchronized | ~TGo4Marker() |
Method Summary | |
Bool_t | CheckDrawPad() True if current draw pad is still exisiting |
Bool_t | CheckHistogram() True if current histogram is still exisiting |
virtual TGo4MarkerPainter* | CreatePainter() Factory method to generate (optional subclass) implementation for painter |
void | DeleteMarker() |
virtual void | Draw(Option_t* opt) Draw this marker on current pad |
Int_t | GetCont() Deliver bin content of work histogram at marker position |
TVirtualPad* | GetDrawPad() |
TH1* | GetHistogram() |
static Int_t | GetInstances() |
Double_t | GetLabelX() Calculate initial label coordinate from marker position |
Double_t | GetLabelY() Calculate initial label coordinate from marker position |
virtual const const char * | GetName() TMarker is not TNamed, so we implement name ourself |
Int_t | GetXbin() Deliver x axis bin number of work histogram at marker position |
Int_t | GetYbin() Deliver y axis bin number of work histogram at marker position |
Bool_t | HasConnector() |
Bool_t | HasLabel() |
void | InitLabelStyle() Initialize label setup from static default variables |
Bool_t | IsContDraw() |
protected Bool_t | IsPainted() |
Bool_t | IsVisible() |
Bool_t | IsXbinDraw() |
Bool_t | IsXDraw() |
Bool_t | IsYbinDraw() |
Bool_t | IsYDraw() |
virtual void | Paint(Option_t* opt) Display marker with plain root canvas and in go4 viewpanel |
virtual const void | Print(Option_t* opt) Implement standard root print. |
void | PrintMarker(Option_t* opt) If option is "go4log", print to TGo4Log::Message. |
void | ResetLabel() Will reset label position to defaults |
void | SaveLabelStyle() This will save draw flags into static default setup |
void | SetContDraw(Bool_t on) |
protected void | SetDrawPad(TVirtualPad* pad) |
void | SetHistogram(TH1* histo) |
void | SetLabelDraw(Bool_t on) |
void | SetLineDraw(Bool_t on) |
virtual void | SetName(const char * name) |
void | SetPadHistogram(TVirtualPad* pad) Set first histogram found in pad as working histogram. |
protected void | SetPainted(Bool_t on) |
void | SetToBin(Int_t xbin, Int_t ybin) Set marker to position according to work histogram axis. |
void | SetVisible(Bool_t on) |
void | SetXbinDraw(Bool_t on) |
void | SetXDraw(Bool_t on) |
void | SetYbinDraw(Bool_t on) |
void | SetYDraw(Bool_t on) |
virtual void | UnDraw(Option_t* opt) Erase view of this marker from the pad |
Methods inherited from class TMarker |
Copy, DistancetoPrimitive, DrawMarker, ExecuteEvent, GetX, GetY, ls, PaintMarker, PaintMarkerNDC, SavePrimitive, SetX, SetY, DisplayMarkerTypes, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine |
Methods inherited from class TAttMarker |
Copy, GetMarkerColor, GetMarkerStyle, GetMarkerSize, Modify, ResetAttMarker, SaveMarkerAttributes, SetMarkerAttributes, SetMarkerColor, SetMarkerStyle, SetMarkerSize |
Field Detail |
private Bool_t fbContDraw
private Bool_t fbHasConnector
private Bool_t fbHasLabel
private Bool_t fbIsPainted
private Bool_t fbVisible
private Bool_t fbXbinDraw
private Bool_t fbXDraw
private Bool_t fbYbinDraw
private Bool_t fbYDraw
public static Bool_t fgbCONTDRAW
public static Bool_t fgbHASCONNECTOR
public static Bool_t fgbHASLABEL
public static Bool_t fgbXBINDRAW
public static Bool_t fgbXDRAW
public static Bool_t fgbYBINDRAW
public static Bool_t fgbYDRAW
private static UInt_t fguInstanceCounter
private TVirtualPad* fxDrawPad
private TH1* fxHisto
private TString fxName
protected TGo4MarkerPainter* fxPainter
Constructor Detail |
public TGo4Marker()
public TGo4Marker(Double_t x, Double_t y, Int_t style)
Method Detail |
public virtual synchronized ~TGo4Marker()
Method Detail |
public Bool_t CheckDrawPad()
public Bool_t CheckHistogram()
public virtual TGo4MarkerPainter* CreatePainter()
public void DeleteMarker()
public virtual void Draw(Option_t* opt)
public Int_t GetCont()
public TVirtualPad* GetDrawPad()
public TH1* GetHistogram()
public static Int_t GetInstances()
public Double_t GetLabelX()
public Double_t GetLabelY()
public virtual const const char * GetName()
public Int_t GetXbin()
public Int_t GetYbin()
public Bool_t HasConnector()
public Bool_t HasLabel()
public void InitLabelStyle()
public Bool_t IsContDraw()
protected Bool_t IsPainted()
public Bool_t IsVisible()
public Bool_t IsXbinDraw()
public Bool_t IsXDraw()
public Bool_t IsYbinDraw()
public Bool_t IsYDraw()
public virtual void Paint(Option_t* opt)
public virtual const void Print(Option_t* opt)
public void PrintMarker(Option_t* opt)
public void ResetLabel()
public void SaveLabelStyle()
public void SetContDraw(Bool_t on)
protected void SetDrawPad(TVirtualPad* pad)
public void SetHistogram(TH1* histo)
public void SetLabelDraw(Bool_t on)
public void SetLineDraw(Bool_t on)
public virtual void SetName(const char * name)
public void SetPadHistogram(TVirtualPad* pad)
protected void SetPainted(Bool_t on)
public void SetToBin(Int_t xbin, Int_t ybin)
public void SetVisible(Bool_t on)
public void SetXbinDraw(Bool_t on)
public void SetXDraw(Bool_t on)
public void SetYbinDraw(Bool_t on)
public void SetYDraw(Bool_t on)
public virtual void UnDraw(Option_t* opt)
Association Links |
to Class TH1
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |