static const double x2[5]
static const double x1[5]
#define ClassDef(name, id)
2-D graphics point (world coordinates).
Double_t UtoSVG(Double_t u)
Convert U from NDC coordinate to SVG.
void SetTextColor(Color_t cindex=1)
Set color index for text.
void MovePS(Double_t x, Double_t y)
Move to a new position (ix, iy).
void SetFillColor(Color_t cindex=1)
Set color index for fill areas.
Double_t fYsizeSVG
Page's Y size in SVG units.
void DrawPolyLine(Int_t n, TPoints *xy)
Draw a PolyLine.
Bool_t fRange
True when a range has been defined.
Double_t YtoSVG(Double_t y)
Convert Y from world coordinate to SVG.
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.
void Initialize()
Initialize the SVG file.
void Text(Double_t x, Double_t y, const char *string)
Draw text.
void SetLineColor(Color_t cindex=1)
Set color index for lines.
void CellArrayEnd()
End the Cell Array painting.
void SetColor(Int_t color=1)
Set RGB (without alpha channel) color with its color index.
Int_t fType
Workstation type used to know if the SVG is open.
void Off()
Deactivate an already open SVG file.
void Range(Float_t xrange, Float_t yrange)
Set the range for the paper in centimetres.
void Open(const char *filename, Int_t type=-111)
Open a SVG file.
void SetLineScale(Float_t=3)
void SetMarkerColor(Color_t cindex=1)
Set color index for markers.
void DrawPS(Int_t n, Float_t *xw, Float_t *yw)
Not needed in SVG case.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw a Box.
void SetLineWidth(Width_t linewidth=1)
Set the lines width.
void On()
Activate an already open SVG file.
TSVG()
Default SVG constructor.
virtual ~TSVG()
Default SVG destructor.
void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y)
Paint PolyMarker.
Double_t CMtoSVG(Double_t u)
Double_t XtoSVG(Double_t x)
Convert X from world coordinate to SVG.
void Text(Double_t, Double_t, const wchar_t *)
Bool_t fBoundingBox
True when the SVG header is printed.
Float_t fXsize
Page size along X.
Float_t fYsize
Page size along Y.
void DrawPolyLineNDC(Int_t n, TPoints *uv)
Draw a PolyLine in NDC space.
void TextNDC(Double_t u, Double_t v, const char *string)
Write a string of characters in NDC.
void TextNDC(Double_t, Double_t, const wchar_t *)
void CellArrayFill(Int_t r, Int_t g, Int_t b)
Paint the Cell Array.
void SetColorAlpha(Int_t color=1)
Set RGBa color with its color index.
void Close(Option_t *opt="")
Close a SVG file.
void SetLineStyle(Style_t linestyle=1)
Change the line style.
void NewPage()
Start the SVG page.
Double_t VtoSVG(Double_t v)
Convert V from NDC coordinate to SVG.
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.
TVirtualPS is an abstract interface to Postscript, PDF, SVG.