73 fPS->SetFillColor(fill.GetFillColor());
74 fPS->SetFillStyle(fill.GetFillStyle());
116 Fatal(
"SetAttText",
"Pad not set when invoke method");
121 fPS->SetTextSize(tsize);
194 fPS->DrawPS(2,
x,
y);
208 xw[0] = (1 - u1) *
fPad->GetX1() + u1 *
fPad->GetX2();
209 xw[1] = (1 - u2) *
fPad->GetX1() + u2 *
fPad->GetX2();
212 fPS->DrawPS(2, xw, yw);
226 style0 =
fPS->GetFillStyle();
228 fPS->SetFillStyle(0);
232 fPS->DrawBox(x1, y1, x2, y2);
235 fPS->SetFillStyle(style0);
244 ::Error(
"TPadPainterPS::DrawFillArea",
"invalid number of points %d", nPoints);
259 ::Error(
"TPadPainterPS::DrawFillArea",
"invalid number of points %d", nPoints);
276 ::Error(
"TPadPainterPS::DrawPolyLine",
"invalid number of points");
293 ::Error(
"TPadPainterPS::DrawPolyLine",
"invalid number of points");
310 ::Error(
"TPadPainterPS::DrawPolyLineNDC",
"invalid number of points %d",
n);
314 std::vector<Double_t> xw(
n), yw(
n);
315 for (
Int_t i = 0; i <
n; i++) {
316 xw[i] = (1 - u[i]) *
fPad->GetX1() + u[i] *
fPad->GetX2();
317 yw[i] = (1 -
v[i]) *
fPad->GetY1() +
v[i] *
fPad->GetY2();
319 fPS->DrawPS(
n, xw.data(), yw.data());
331 ::Error(
"TPadPainterPS::DrawSegments",
"invalid number of segments %d",
n);
335 fPS->DrawSegments(
n,
x,
y);
347 ::Error(
"TPadPainterPS::DrawSegmentsNDC",
"invalid number of segments %d",
n);
351 for (
Int_t i = 0; i < 2*
n; i++) {
352 u[i] = (1 - u[i]) *
fPad->GetX1() + u[i] *
fPad->GetX2();
353 v[i] = (1 -
v[i]) *
fPad->GetY1() +
v[i] *
fPad->GetY2();
355 fPS->DrawSegments(
n, u,
v);
364 ::Error(
"TPadPainterPS::DrawPolyMarker",
"invalid number of points %d",
n);
378 ::Error(
"TPadPainterPS::DrawPolyMarker",
"invalid number of points %d",
n);
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
Error("WriteTObject","The current directory (%s) is not associated with a file. The object (%s) has not been written.", GetName(), objname)
void Fatal(const char *location, const char *msgfmt,...)
Use this function in case of a fatal error. It will abort the program.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual Color_t GetLineColor() const
Return the line color.
virtual Width_t GetLineWidth() const
Return the line width.
virtual Style_t GetLineStyle() const
Return the line style.
virtual Style_t GetMarkerStyle() const
Return the marker style.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual Size_t GetMarkerSize() const
Return the marker size.
virtual Short_t GetTextAlign() const
Return the text alignment.
virtual Font_t GetTextFont() const
Return the text font.
virtual Color_t GetTextColor() const
Return the text color.
virtual Float_t GetTextAngle() const
Return the text angle.
virtual Float_t GetTextSizeRelative(TVirtualPad &pad) const
Return the text size in relative units.
void SetAttFill(const TAttFill &att) override
Set fill attributes.
void SetAttText(const TAttText &att) override
Set text attributes.
const TAttFill & GetAttFill() const override
Width_t GetLineWidth() const override
Bool_t fFullyTransparent
if transformed fill attributes fully transparent
void SetAttMarker(const TAttMarker &att) override
Set marker attributes.
void SetAttLine(const TAttLine &att) override
Set line attributes.
TAttFill GetAttFillInternal(Bool_t with_transparency)
Returns fill attributes after modification Checks for special fill styles 4000 .
const TAttLine & GetAttLine() const override
Get line attributes.
void DrawPolyLineNDC(Int_t n, const Double_t *u, const Double_t *v) override
Paint polyline in normalized coordinates.
void DrawSegments(Int_t n, Double_t *x, Double_t *y) override
Paint N segments on the pad.
void ClearDrawable() override
Clear the current gVirtualX window - noop for PS.
void SetAttMarker(const TAttMarker &att) override
Provide marker attributes to gVirtualPS.
void DrawSegmentsNDC(Int_t n, Double_t *u, Double_t *v) override
Paint N segments in normalized coordinates on the pad.
void SetAttText(const TAttText &att) override
Provide text attributes to gVirtualPS.
void SaveImage(TVirtualPad *pad, const char *fileName, Int_t type) const override
Save the image displayed in the canvas pointed by "pad" into a binary file.
void DrawTextNDC(Double_t u, Double_t v, const char *text, ETextMode mode) override
Paint text in normalized coordinates.
void DrawLineNDC(Double_t u1, Double_t v1, Double_t u2, Double_t v2) override
Paint a simple line in normalized coordinates.
TPadPainterPS(TVirtualPS *ps)
Consructor Assigns TVirtualPS instance which will be used by the painter.
void NewPage() override
Start new page on PS output.
void DrawPixels(const unsigned char *pixelData, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY, Bool_t enableAlphaBlending) override
Noop, for non-gl pad TASImage calls gVirtualX->CopyArea.
void DrawTextUrl(Double_t x, Double_t y, const char *text, const char *url) override
Drawint text with url link.
void SelectDrawable(Int_t device) override
Select the window in which the graphics will go - not implemented.
void DrawFillArea(Int_t n, const Double_t *x, const Double_t *y) override
Paint filled area.
void SetAttLine(const TAttLine &att) override
Provide line attributes to gVirtualPS.
void DrawPolyMarker(Int_t n, const Double_t *x, const Double_t *y) override
Paint polymarker.
void DrawText(Double_t x, Double_t y, const char *text, ETextMode mode) override
Paint text.
void SetOpacity(Int_t percent) override
Delegate to gVirtualPS.
void SetAttFill(const TAttFill &att) override
Provide fill attributes to gVirtualPS.
void DrawLine(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
Paint a simple line.
Int_t CreateDrawable(UInt_t w, UInt_t h) override
Create a gVirtualX Pixmap - not implemented.
void DestroyDrawable(Int_t device) override
Close the current gVirtualX pixmap - not implemented.
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2, EBoxMode mode) override
Paint a simple box.
void CopyDrawable(Int_t device, Int_t px, Int_t py) override
Copy a gVirtualX pixmap - not implemented.
void DrawPolyLine(Int_t n, const Double_t *x, const Double_t *y) override
Paint Polyline.
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
TVirtualPad is an abstract base class for the Pad and Canvas classes.