File indexing completed on 2025-01-18 10:12:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TTeXDump
0013 #define ROOT_TTeXDump
0014
0015
0016 #include "TVirtualPS.h"
0017
0018 class TPoints;
0019
0020 class TTeXDump : public TVirtualPS {
0021
0022 protected:
0023 Float_t fXsize;
0024 Float_t fYsize;
0025 Int_t fType;
0026 Bool_t fBoundingBox;
0027 Bool_t fRange;
0028 Bool_t fStandalone;
0029 Float_t fCurrentRed;
0030 Float_t fCurrentGreen;
0031 Float_t fCurrentBlue;
0032 Float_t fCurrentAlpha;
0033 Float_t fLineScale;
0034
0035
0036 public:
0037 TTeXDump();
0038 TTeXDump(const char *filename, Int_t type=-113);
0039 ~TTeXDump() override;
0040
0041 void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2) override;
0042 void CellArrayFill(Int_t r, Int_t g, Int_t b) override;
0043 void CellArrayEnd() override;
0044 void Close(Option_t *opt="") override;
0045 Int_t CMtoTeX(Double_t u) { return Int_t(0.5 + 72*u/2.54); }
0046 void DefineMarkers();
0047 void DrawBox(Double_t x1, Double_t y1,Double_t x2, Double_t y2) override;
0048 void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t yt,
0049 Int_t mode, Int_t border, Int_t dark, Int_t light) override;
0050 void DrawPolyLine(Int_t n, TPoints *xy);
0051 void DrawPolyLineNDC(Int_t n, TPoints *uv);
0052 void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y) override;
0053 void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y) override;
0054 void DrawPS(Int_t n, Float_t *xw, Float_t *yw) override;
0055 void DrawPS(Int_t n, Double_t *xw, Double_t *yw) override;
0056 void NewPage() override;
0057 void Off();
0058 void On();
0059 void Open(const char *filename, Int_t type=-111) override;
0060 void Range(Float_t xrange, Float_t yrange);
0061 void SetColor(Int_t color = 1);
0062 void SetColor(Float_t r, Float_t g, Float_t b) override;
0063 void SetFillColor(Color_t cindex=1) override;
0064 void SetLineColor(Color_t cindex=1) override;
0065 void SetLineStyle(Style_t linestyle = 1) override;
0066 void SetLineWidth(Width_t linewidth = 1) override;
0067 void SetLineScale(Float_t scale=1) { fLineScale = scale; }
0068 void SetMarkerSize(Size_t msize=1) override;
0069 void SetMarkerColor(Color_t cindex=1) override;
0070 void SetTextColor(Color_t cindex=1) override;
0071 void Text(Double_t x, Double_t y, const char *string) override;
0072 void Text(Double_t, Double_t, const wchar_t *) override {}
0073 void TextNDC(Double_t u, Double_t v, const char *string);
0074 void TextNDC(Double_t, Double_t, const wchar_t *) {}
0075 Float_t UtoTeX(Double_t u);
0076 Float_t VtoTeX(Double_t v);
0077 Float_t XtoTeX(Double_t x);
0078 Float_t YtoTeX(Double_t y);
0079
0080 ClassDefOverride(TTeXDump, 0);
0081 };
0082
0083 #endif