12 #ifndef ROOT_TPostScript
13 #define ROOT_TPostScript
20 class TPostScript :
public TVirtualPS {
58 Float_t fMarkerSizeCur;
77 Int_t fNBSameColorCell;
81 static Int_t fgLineJoin;
85 TPostScript(
const char *filename, Int_t type=-111);
86 virtual ~TPostScript();
88 void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2,
89 Double_t y1, Double_t y2);
90 void CellArrayFill(Int_t r, Int_t g, Int_t b);
92 void Close(Option_t *opt=
"");
93 Int_t CMtoPS(Double_t u) {
return Int_t(0.5 + 72*u/2.54);}
95 void DrawBox(Double_t x1, Double_t y1,Double_t x2, Double_t y2);
96 void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t yt,
97 Int_t mode, Int_t border, Int_t dark, Int_t light);
98 void DrawHatch(Float_t dy, Float_t angle, Int_t n, Float_t *x,
100 void DrawHatch(Float_t dy, Float_t angle, Int_t n, Double_t *x,
102 void DrawPolyLine(Int_t n, TPoints *xy);
103 void DrawPolyLineNDC(Int_t n, TPoints *uv);
104 void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y);
105 void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y);
106 void DrawPS(Int_t n, Float_t *xw, Float_t *yw);
107 void DrawPS(Int_t n, Double_t *xw, Double_t *yw);
108 bool FontEmbedType1(
const char *filename);
109 bool FontEmbedType2(
const char *filename);
110 bool FontEmbedType42(
const char *filename);
117 void Open(
const char *filename, Int_t type=-111);
118 void SaveRestore(Int_t flag);
119 void SetFillColor( Color_t cindex=1);
120 void SetFillPatterns(Int_t ipat, Int_t color);
121 void SetLineColor( Color_t cindex=1);
122 void SetLineJoin(Int_t linejoin=0);
123 void SetLineStyle(Style_t linestyle = 1);
124 void SetLineWidth(Width_t linewidth = 1);
125 void SetLineScale(Float_t scale=3) {fLineScale = scale;}
126 void SetMarkerColor( Color_t cindex=1);
127 void SetTextColor( Color_t cindex=1);
128 void MovePS(Int_t x, Int_t y);
129 void Range(Float_t xrange, Float_t yrange);
130 void SetColor(Int_t color = 1);
131 void SetColor(Float_t r, Float_t g, Float_t b);
132 void Text(Double_t x, Double_t y,
const char *
string);
133 void Text(Double_t x, Double_t y,
const wchar_t *
string);
134 void TextNDC(Double_t u, Double_t v,
const char *
string);
135 void TextNDC(Double_t u, Double_t v,
const wchar_t *
string);
136 Int_t UtoPS(Double_t u);
137 Int_t VtoPS(Double_t v);
138 Int_t XtoPS(Double_t x);
139 Int_t YtoPS(Double_t y);
142 ClassDef(TPostScript,0)