Logo ROOT  
Reference Guide
TTeXDump.h
Go to the documentation of this file.
1// @(#)root/postscript:$Id$
2// Author: Olivier Couet
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TTeXDump
13#define ROOT_TTeXDump
14
15
16#include "TVirtualPS.h"
17
18class TPoints;
19
20class TTeXDump : public TVirtualPS {
21
22protected:
23 Float_t fXsize; ///< Page size along X
24 Float_t fYsize; ///< Page size along Y
25 Int_t fType; ///< Workstation type used to know if the Tex is open
26 Bool_t fBoundingBox; ///< True when the TeX header is printed
27 Bool_t fRange; ///< True when a range has been defined
28 Bool_t fStandalone; ///< True when a TeX file should be standalone
29 Float_t fCurrentRed; ///< Current Red component
30 Float_t fCurrentGreen; ///< Current Green component
31 Float_t fCurrentBlue; ///< Current Blue component
32 Float_t fCurrentAlpha; ///< Current Alpha value
33 Float_t fLineScale; ///< Line width scale factor
34
35
36public:
37 TTeXDump();
38 TTeXDump(const char *filename, Int_t type=-113);
39 virtual ~TTeXDump();
40
43 void CellArrayEnd();
44 void Close(Option_t *opt="");
45 Int_t CMtoTeX(Double_t u) {return Int_t(0.5 + 72*u/2.54);}
46 void DefineMarkers();
48 void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t yt,
49 Int_t mode, Int_t border, Int_t dark, Int_t light);
51 void DrawPolyLineNDC(Int_t n, TPoints *uv);
54 void DrawPS(Int_t n, Float_t *xw, Float_t *yw);
55 void DrawPS(Int_t n, Double_t *xw, Double_t *yw);
56 void NewPage();
57 void Off();
58 void On();
59 void Open(const char *filename, Int_t type=-111);
60 void Range(Float_t xrange, Float_t yrange);
61 void SetColor(Int_t color = 1);
65 void SetLineStyle(Style_t linestyle = 1);
66 void SetLineWidth(Width_t linewidth = 1);
67 void SetLineScale(Float_t scale=1) {fLineScale = scale;}
68 void SetMarkerSize( Size_t msize=1);
71 void Text(Double_t x, Double_t y, const char *string);
72 void Text(Double_t, Double_t, const wchar_t *){}
73 void TextNDC(Double_t u, Double_t v, const char *string);
74 void TextNDC(Double_t, Double_t, const wchar_t *){}
79
80 ClassDef(TTeXDump, 0); //Tex driver
81};
82
83#endif
short Style_t
Definition: RtypesCore.h:89
int Int_t
Definition: RtypesCore.h:45
short Color_t
Definition: RtypesCore.h:92
float Size_t
Definition: RtypesCore.h:96
short Width_t
Definition: RtypesCore.h:91
float Float_t
Definition: RtypesCore.h:57
double Double_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:335
Option_t Option_t cindex
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 filename
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 b
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 x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint xy
Option_t Option_t TPoint TPoint const char mode
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 WindowAttributes_t Float_t Float_t g
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 type
Option_t Option_t TPoint TPoint const char y1
2-D graphics point (world coordinates).
Definition: TPoints.h:19
Interface to TeX.
Definition: TTeXDump.h:20
void SetLineColor(Color_t cindex=1)
Set color index for lines.
Definition: TTeXDump.cxx:691
void Open(const char *filename, Int_t type=-111)
Open a TeX file.
Definition: TTeXDump.cxx:131
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)
Draw a Frame around a box.
Definition: TTeXDump.cxx:366
void Close(Option_t *opt="")
Close a TeX file.
Definition: TTeXDump.cxx:202
void SetLineScale(Float_t scale=1)
Definition: TTeXDump.h:67
void SetMarkerColor(Color_t cindex=1)
Set color index for markers.
Definition: TTeXDump.cxx:728
void DrawPolyLineNDC(Int_t n, TPoints *uv)
Draw a PolyLine in NDC space.
Definition: TTeXDump.cxx:397
void On()
Activate an already open TeX file.
Definition: TTeXDump.cxx:224
Bool_t fStandalone
True when a TeX file should be standalone.
Definition: TTeXDump.h:28
void Text(Double_t, Double_t, const wchar_t *)
Definition: TTeXDump.h:72
void DefineMarkers()
add additional pgfplotmarks
Definition: TTeXDump.cxx:934
Bool_t fBoundingBox
True when the TeX header is printed.
Definition: TTeXDump.h:26
Float_t fCurrentRed
Current Red component.
Definition: TTeXDump.h:29
Float_t fXsize
Page size along X.
Definition: TTeXDump.h:23
void SetLineWidth(Width_t linewidth=1)
Set the lines width.
Definition: TTeXDump.cxx:712
void CellArrayFill(Int_t r, Int_t g, Int_t b)
Paint the Cell Array.
Definition: TTeXDump.cxx:910
Float_t VtoTeX(Double_t v)
Convert V from NDC coordinate to TeX.
Definition: TTeXDump.cxx:874
void TextNDC(Double_t, Double_t, const wchar_t *)
Definition: TTeXDump.h:74
void SetMarkerSize(Size_t msize=1)
Set size for markers.
Definition: TTeXDump.cxx:720
Bool_t fRange
True when a range has been defined.
Definition: TTeXDump.h:27
void Range(Float_t xrange, Float_t yrange)
Set the range for the paper in centimetres.
Definition: TTeXDump.cxx:672
void CellArrayEnd()
End the Cell Array painting.
Definition: TTeXDump.cxx:918
void DrawPS(Int_t n, Float_t *xw, Float_t *yw)
Not needed in TeX case.
Definition: TTeXDump.cxx:926
Float_t fCurrentAlpha
Current Alpha value.
Definition: TTeXDump.h:32
virtual ~TTeXDump()
Default TeX destructor.
Definition: TTeXDump.cxx:194
void SetTextColor(Color_t cindex=1)
Set color index for text.
Definition: TTeXDump.cxx:777
Float_t fLineScale
Line width scale factor.
Definition: TTeXDump.h:33
void TextNDC(Double_t u, Double_t v, const char *string)
Write a string of characters in NDC.
Definition: TTeXDump.cxx:855
void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2)
Begin the Cell Array painting.
Definition: TTeXDump.cxx:901
Int_t fType
Workstation type used to know if the Tex is open.
Definition: TTeXDump.h:25
Int_t CMtoTeX(Double_t u)
Definition: TTeXDump.h:45
Float_t UtoTeX(Double_t u)
Convert U from NDC coordinate to TeX.
Definition: TTeXDump.cxx:865
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw a Box.
Definition: TTeXDump.cxx:248
void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y)
Paint PolyMarker.
Definition: TTeXDump.cxx:405
Float_t YtoTeX(Double_t y)
Convert Y from world coordinate to TeX.
Definition: TTeXDump.cxx:892
void DrawPolyLine(Int_t n, TPoints *xy)
Draw a PolyLine.
Definition: TTeXDump.cxx:382
void Text(Double_t x, Double_t y, const char *string)
Draw text.
Definition: TTeXDump.cxx:789
void SetFillColor(Color_t cindex=1)
Set color index for fill areas.
Definition: TTeXDump.cxx:683
void Off()
Deactivate an already open TeX file.
Definition: TTeXDump.cxx:240
TTeXDump()
Default TeX constructor.
Definition: TTeXDump.cxx:85
Float_t fCurrentGreen
Current Green component.
Definition: TTeXDump.h:30
Float_t fYsize
Page size along Y.
Definition: TTeXDump.h:24
void SetColor(Int_t color=1)
Set color with its color index.
Definition: TTeXDump.cxx:736
Float_t fCurrentBlue
Current Blue component.
Definition: TTeXDump.h:31
Float_t XtoTeX(Double_t x)
Convert X from world coordinate to TeX.
Definition: TTeXDump.cxx:883
void SetLineStyle(Style_t linestyle=1)
Change the line style.
Definition: TTeXDump.cxx:704
void NewPage()
Start the TeX page. This function starts the tikzpicture environment.
Definition: TTeXDump.cxx:648
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
Definition: TVirtualPS.h:30
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
const Int_t n
Definition: legend1.C:16
#define H(x, y, z)