41 void SetStatusText(
const char *
txt,
Int_t pi);
47void MyMainFrame::DoDraw()
60 y[i] = 10*sin(
x[i]+0.2);
61 printf(
" i %i %f %f \n",i,
x[i],
y[i]);
75 c1->GetFrame()->SetFillColor(21);
76 c1->GetFrame()->SetBorderSize(12);
81void MyMainFrame::DoExit()
83 printf(
"Exit application...");
87void MyMainFrame::SetStatusText(
const char *
txt,
Int_t pi)
90 fStatusBar->SetText(
txt,pi);
100 SetStatusText(
text0,0);
102 SetStatusText(
text1,1);
107 SetStatusText(
text2,2);
109 SetStatusText(
text3,3);
117 Int_t wid = fEcan->GetCanvasWindowId();
119 fEcan->AdoptCanvas(
myc);
120 myc->Connect(
"ProcessedEvent(Int_t,Int_t,Int_t,TObject*)",
"MyMainFrame",
this,
121 "EventInfo(Int_t,Int_t,Int_t,TObject*)");
128 fStatusBar->SetParts(
parts, 4);
129 fStatusBar->Draw3DCorner(
kFALSE);
136 draw->Connect(
"Clicked()",
"MyMainFrame",
this,
"DoDraw()");
139 exit->Connect(
"Pressed()",
"MyMainFrame",
this,
"DoExit()");
145 SetWindowName(
"Embedded Canvas Status Info");
149 Resize(GetDefaultSize());
156MyMainFrame::~MyMainFrame()
#define ClassDefOverride(name, id)
R__EXTERN TApplication * gApplication
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 wid
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
A composite frame that layout their children in horizontal way.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Provides a StatusBar widget.
Yield an action as soon as it is clicked.
ROOT GUI Window base class.
A TGraph is an object made of two arrays X and Y with npoints each.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
TAxis * GetXaxis() const
Get x axis of the graph.
TAxis * GetYaxis() const
Get y axis of the graph.
void SetTitle(const char *title="") override
Change (i.e.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Mother of all ROOT objects.
This class creates a TGCanvas in which a TCanvas is created.