12 #ifndef ROOT_TPostScript 13 #define ROOT_TPostScript
virtual ~TPostScript()
Default PostScript destructor.
void DrawPolyLine(Int_t n, TPoints *xy)
Draw a PolyLine.
Int_t fNBSameColorCell
Number of boxes with the same color.
void Text(Double_t x, Double_t y, const char *string)
Write a string of characters.
Float_t fXsize
Page size along X.
Bool_t fClear
True when page must be cleared.
void On()
Activate an already open PostScript file.
void DrawPolyLineNDC(Int_t n, TPoints *uv)
Draw a PolyLine in NDC space.
void DefineMarkers()
Define the markers.
void CellArrayFill(Int_t r, Int_t g, Int_t b)
Paint the Cell Array.
Float_t fYsize
Page size along Y.
Bool_t fBoundingBox
True for Encapsulated PostScript.
Int_t fCurrentColor
current Postscript color index
Int_t fLastCellRed
Last red value.
Float_t fMarkerSizeCur
current transformed value of marker size
void DrawPS(Int_t n, Float_t *xw, Float_t *yw)
Draw a PolyLine.
Int_t fNXzone
Number of zones along X.
char fPatterns[32]
Indicate if pattern n is defined.
Bool_t fFontEmbed
True is FontEmbed has been called.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw a Box.
void FontEmbed()
Embed font in PS file.
bool FontEmbedType42(const char *filename)
Int_t fType
PostScript workstation type.
void SetLineStyle(Style_t linestyle=1)
Change the line style.
Int_t fSave
Number of gsave for restore.
Float_t fX2v
X top right corner of paper.
static const double x2[5]
Float_t fMaxsize
Largest dimension of X and Y.
Int_t fNpages
number of pages
TPostScript()
Default PostScript constructor.
void SetLineWidth(Width_t linewidth=1)
Change the line width.
#define ClassDef(name, id)
void Open(const char *filename, Int_t type=-111)
Open a PostScript file.
static Int_t fgLineJoin
Appearance of joining lines.
TString fFileName
PS file name.
Int_t fNYzone
Number of zones along Y.
bool FontEmbedType2(const char *filename)
Int_t fNbCellW
Number of boxes per line.
Bool_t fClipStatus
Clipping Indicator.
Int_t fIYzone
Current zone along Y.
Int_t fNbCellLine
Number of boxes in the current line.
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.
void CellArrayEnd()
End the Cell Array painting.
void MovePS(Int_t x, Int_t y)
Move to a new position.
Int_t UtoPS(Double_t u)
Convert U from NDC coordinate to PostScript.
Float_t fX1v
X bottom left corner of paper.
void Range(Float_t xrange, Float_t yrange)
Set the range for the paper in centimeters.
void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y)
Draw markers at the n WC points x, y.
void TextNDC(Double_t u, Double_t v, const char *string)
Write a string of characters in NDC.
Int_t fLastCellBlue
Last blue value.
void DrawHatch(Float_t dy, Float_t angle, Int_t n, Float_t *x, Float_t *y)
Draw Fill area with hatch styles.
void SetMarkerColor(Color_t cindex=1)
Set color index for markers.
Float_t fY2v
Y top right corner of paper.
void SetLineJoin(Int_t linejoin=0)
Set the value of the global parameter TPostScript::fgLineJoin.
void FontEncode()
Font Re-encoding.
Float_t fRed
Per cent of red.
Bool_t fRange
True when a range has been defined.
void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2)
Draw a Cell Array.
2-D graphics point (world coordinates).
void SaveRestore(Int_t flag)
Compute number of gsaves for restore This allows to write the correct number of grestore at the end o...
Int_t YtoPS(Double_t y)
Convert Y from world coordinate to PostScript.
static const double x1[5]
Int_t fNbinCT
Number of entries in the current Cell Array.
void Off()
Deactivate an already open PostScript file.
void SetFillPatterns(Int_t ipat, Int_t color)
Patterns definition.
Bool_t fZone
Zone indicator.
bool FontEmbedType1(const char *filename)
Int_t fIXzone
Current zone along X.
void Zone()
Initialize the PostScript page in zones.
void SetColor(Int_t color=1)
Set the current color.
void SetLineScale(Float_t scale=3)
Int_t VtoPS(Double_t v)
Convert V from NDC coordinate to PostScript.
void Close(Option_t *opt="")
Close a PostScript file.
void SetFillColor(Color_t cindex=1)
Set color index for fill areas.
Int_t fLineJoin
Appearance of joining lines.
Int_t fClip
Clipping mode.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void Initialize()
PostScript Initialisation.
Int_t fMode
PostScript mode.
Int_t fLastCellGreen
Last green value.
void NewPage()
Move to a new PostScript page.
Float_t fLineScale
Line width scale factor.
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
Int_t XtoPS(Double_t x)
Convert X from world coordinate to PostScript.
void SetTextColor(Color_t cindex=1)
Set color index for text.
void SetLineColor(Color_t cindex=1)
Set color index for lines.
Float_t fY1v
Y bottom left corner of paper.
Float_t fGreen
Per cent of green.
Int_t fMaxLines
Maximum number of lines in a PS array.
Float_t fBlue
Per cent of blue.