92 text.TText::Copy(*
this);
100 src.TText::Copy(*
this);
115 *
reinterpret_cast<std::wstring*
>(((
TText&)obj).fWcsTitle) = *
reinterpret_cast<const std::wstring*
>(
fWcsTitle);
117 delete reinterpret_cast<std::wstring*
>(((
TText&)obj).fWcsTitle);
118 ((
TText&)obj).fWcsTitle =
nullptr;
133 return reinterpret_cast<std::wstring *
>(
fWcsTitle)->c_str();
146 if (!
gPad)
return 9999;
251 if (!
gPad->IsEditable())
return;
317 if (
dtheta<0) theta = -theta;
319 if (theta<0) theta += 360;
320 if (right) {theta = theta+180;
if (theta>=360) theta -= 360;}
328 case 1 :
ax = px1;
ay = py1;
break;
354 if (Size<4) Size = 4;
366 if (resize)
gPad->ShowGuidelines(
this, event,
't',
false);
367 if ((!resize)&&(!
turn))
gPad->ShowGuidelines(
this, event,
'i',
true);
368 gPad->ShowGuidelines(
this, event, !resize&!
turn);
384 gPad->ShowGuidelines(
this, event, !resize&!
turn);
407 event =
gVirtualX->RequestLocator(1, 1, px, py);
436 case 1 : Dx = 0 ;
break;
437 case 2 : Dx =
cBoxW/2;
break;
438 case 3 : Dx =
cBoxW ;
break;
441 case 1 :
Dy = 0 ;
break;
460 for (
int i=0; i<4 ; i++) {
498 for (
Int_t i=1; i<4; i++) {
721 case 1 :
ix = 0 ;
iy = 0 ;
break;
722 case 2 :
ix = 0 ;
iy = 1 ;
break;
723 case 3 :
ix = 1 ;
iy = 1 ;
break;
728 case 1 :
ix = 0 ;
iy = 3 ;
break;
729 case 2 :
ix = 0 ;
iy = 2 ;
break;
730 case 3 :
ix = 1 ;
iy = 2 ;
break;
735 case 1 :
ix = 3 ;
iy = 3 ;
break;
736 case 2 :
ix = 2 ;
iy = 3 ;
break;
737 case 3 :
ix = 2 ;
iy = 2 ;
break;
811 out<<
"text = new TText("<<
fX<<
","<<
fY<<
","<<
quote<<s<<
quote<<
");"<<std::endl;
813 out<<
" text->SetNDC();"<<std::endl;
817 out<<
" text->Draw();"<<std::endl;
837 for (
size_t i = 0; i <
length; i++) {
851 if (
R__b.IsReading()) {
884 case 1 : Dx = 0 ;
break;
885 case 2 : Dx =
w/2 ;
break;
886 case 3 : Dx =
w ;
break;
889 case 1 :
Dy =
h ;
break;
890 case 2 :
Dy =
h/2 ;
break;
891 case 3 :
Dy = 0 ;
break;
895 if (!
gPad)
return BBox;
909 if (!
gPad)
return (
p);
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 SetTextSize
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 length
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 Atom_t Atom_t Time_t UChar_t len
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint angle
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint DrawText
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
Option_t Option_t TPoint TPoint const char y1
Abstract base class for elements drawn in the editor.
virtual Float_t GetTextSize() const
Return the text size.
virtual void Modify()
Change current text attributes if necessary.
virtual Short_t GetTextAlign() const
Return the text alignment.
virtual Font_t GetTextFont() const
Return the text font.
Float_t fTextAngle
Text angle.
virtual Color_t GetTextColor() const
Return the text color.
virtual void Streamer(TBuffer &)
virtual void SetTextAngle(Float_t tangle=0)
Set the text angle.
virtual Float_t GetTextAngle() const
Return the text angle.
Font_t fTextFont
Text font.
virtual void SaveTextAttributes(std::ostream &out, const char *name, Int_t alidef=12, Float_t angdef=0, Int_t coldef=1, Int_t fondef=61, Float_t sizdef=1)
Save text attributes as C++ statement(s) on output stream out.
Short_t fTextAlign
Text alignment.
void Copy(TAttText &atttext) const
Copy this text attributes to a new TAttText.
Float_t fTextSize
Text size.
Buffer base class used for serializing objects.
The TNamed class is the base class for all named ROOT classes.
void Copy(TObject &named) const override
Copy this to obj.
void Streamer(TBuffer &) override
Stream an object of class TObject.
const char * GetTitle() const override
Returns title of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
@ kCanDelete
if object in a list can be deleted
@ kMustCleanup
if object destructor must call RecursiveRemove()
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
TString & ReplaceSpecialCppChars()
Find special characters which are typically used in printf() calls and replace them by appropriate es...
static void SetKerning(Bool_t state)
Set kerning flag.
static Bool_t IsInitialized()
static void GetTextAdvance(UInt_t &a, char *text)
Get advance (a) when text is horizontal.
static Bool_t GetKerning()
static void SetTextFont(Font_t fontnumber)
Set specified font.
static void GetTextExtent(UInt_t &w, UInt_t &h, char *text)
Get width (w) and height (h) when text is horizontal.
static const FT_BBox & GetBox()
static void SetTextSize(Float_t textsize)
Set current text size.
Base class for several text objects.
Double_t fY
Y position of text (left,center,etc..)
const void * GetWcsTitle(void) const
Returns the text as UNICODE.
void SetBBoxCenter(const TPoint &p) override
Set the point given by Alignment as 'center'.
Rectangle_t GetBBox() override
Return the "bounding Box" of the Box.
void Copy(TObject &text) const override
Copy this text to text.
TText & operator=(const TText &src)
Assignment operator.
@ kTextNDC
The text position is in the NDC space.
virtual void GetBoundingBox(UInt_t &w, UInt_t &h, Bool_t angle=kFALSE)
Return text size in pixels.
virtual void SetY(Double_t y)
virtual void PaintControlBox(Int_t x, Int_t y, Double_t theta)
Paint the text control box.
virtual TText * DrawText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
void * fWcsTitle
!Used by TMathText
Double_t fX
X position of text (left,center,etc..)
~TText() override
Text default destructor.
virtual void PaintTextNDC(Double_t u, Double_t v, const char *text)
Draw this text with new coordinates in NDC.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save primitive as a C++ statement(s) on output stream out.
void ls(Option_t *option="") const override
List this text with its attributes.
virtual void PaintText(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates.
void SetBBoxY2(const Int_t) override
Set bottom of BoundingBox to a value (resize in y direction on bottom)
virtual void GetTextExtent(UInt_t &w, UInt_t &h, const char *text) const
Return text extent for string text.
virtual void GetTextAscentDescent(UInt_t &a, UInt_t &d, const char *text) const
Return text ascent and descent for string text.
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to a string.
TPoint GetBBoxCenter() override
Return the point given by Alignment as 'center'.
virtual void SetX(Double_t x)
virtual void GetTextAdvance(UInt_t &a, const char *text, const Bool_t kern=kTRUE) const
Return text advance for string text if kern is true (default) kerning is taken into account.
void Paint(Option_t *option="") override
Paint this text with its current attributes.
void SetBBoxCenterY(const Int_t y) override
Set Y coordinate of the point given by Alignment as 'center'.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.
void Print(Option_t *option="") const override
Dump this text with its attributes.
void SetBBoxY1(const Int_t) override
Set top of BoundingBox to a value (resize in y direction on top)
virtual void GetControlBox(Int_t x, Int_t y, Double_t theta, Int_t cBoxX[4], Int_t cBoxY[4])
Return the text control box.
void SetBBoxX2(const Int_t) override
Set right hand side of BoundingBox to a value (resize in x direction on right)
void SetBBoxCenterX(const Int_t x) override
Set X coordinate of the point given by Alignment as 'center'.
void SetBBoxX1(const Int_t) override
Set left hand side of BoundingBox to a value (resize in x direction on left)
void Streamer(TBuffer &) override
Stream an object of class TText.
virtual TText * DrawTextNDC(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates in NDC.
virtual void SetMbTitle(const wchar_t *title=L"")
Change (i.e. set) the title of the TNamed.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
Double_t ACos(Double_t)
Returns the principal value of the arc cosine of x, expressed in radians.
Bool_t IsInside(T xp, T yp, Int_t np, T *x, T *y)
Function which returns kTRUE if point xp,yp lies inside the polygon defined by the np points in array...
Double_t ASin(Double_t)
Returns the principal value of the arc sine of x, expressed in radians.
Double_t Sqrt(Double_t x)
Returns the square root of x.
Double_t Cos(Double_t)
Returns the cosine of an angle of x radians.
Double_t Sin(Double_t)
Returns the sine of an angle of x radians.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
Rectangle structure (maps to the X11 XRectangle structure)