64 bool isany_special =
false;
67 for (
auto p = str; *p; ++p) {
68 if ((*p < 32) || (*p > 126) || (*p ==
';') || (*p ==
'\'') || (*p ==
'\"') || (*p ==
'%')) {
75 return std::string(
"t") + str;
78 std::string oper(
"h");
79 static const char *digits =
"0123456789abcdef";
80 for (
auto p = str; *p; ++p) {
81 unsigned code = (unsigned)*p;
82 oper.append(1, digits[(code >> 4) & 0xF]);
83 oper.append(1, digits[code & 0xF]);
const Float_t * GetArray() const
void Set(Int_t n)
Set size of this array to n floats.
Fill Area Attributes class.
virtual Color_t GetFillColor() const
Return the fill area color.
virtual Style_t GetFillStyle() const
Return the fill area style.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual Color_t GetLineColor() const
Return the line color.
virtual Width_t GetLineWidth() const
Return the line width.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual Style_t GetLineStyle() const
Return the line style.
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
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.
The color creation and management class.
const char * Data() const
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
void AddColor(Int_t indx, TColor *col)
Add custom color to operations.
TWebPainting()
Constructor.
void AddTextAttr(const TAttText &attr)
Store text attributes If attributes were not changed - ignore operation.
TAttMarker fLastMarker
! last marker attributes
void AddMarkerAttr(const TAttMarker &attr)
Store marker attributes If attributes were not changed - ignore operation.
void AddLineAttr(const TAttLine &attr)
Store line attributes If attributes were not changed - ignore operation.
static std::string MakeTextOper(const char *str)
Create text operation If text include special symbols - use simple hex coding.
Int_t fSize
list of operations, separated by semicolons
TAttFill fLastFill
! last fill attributes
void AddOper(const std::string &oper)
Add next custom operator to painting Operations are separated by semicolons Following operations are ...
Float_t * Reserve(Int_t sz)
Reserve place in the float buffer Returns pointer on first element in reserved area.
TAttLine fLastLine
array of points for all operations
void AddFillAttr(const TAttFill &attr)
Store fill attributes If attributes were not changed - ignore operation.
Short_t Max(Short_t a, Short_t b)