13#pragma optimize("",off)
116 Warning(
"Open",
"TeX file already open");
130 ww *=
gPad->GetWNDC();
159 PrintStr(
"\\documentclass{standalone}@");
161 PrintStr(
"\\usetikzlibrary{patterns,plotmarks}@");
164 PrintStr(
"%\\documentclass{standalone}@");
166 PrintStr(
"%\\usetikzlibrary{patterns,plotmarks}@");
213 Error(
"On",
"no TeX file open");
250 PrintStr(
"\\draw [color=c, fill=c");
293 PrintStr(
", draw=none, pattern color=c");
355 Warning(
"DrawFrame",
"not yet implemented");
370 Warning(
"DrawPolyLine",
"not yet implemented");
385 Warning(
"DrawPolyLineNDC",
"not yet implemented");
394 Int_t markerSize = 0;
395 std::vector<TPoint>
points;
397 if ((shape ==
kShapeDot) && (markerSize > 1))
423 for (std::size_t i = 0; i <
points.size(); i++)
431 PrintStr(
"\\pgfusepathqfillstroke@");
434 for (std::size_t i = 0; i <
points.size(); i++)
441 for (std::size_t i = 0; i <
points.size(); i++)
445 PrintStr(
"\\pgfusepathqfillstroke@");
459 for (
Int_t i = 0; i <
n; i++) {
472 PrintStr(
"}{\\draw[mark options={color=c");
484 if (!
do_fill && (markerLineWidth > 0))
488 PrintStr(
"] plot coordinates {\\P};}");
521 Error(
"DrawPS",
"Two points are needed");
608 PrintStr(
", draw=none, pattern color=c");
650 PrintStr(
"\\def\\CheckTikzLibraryLoaded#1{ \\ifcsname tikz@library@#1@loaded\\endcsname \\else \\PackageWarning{tikz}{usetikzlibrary{#1} is missing in the preamble.} \\fi }@");
651 PrintStr(
"\\CheckTikzLibraryLoaded{patterns}@");
652 PrintStr(
"\\CheckTikzLibraryLoaded{plotmarks}@");
726 if (color < 0) color = 0;
901 Warning(
"CellArrayBegin",
"not yet implemented");
909 Warning(
"CellArrayFill",
"not yet implemented");
917 Warning(
"CellArrayEnd",
"not yet implemented");
925 Warning(
"DrawPS",
"not yet implemented");
short Style_t
Style number (short)
int Int_t
Signed integer 4 bytes (int)
short Color_t
Color number (short)
float Size_t
Attribute size (float)
short Width_t
Line width (short)
float Float_t
Float 4 bytes (float)
double Double_t
Double 8 bytes.
constexpr Ssiz_t kNPOS
The equivalent of std::string::npos for the ROOT class TString.
const char Option_t
Option string (const char)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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 r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
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 points
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TStyle * gStyle
R__EXTERN TVirtualPS * gVirtualPS
Style_t fFillStyle
Fill area style.
Color_t fFillColor
Fill area color.
Width_t fLineWidth
Line width.
Style_t fLineStyle
Line style.
Color_t fLineColor
Line color.
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual Color_t GetMarkerColor() const
Return the marker color.
Color_t fMarkerColor
Marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
EMarkerShape GetMarkerShape(Int_t &sz, std::vector< TPoint > &points, Float_t scale=1., UInt_t flags=0) const
Return marker shape.
static Width_t GetMarkerLineWidth(Style_t style)
Internal helper function that returns the line width of the given marker style (0 = filled marker)
TAttMarker()
TAttMarker default constructor.
Size_t fMarkerSize
Marker size.
Color_t fTextColor
Text color.
Float_t fTextAngle
Text angle.
Short_t fTextAlign
Text alignment.
Float_t fTextSize
Text size.
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
const char * GetTitle() const override
Returns title of object.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
2-D graphics point (world coordinates).
Int_t Atoi() const
Return integer value of string.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
TString & Prepend(const char *cs)
TString & Append(const char *cs)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
const char * GetLineStyleString(Int_t i=1) const
Return line style string (used by PostScript).
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
Float_t GetLineScalePS() const
void CellArrayFill(Int_t r, Int_t g, Int_t b) override
Paint the Cell Array.
void SetLineStyle(Style_t linestyle=1) override
Change the line style.
void SetLineScale(Float_t scale=1)
std::map< Style_t, bool > fMarkers
map of already defined markers
void DrawPS(Int_t n, Float_t *xw, Float_t *yw) override
Not needed in TeX case.
void Close(Option_t *opt="") override
Close a TeX file.
void DrawPolyLineNDC(Int_t n, TPoints *uv)
Draw a PolyLine in NDC space.
void On()
Activate an already open TeX file.
void Open(const char *filename, Int_t type=-111) override
Open a TeX file.
Bool_t fStandalone
True when a TeX file should be standalone.
Bool_t fBoundingBox
True when the TeX header is printed.
Float_t fCurrentRed
Current Red component.
void TextUrl(Double_t x, Double_t y, const char *string, const char *url) override
Draw text with URL.
Float_t fXsize
Page size along X.
void SetLineWidth(Width_t linewidth=1) override
Set the lines width.
Float_t VtoTeX(Double_t v)
Convert V from NDC coordinate to TeX.
void NewPage() override
Start the TeX page. This function starts the tikzpicture environment.
Bool_t fRange
True when a range has been defined.
void SetFillColor(Color_t cindex=1) override
Set color index for fill areas.
~TTeXDump() override
Default TeX destructor.
void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t mode, Int_t border, Int_t dark, Int_t light) override
Draw a Frame around a box.
void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y) override
Paint PolyMarker.
void Range(Float_t xrange, Float_t yrange)
Set the range for the paper in centimetres.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
Draw a Box.
void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2) override
Begin the Cell Array painting.
void SetTextColor(Color_t cindex=1) override
Set color index for text.
void SetLineColor(Color_t cindex=1) override
Set color index for lines.
Float_t fCurrentAlpha
Current Alpha value.
void CellArrayEnd() override
End the Cell Array painting.
Float_t fLineScale
Line width scale factor.
void TextNDC(Double_t u, Double_t v, const char *string)
Write a string of characters in NDC.
Int_t fType
Workstation type used to know if the Tex is open.
void DrawPolyMarkerShape(Int_t n, T *xw, T *yw)
Paint PolyMarker.
Float_t UtoTeX(Double_t u)
Convert U from NDC coordinate to TeX.
Float_t YtoTeX(Double_t y)
Convert Y from world coordinate to TeX.
void DrawPolyLine(Int_t n, TPoints *xy)
Draw a PolyLine.
void Off()
Deactivate an already open TeX file.
TTeXDump()
Default TeX constructor.
Float_t fCurrentGreen
Current Green component.
Float_t fYsize
Page size along Y.
void Text(Double_t x, Double_t y, const char *string) override
Draw text.
void SetMarkerSize(Size_t msize=1) override
Set size for markers.
void SetColor(Int_t color=1)
Set color with its color index.
Float_t fCurrentBlue
Current Blue component.
Float_t XtoTeX(Double_t x)
Convert X from world coordinate to TeX.
void SetMarkerColor(Color_t cindex=1) override
Set color index for markers.
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
void CloseStream()
Close existing stream.
virtual void PrintStr(const char *string="")
Output the string str in the output buffer.
virtual void PrintFast(Int_t nch, const char *string="")
Fast version of Print.
Bool_t OpenStream(const char *fname, Bool_t binary=kFALSE)
Open output stream.
void ClearBuffer()
Clear content of internal buffer.
virtual void WriteReal(Float_t r, Bool_t space=kTRUE)
Write a Real number to the file.
int iterate(rng_state_t *X)
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.