#include <TGo4Marker.h>
Public Methods | |
TGo4Marker () | |
TGo4Marker (Double_t x, Double_t y, Int_t style) | |
virtual | ~TGo4Marker () |
virtual void | Print (Option_t *opt="") const |
Implement standard root print. More... | |
void | PrintMarker (Option_t *opt="") |
If option is "go4log", print to TGo4Log::Message. More... | |
virtual void | Paint (Option_t *opt="") |
Display marker with plain root canvas and in go4 viewpanel. More... | |
virtual void | Draw (Option_t *opt="") |
Draw this marker on current pad. More... | |
virtual void | UnDraw (Option_t *opt="") |
Erase view of this marker from the pad. More... | |
virtual TGo4MarkerPainter * | CreatePainter () |
Factory method to generate (optional subclass) implementation for painter. More... | |
void | SetVisible (Bool_t on) |
Bool_t | IsVisible () |
virtual void | SetName (const char *name) |
void | DeleteMarker () |
void | SetToBin (Int_t xbin, Int_t ybin=0) |
Set marker to position according to work histogram axis. More... | |
void | SetLabelDraw (Bool_t on) |
Bool_t | HasLabel () |
void | SetLineDraw (Bool_t on) |
Bool_t | HasConnector () |
void | SetXDraw (Bool_t on) |
Bool_t | IsXDraw () |
void | SetYDraw (Bool_t on) |
Bool_t | IsYDraw () |
void | SetXbinDraw (Bool_t on) |
Bool_t | IsXbinDraw () |
void | SetYbinDraw (Bool_t on) |
Bool_t | IsYbinDraw () |
void | SetContDraw (Bool_t on) |
Bool_t | IsContDraw () |
void | SaveLabelStyle () |
This will save draw flags into static default setup. More... | |
void | ResetLabel () |
Will reset label position to defaults. More... | |
void | InitLabelStyle () |
Initialize label setup from static default variables. More... | |
void | SetHistogram (TH1 *histo) |
TH1 * | GetHistogram () |
void | SetPadHistogram (TVirtualPad *pad) |
Set first histogram found in pad as working histogram. More... | |
virtual const char * | GetName () const |
TMarker is not TNamed, so we implement name ourself. More... | |
Int_t | GetXbin () |
Deliver x axis bin number of work histogram at marker position. More... | |
Int_t | GetYbin () |
Deliver y axis bin number of work histogram at marker position. More... | |
Int_t | GetCont () |
Deliver bin content of work histogram at marker position. More... | |
Double_t | GetLabelX () |
Calculate initial label coordinate from marker position. More... | |
Double_t | GetLabelY () |
Calculate initial label coordinate from marker position. More... | |
TVirtualPad * | GetDrawPad () |
Bool_t | CheckDrawPad () |
True if current draw pad is still exisiting. More... | |
Bool_t | CheckHistogram () |
True if current histogram is still exisiting. More... | |
Static Public Methods | |
Int_t | GetInstances () |
Static Public Attributes | |
Bool_t | fgbHASLABEL = kTRUE |
default setting for all markers of label on/off flag. More... | |
Bool_t | fgbHASCONNECTOR = kTRUE |
default setting for all markers of connector line flag. More... | |
Bool_t | fgbXDRAW = kTRUE |
default setting for all markers of xdraw flag. More... | |
Bool_t | fgbYDRAW = kTRUE |
default setting for all markers of ydraw flag. More... | |
Bool_t | fgbXBINDRAW = kFALSE |
default setting for all markers of xbindraw flag. More... | |
Bool_t | fgbYBINDRAW = kFALSE |
default setting for all markers of ybindraw flag. More... | |
Bool_t | fgbCONTDRAW = kTRUE |
default setting for all markers of bin content flag. More... | |
Protected Methods | |
void | SetPainted (Bool_t on) |
Bool_t | IsPainted () |
void | SetDrawPad (TVirtualPad *pad) |
Protected Attributes | |
TGo4MarkerPainter * | fxPainter |
Painter instance to display the condition in root pad. More... | |
Private Attributes | |
TString | fxName |
since TMarker is not TNamed, we provide identifier string here:. More... | |
Bool_t | fbIsPainted |
Flag to prevent Paint() method to redraw marker views after UnDraw. More... | |
Bool_t | fbVisible |
Visibility of this marker on pad. More... | |
Bool_t | fbHasLabel |
Switch marker label on or off. More... | |
Bool_t | fbHasConnector |
Switch connectionline between marker and label on or off. More... | |
Bool_t | fbXDraw |
If true, draw corresponding value as label on working pad. More... | |
Bool_t | fbYDraw |
If true, draw corresponding value as label on working pad. More... | |
Bool_t | fbXbinDraw |
If true, draw corresponding value as label on working pad. More... | |
Bool_t | fbYbinDraw |
If true, draw corresponding value as label on working pad. More... | |
Bool_t | fbContDraw |
If true, draw corresponding value as label on working pad. More... | |
TH1 * | fxHisto |
Reference to currently used histogram (for bin contents). More... | |
TVirtualPad * | fxDrawPad |
Remember last pad used for Draw. More... | |
Static Private Attributes | |
UInt_t | fguInstanceCounter = 0 |
use this counter for automatic naming and coloring. More... |
Offers coordinate label updated from pad. Scans work histogram for bin numbers and contents.
Definition at line 34 of file TGo4Marker.h.
|
Definition at line 48 of file TGo4Marker.cxx. References InitLabelStyle(). |
|
Definition at line 37 of file TGo4Marker.cxx. References fguInstanceCounter, fxName, and InitLabelStyle(). |
|
Definition at line 58 of file TGo4Marker.cxx. References fguInstanceCounter, fxPainter, and UnDraw(). |
|
Implement standard root print. If option is "go4log", print to TGo4Log::Message. Otherwise use cout Definition at line 235 of file TGo4Marker.cxx. References PrintMarker(). |
|
If option is "go4log", print to TGo4Log::Message. Otherwise use cout Definition at line 246 of file TGo4Marker.cxx. References GetCont(), GetHistogram(), GetName(), GetXbin(), GetYbin(), and TGo4Log::Message(). Referenced by Print(). |
|
Display marker with plain root canvas and in go4 viewpanel.
Definition at line 109 of file TGo4Marker.cxx. References CheckHistogram(), CreatePainter(), fxPainter, GetDrawPad(), IsPainted(), IsVisible(), TGo4MarkerPainter::PaintLabel(), SetDrawPad(), SetPadHistogram(), and SetPainted(). |
|
Draw this marker on current pad.
Definition at line 126 of file TGo4Marker.cxx. References IsVisible(), SetDrawPad(), SetPainted(), and UnDraw(). Referenced by TGo4PreviewPanelSlots::AddMarker(), TGo4PreviewPanelSlots::MouseClick(), TGo4PreviewPanelSlots::RedrawAllLabels(), and TGo4PreviewPanelSlots::SetMarkerSetup(). |
|
Erase view of this marker from the pad.
Definition at line 143 of file TGo4Marker.cxx. References CreatePainter(), fxPainter, SetDrawPad(), SetPainted(), and TGo4MarkerPainter::UnPaintLabel(). Referenced by Draw(), and ~TGo4Marker(). |
|
Factory method to generate (optional subclass) implementation for painter.
Definition at line 165 of file TGo4Marker.cxx. References GetName(), and TGo4MarkerPainter::SetMarker(). |
|
Definition at line 59 of file TGo4Marker.h. References fbVisible. |
|
Definition at line 60 of file TGo4Marker.h. References fbVisible. |
|
Definition at line 61 of file TGo4Marker.h. References fxName. |
|
Definition at line 240 of file TGo4Marker.cxx. |
|
Set marker to position according to work histogram axis.
Definition at line 172 of file TGo4Marker.cxx. References CheckHistogram(), and fxHisto. |
|
Definition at line 66 of file TGo4Marker.h. References fbHasLabel. |
|
Definition at line 67 of file TGo4Marker.h. References fbHasLabel. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Definition at line 68 of file TGo4Marker.h. References fbHasConnector. |
|
Definition at line 69 of file TGo4Marker.h. References fbHasConnector. Referenced by TGo4MarkerPainter::PaintConnector(). |
|
Definition at line 70 of file TGo4Marker.h. References fbXDraw. |
|
Definition at line 71 of file TGo4Marker.h. References fbXDraw. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Definition at line 72 of file TGo4Marker.h. References fbYDraw. |
|
Definition at line 73 of file TGo4Marker.h. References fbYDraw. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Definition at line 74 of file TGo4Marker.h. References fbXbinDraw. |
|
Definition at line 75 of file TGo4Marker.h. References fbXbinDraw. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Definition at line 76 of file TGo4Marker.h. References fbYbinDraw. |
|
Definition at line 77 of file TGo4Marker.h. References fbYbinDraw. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Definition at line 78 of file TGo4Marker.h. References fbContDraw. |
|
Definition at line 79 of file TGo4Marker.h. References fbContDraw. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
This will save draw flags into static default setup.
Definition at line 278 of file TGo4Marker.cxx. References fbContDraw, fbHasConnector, fbHasLabel, fbXbinDraw, fbXDraw, fbYbinDraw, fbYDraw, fgbCONTDRAW, fgbHASCONNECTOR, fgbHASLABEL, fgbXBINDRAW, fgbXDRAW, fgbYBINDRAW, and fgbYDRAW. |
|
Will reset label position to defaults.
Definition at line 300 of file TGo4Marker.cxx. References fxPainter, TGo4MarkerPainter::PaintLabel(), and TGo4MarkerPainter::UnPaintLabel(). |
|
Initialize label setup from static default variables.
Definition at line 289 of file TGo4Marker.cxx. References fbContDraw, fbHasConnector, fbHasLabel, fbXbinDraw, fbXDraw, fbYbinDraw, fbYDraw, fgbCONTDRAW, fgbHASCONNECTOR, fgbHASLABEL, fgbXBINDRAW, fgbXDRAW, fgbYBINDRAW, and fgbYDRAW. Referenced by TGo4Marker(). |
|
Definition at line 86 of file TGo4Marker.cxx. References fxHisto. Referenced by TGo4PreviewPanelSlots::MouseClick(), TGo4PreviewPanelSlots::SetMarkerSetup(), TGo4PreviewPanelSlots::SetMarkersHistogram(), and SetPadHistogram(). |
|
Definition at line 91 of file TGo4Marker.h. References fxHisto. Referenced by PrintMarker(). |
|
Set first histogram found in pad as working histogram. For standalone markers outside go4 viewpanel. Definition at line 153 of file TGo4Marker.cxx. References SetHistogram(). Referenced by Paint(). |
|
TMarker is not TNamed, so we implement name ourself.
Definition at line 98 of file TGo4Marker.h. References fxName. Referenced by CreatePainter(), TGo4PreviewPanelSlots::GetActiveMarkerName(), TGo4MarkerPainter::PaintLabel(), and PrintMarker(). |
|
Deliver x axis bin number of work histogram at marker position.
Definition at line 192 of file TGo4Marker.cxx. References CheckDrawPad(), CheckHistogram(), fxDrawPad, and fxHisto. Referenced by GetCont(), TGo4MarkerPainter::PaintLabel(), and PrintMarker(). |
|
Deliver y axis bin number of work histogram at marker position.
Definition at line 199 of file TGo4Marker.cxx. References CheckDrawPad(), CheckHistogram(), fxDrawPad, and fxHisto. Referenced by GetCont(), TGo4MarkerPainter::PaintLabel(), and PrintMarker(). |
|
Deliver bin content of work histogram at marker position.
Definition at line 207 of file TGo4Marker.cxx. References CheckDrawPad(), CheckHistogram(), fxHisto, GetXbin(), and GetYbin(). Referenced by TGo4MarkerPainter::PaintLabel(), and PrintMarker(). |
|
Calculate initial label coordinate from marker position.
Definition at line 215 of file TGo4Marker.cxx. References CheckDrawPad(), and fxDrawPad. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Calculate initial label coordinate from marker position.
Definition at line 223 of file TGo4Marker.cxx. References CheckDrawPad(), and fxDrawPad. Referenced by TGo4MarkerPainter::PaintLabel(). |
|
Definition at line 112 of file TGo4Marker.h. References fguInstanceCounter. Referenced by TGo4PreviewPanelSlots::MouseClick(). |
|
Definition at line 114 of file TGo4Marker.h. References fxDrawPad. Referenced by TGo4PreviewPanelSlots::ClearAllLabels(), TGo4PreviewPanelSlots::CreateMarkerSetup(), Paint(), TGo4PreviewPanelSlots::RedrawAllLabels(), and TGo4PreviewPanelSlots::SetMarkersHistogram(). |
|
True if current draw pad is still exisiting.
Definition at line 73 of file TGo4Marker.cxx. References fxDrawPad. Referenced by GetCont(), GetLabelX(), GetLabelY(), GetXbin(), and GetYbin(). |
|
True if current histogram is still exisiting.
Definition at line 94 of file TGo4Marker.cxx. References fxHisto. Referenced by GetCont(), GetXbin(), GetYbin(), Paint(), and SetToBin(). |
|
Definition at line 150 of file TGo4Marker.h. References fbIsPainted. |
|
Definition at line 151 of file TGo4Marker.h. References fbIsPainted. Referenced by Paint(). |
|
Definition at line 65 of file TGo4Marker.cxx. References fxDrawPad. |
|
default setting for all markers of label on/off flag.
Definition at line 28 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
default setting for all markers of connector line flag.
Definition at line 29 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
default setting for all markers of xdraw flag.
Definition at line 30 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
default setting for all markers of ydraw flag.
Definition at line 31 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
default setting for all markers of xbindraw flag.
Definition at line 32 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
default setting for all markers of ybindraw flag.
Definition at line 33 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
default setting for all markers of bin content flag.
Definition at line 34 of file TGo4Marker.cxx. Referenced by TGo4MainWindow::init(), InitLabelStyle(), SaveLabelStyle(), and TGo4MainWindow::saveOptions(). |
|
Painter instance to display the condition in root pad. To be used in Paint() which is called on TPad::Update automatically for all TObjects appended to the pad. Definition at line 148 of file TGo4Marker.h. Referenced by Paint(), ResetLabel(), UnDraw(), and ~TGo4Marker(). |
|
since TMarker is not TNamed, we provide identifier string here:.
Definition at line 159 of file TGo4Marker.h. Referenced by GetName(), SetName(), and TGo4Marker(). |
|
Flag to prevent Paint() method to redraw marker views after UnDraw. Problem with Paint() called from ROOT event loop. Definition at line 163 of file TGo4Marker.h. Referenced by IsPainted(), and SetPainted(). |
|
Visibility of this marker on pad. For marker array in editor Definition at line 166 of file TGo4Marker.h. Referenced by IsVisible(), and SetVisible(). |
|
Switch marker label on or off.
Definition at line 169 of file TGo4Marker.h. Referenced by HasLabel(), InitLabelStyle(), SaveLabelStyle(), and SetLabelDraw(). |
|
Switch connectionline between marker and label on or off.
Definition at line 172 of file TGo4Marker.h. Referenced by HasConnector(), InitLabelStyle(), SaveLabelStyle(), and SetLineDraw(). |
|
If true, draw corresponding value as label on working pad.
Definition at line 175 of file TGo4Marker.h. Referenced by InitLabelStyle(), IsXDraw(), SaveLabelStyle(), and SetXDraw(). |
|
If true, draw corresponding value as label on working pad.
Definition at line 178 of file TGo4Marker.h. Referenced by InitLabelStyle(), IsYDraw(), SaveLabelStyle(), and SetYDraw(). |
|
If true, draw corresponding value as label on working pad.
Definition at line 181 of file TGo4Marker.h. Referenced by InitLabelStyle(), IsXbinDraw(), SaveLabelStyle(), and SetXbinDraw(). |
|
If true, draw corresponding value as label on working pad.
Definition at line 184 of file TGo4Marker.h. Referenced by InitLabelStyle(), IsYbinDraw(), SaveLabelStyle(), and SetYbinDraw(). |
|
If true, draw corresponding value as label on working pad.
Definition at line 187 of file TGo4Marker.h. Referenced by InitLabelStyle(), IsContDraw(), SaveLabelStyle(), and SetContDraw(). |
|
Reference to currently used histogram (for bin contents).
Definition at line 190 of file TGo4Marker.h. Referenced by CheckHistogram(), GetCont(), GetHistogram(), GetXbin(), GetYbin(), SetHistogram(), and SetToBin(). |
|
Remember last pad used for Draw. Needed for condition editor to prevent displaying marker on pad other than the working pad. Definition at line 194 of file TGo4Marker.h. Referenced by CheckDrawPad(), GetDrawPad(), GetLabelX(), GetLabelY(), GetXbin(), GetYbin(), and SetDrawPad(). |
|
use this counter for automatic naming and coloring.
Definition at line 26 of file TGo4Marker.cxx. Referenced by GetInstances(), TGo4Marker(), and ~TGo4Marker(). |