350 gROOT->GetListOfCleanups()->Add(
this);
661 gROOT->GetListOfCleanups()->Remove(
this);
678 fTitle->
Connect(
"TextChanged(const char *)",
"TH2Editor",
this,
"DoTitle(const char *)");
683 fAddArr->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddArr(Bool_t)");
684 fAddBox->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddBox(Bool_t)");
685 fAddCol->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddCol(Bool_t)");
686 fAddScat->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddScat(Bool_t)");
687 fAddText->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddText(Bool_t)");
688 fAddError->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddError(Bool_t)");
691 fAddFB->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddFB()");
692 fAddBB->
Connect(
"Toggled(Bool_t)",
"TH2Editor",
this,
"DoAddBB()");
695 this,
"DoContLevel()");
698 this,
"DoContLevel1()");
701 this,
"DoBarWidth()");
704 this,
"DoBarOffset()");
713 fApply->
Connect(
"Clicked()",
"TH2Editor",
this,
"DoApply()");
729 fSliderX->
Connect(
"PositionChanged()",
"TH2Editor",
this,
"DoSliderXMoved()");
731 fSliderX->
Connect(
"Released()",
"TH2Editor",
this,
"DoSliderXReleased()");
732 fSldXMin->
Connect(
"ReturnPressed()",
"TH2Editor",
this,
"DoXAxisRange()");
733 fSldXMax->
Connect(
"ReturnPressed()",
"TH2Editor",
this,
"DoXAxisRange()");
734 fSliderY->
Connect(
"PositionChanged()",
"TH2Editor",
this,
"DoSliderYMoved()");
736 fSliderY->
Connect(
"Released()",
"TH2Editor",
this,
"DoSliderYReleased()");
737 fSldYMin->
Connect(
"ReturnPressed()",
"TH2Editor",
this,
"DoYAxisRange()");
738 fSldYMax->
Connect(
"ReturnPressed()",
"TH2Editor",
this,
"DoYAxisRange()");
739 fFrameColor->
Connect(
"ColorSelected(Pixel_t)",
"TH2Editor",
this,
"DoFillColor(Pixel_t)");
740 fFramePattern->
Connect(
"PatternSelected(Style_t)",
"TH2Editor",
this,
"DoFillPattern(Style_t)");
752 ((
TH2*)obj)->GetEntries() == 0)) {
817 }
else if (!str.Contains(
"LEGO") && !str.Contains(
"SURF")) {
827 if (str.Contains(
"CONT")){
832 else if (str.Contains(
"CONT0") || str.Contains(
"CONT"))
842 if (str.Contains(
"SCAT")) {
850 if (str.Contains(
"COL") || (str.Contains(
"CONT") &&
851 !str.Contains(
"CONT2") && !str.Contains(
"CONT3"))) {
859 }
else if (str.Contains(
"LEGO") || str.Contains(
"SURF")) {
905 if (str.Contains(
"E")){
907 if (str.Contains(
"LEGO"))
909 if (str.Contains(
"TEXT"))
951 if (str.Contains(
"LEGO2") || str.Contains(
"SURF1") ||
952 str.Contains(
"SURF2") || str.Contains(
"SURF3") ||
1003 while (
divx[i] !=
nx) i ++;
1089 if (str==
"" || str==
"SCAT" || str==
fCutString) {
1130 if (str.Contains(
"LEGO2") || str.Contains(
"SURF1") ||
1131 str.Contains(
"SURF2") || str.Contains(
"SURF3") ||
1132 str.Contains(
"SURF5")) {
1167 if (str==
"" || str==
"SCAT" || str==
fCutString) {
1212 if (str.Contains(
"LEGO2") || str.Contains(
"SURF1") ||
1213 str.Contains(
"SURF2") || str.Contains(
"SURF3") ||
1214 str.Contains(
"SURF5"))
1239 if (!str.Contains(
"ARR")) {
1246 if (str.Contains(
"ARR")) {
1247 str.Remove(
strstr(str.Data(),
"ARR")-str.Data(),3);
1248 if (str==
"" || str==
"SCAT" || str==
fCutString) {
1271 if (!str.Contains(
"BOX")) {
1278 if (str.Contains(
"BOX")) {
1279 str.Remove(
strstr(str.Data(),
"BOX")-str.Data(),3);
1280 if (str==
"" || str==
"SCAT" || str==
fCutString) {
1303 if (!str.Contains(
"COL")) {
1313 if (str.Contains(
"COL")) {
1314 str.Remove(
strstr(str.Data(),
"COL")-str.Data(),3);
1319 if (str.Contains(
"Z"))
1320 str.Remove(
strstr(str.Data(),
"Z")-str.Data(),1);
1322 if (str==
"" || str==
"SCAT" || str==
fCutString)
1346 if (!str.Contains(
"SCAT")) {
1351 if (str.Contains(
"SCAT")) {
1352 str.Remove(
strstr(str.Data(),
"SCAT")-str.Data(),4);
1372 if (!str.Contains(
"TEXT")) {
1379 if (str.Contains(
"TEXT")) {
1380 str.Remove(
strstr(str.Data(),
"TEXT")-str.Data(),4);
1381 if (str==
"" || str==
"SCAT" || str==
fCutString)
1404 if (str.Contains(
"LEGO"))
1406 if (str.Contains(
"TEXT"))
1409 if (!
dum.Contains(
"E")) {
1414 if (str.Contains(
"E")) {
1439 if (!str.Contains(
"Z")) {
1445 if (str.Contains(
"Z")) {
1446 str.Remove(
strstr(str.Data(),
"Z")-str.Data(),1);
1466 if (str.Contains(
"FB")) {
1467 if (str.Contains(
"SURF") && !(str.Contains(
"1") ||
1468 str.Contains(
"2") || str.Contains(
"3") ||
1469 str.Contains(
"4") || str.Contains(
"5"))) {
1472 if (
dum.Contains(
"FB"))
1475 }
else str.Remove(
strstr(str.Data(),
"FB")-str.Data(),2);
1479 if (!str.Contains(
"FB")) {
1500 if (str.Contains(
"BB")) {
1501 if (str.Contains(
"FB")) {
1506 }
else str.Remove(
strstr(str.Data(),
"BB")-str.Data(),2);
1510 if (!str.Contains(
"BB")) {
1645 "TH2Editor",
"It is not possible to rebin the histogram",
1679 if (
nx < 1 ||
ny < 1)
return;
1760 if (
nx < 2 ||
ny < 2)
return;
1766 for (i = 2; i <=
divx[0]; i++) {
1773 for (i = 2; i <=
divy[0]; i++) {
1802 "TH2 Editor",
"Replace origin histogram with rebinned one?",
1915 ((
TH2*)
player->GetHistogram())->Reset();
1967 xaxis->GetBinWidth(1));
1969 yaxis->GetBinWidth(1));
2047 ((
TH2*)
player->GetHistogram())->Reset();
2147 ((
TH2*)
player->GetHistogram())->Reset();
2215 ((
TH2*)
player->GetHistogram())->Reset();
2280 ((
TH2*)
player->GetHistogram())->Reset();
2317 Int_t px1,py1,px2,py2;
2369 for (
Int_t i = 0; i<3; i++){
2504 Int_t px1,py1,px2,py2;
2556 for (
Int_t i = 0; i<3; i++) {
2715 case (-1) : {s =
"";
break;}
2740 case (-1) : {s =
"";
break;}
2758 case (-1) : {s =
"";
break;}
2760 case (
kCONT_0) : {s =
"CONT0";
break;}
2761 case (
kCONT_1) : {s =
"CONT1";
break;}
2762 case (
kCONT_2) : {s =
"CONT2";
break;}
2763 case (
kCONT_3) : {s =
"CONT3";
break;}
2764 case (
kCONT_4) : {s =
"CONT4";
break;}
2842 lb->Resize(
lb->GetWidth(), 83);
2884 }
else if (
n == 1) {
2893 for (
Int_t i=2; i <=
n/2; i++) {
ULong_t Pixel_t
Pixel value.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char text
Class to manage histogram axis.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Int_t GetLast() const
Return last bin on the axis i.e.
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis using bin numbers.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
Int_t GetFirst() const
Return first bin on the axis i.e.
virtual void Selected(TVirtualPad *pad, TObject *obj, Int_t event)
Emit Selected() signal.
TClass instances represent classes, structs and namespaces in the ROOT type system.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual Int_t GetSelected() const
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
Dragging the slider will generate the event:
virtual Float_t GetMaxPosition() const
virtual Float_t GetMinPosition() const
virtual void SetRange(Float_t min, Float_t max)
virtual void SetPosition(Float_t min, Float_t max)
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
virtual UInt_t GetDefaultHeight() const
Bool_t Contains(Int_t x, Int_t y) const
Concrete class for horizontal slider.
void Resize(UInt_t w, UInt_t h) override
Resize the frame.
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
This class handles GUI labels.