105 TView *view =
gPad->GetView();
141 out,
Class(),
"annotation",
148 out <<
" annotation->SetNDC();\n";
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
char Char_t
Character 1 byte (char).
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
void PaintAnnotation(Double_t x, Double_t y, Double_t z, Double_t angle, Double_t size, const Char_t *text)
TClass * IsA() const override
double fZ
Z position of text.
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save a primitive as a C++ statement(s) on output stream "out".
void ls(Option_t *option="") const override
The ls function lists the contents of a class on stdout.
virtual TAnnotation * DrawAnnotation(Double_t x, Double_t y, Double_t z, const char *text)
void Print(Option_t *option="") const override
This method must be overridden when a class wants to print itself.
void Paint(Option_t *option="") override
This method must be overridden if a class wants to paint itself.
virtual void SaveLineAttributes(std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
virtual Float_t GetTextSize() const
Return the text size.
virtual Short_t GetTextAlign() const
Return the text alignment.
virtual Font_t GetTextFont() const
Return the text font.
virtual Color_t GetTextColor() const
Return the text color.
virtual Float_t GetTextAngle() const
Return the text angle.
void Copy(TAttText &atttext) const
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)
@ kTextNDC
The text position is in NDC coordinates.
virtual void PaintLatex(Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Bool_t TestBit(UInt_t f) const
virtual void AppendPad(Option_t *option="")
Append graphics object to current pad.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
static void SavePrimitiveDraw(std::ostream &out, const char *variable_name, Option_t *option=nullptr)
Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static void SavePrimitiveConstructor(std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
Save object constructor in the output stream "out".
@ kCanDelete
if object in a list can be deleted
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Double_t fY
Y position of text (left,center,etc..).
virtual void SetNDC(Bool_t isNDC=kTRUE)
Double_t fX
X position of text (left,center,etc..).
virtual void WCtoNDC(const Float_t *pw, Float_t *pn)=0