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]);
120 std::to_string((
int)
attr.GetLineColor()) +
":" +
121 std::to_string((
int)
attr.GetLineStyle()) +
":" +
122 std::to_string((
int)
attr.GetLineWidth()));
137 std::to_string((
int)
attr.GetFillColor()) +
":" +
138 std::to_string((
int)
attr.GetFillStyle()));
148 std::to_string((
int)
attr.GetTextColor()) +
":" +
149 std::to_string((
int)
attr.GetTextFont()) +
":" +
150 std::to_string((
int) (
attr.GetTextSize()>=1 ?
attr.GetTextSize() : -1000*
attr.GetTextSize())) +
":" +
151 std::to_string((
int)
attr.GetTextAlign()) +
":" +
152 std::to_string((
int)
attr.GetTextAngle()));
168 std::to_string((
int)
attr.GetMarkerColor()) +
":" +
169 std::to_string((
int)
attr.GetMarkerStyle()) +
":" +
170 std::to_string((
int)
attr.GetMarkerSize()));
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 attr
const Float_t * GetArray() const
void Set(Int_t n) override
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.
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
! filled buffer size
TAttFill fLastFill
! last fill attributes
std::string fOper
list of operations, separated by semicolons
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.
TArrayF fBuf
array of points for all operations
TAttLine fLastLine
! last line attributes
void AddFillAttr(const TAttFill &attr)
Store fill attributes If attributes were not changed - ignore operation.
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.