Log of /trunk/graf2d/postscript/src/TPostScript.cxx
Parent Directory
Revision
44507 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by
axel
File length: 87024 byte(s)
Diff to
previous 41793
Remove
using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.
Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.
Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.
Revision
38276 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 2 14:34:54 2011 UTC (3 years, 10 months ago) by
couet
File length: 87032 byte(s)
Diff to
previous 35554
- Fix a precision problem in the text positionning.
When the pad limits along X or Y were very close
the text position might be wrong. This was found
thanks to the test #15 in stressGraphics. The text
position is now computed using double precision
variable only.
Revision
33327 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 30 14:36:34 2010 UTC (4 years, 8 months ago) by
couet
File length: 85264 byte(s)
Diff to
previous 33288
- In PS and PDF files the long text strings are broken into lines and
the "new line" characters wer not escaped. This problem has always
been there, the recent kerning updates just made it more visible.
(original code from Oleksandr Grebenyuk)
Revision
33130 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 22 09:48:26 2010 UTC (4 years, 9 months ago) by
couet
File length: 84394 byte(s)
Diff to
previous 32927
- Implement the text kerning. The effect is clearly illustrated with
the following script. Without kerning the red X is overlaped by the
the rest of the text.
{
TCanvas *c = new TCanvas;
TLatex *l = new TLatex(0.5, 0.5, "AVAVAVAVAVAVAVAVAVA#color[2]{X}");
l->Draw();
c->SaveAs("c1.eps");
}
The original idea comes from Oleksandr Grebenyuk. It has been implemented
in a such way that the kerning mechanism is activated only when needed. If
not needed the old way of text rendering is used. It was done that way because
most of the time kerning is not needed and text rendered using the kerning
mechanism takes more space in the PS file.
Revision
32515 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 10 10:45:19 2010 UTC (4 years, 10 months ago) by
couet
File length: 83679 byte(s)
Diff to
previous 32450
- The Revision 32156 (from Oleksandr Grebenyuk) produces
wrong marker sizes (in some case) for the dot markers
1 6 and 7. These markers are not scalable. Problem
found running stressGraphics.
Revision
29280 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 1 08:43:27 2009 UTC (5 years, 6 months ago) by
couet
File length: 81193 byte(s)
Diff to
previous 28496
- In the following TLatex the minus sign was not correct:
TLatex *l = new TLatex(0.5, 0.5, "#font[122]{a = b + c - d #pm e}");
Note it is not the recommended way to do greek characters with
TLatex, but it should work anyway.
Revision
28496 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 8 12:10:33 2009 UTC (5 years, 8 months ago) by
couet
File length: 81175 byte(s)
Diff to
previous 25714
- In DrawPS the case nn=0 was not treated correctly.
Because of that the PS file might contain useless
attributes settings. That was only a few bytes
more in the file but they were useless...
Revision
25714 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 7 08:59:56 2008 UTC (6 years, 3 months ago) by
couet
File length: 81147 byte(s)
Diff to
previous 23936
- After the new endocing (last revision) the hyphen was longer than before.
This is now fixed. The following macro shows the problem:
{
TCanvas *c1 = new TCanvas("c1", "c1",15,49,700,500);
TLatex *tex = new TLatex(0.04,0.4,"sin(3#varphi_{h}-#varphi_{S})");
tex->SetTextSize(0.07);
tex->Draw();
c1->Print("hyphen.ps");
}
Revision
23936 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 20 16:00:26 2008 UTC (6 years, 8 months ago) by
couet
File length: 81079 byte(s)
Diff to
previous 23832
- Simplify the fonts encoding (use ISOLatin1Encoding). The new way allows to
print any character with accent etc.. like on the screen. The new encoding
was done by Pierre Juillot.
Revision
23140 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 11 11:01:39 2008 UTC (6 years, 9 months ago) by
rdm
File length: 85653 byte(s)
Diff to
previous 22132
move the following directories to "graf2d":
asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf
move the following directories to "graf3d":
eve, ftgl, g3d, gl, x3d
Revision
22049 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 7 16:10:33 2008 UTC (6 years, 11 months ago) by
couet
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 85660 byte(s)
Diff to
previous 20882
- In Text() use PrintFast instead of PrintStr to print a single character.
This allows to bypass the mechanism in which "@" is a control character in
PrintStr and therefore allows to print "@" in PS files. @ is printed
correctly in all other formats (PDF etc ... ).
Revision
13732 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 19 12:44:22 2005 UTC (9 years, 1 month ago) by
couet
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 112931 byte(s)
Diff to
previous 13419
- Undo the previous fix (Removing %%BeginSetup/%%EndSetup empty section).
CUPS printing system doesn't like it. psresize wil not be happy with that
but the priority should be given to printing. Any way it is easier to remove
that empty section using a little script than adding it in the PS file each
time we want to print a PS file using CUPS.
Revision
11676 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Apr 26 16:36:48 2005 UTC (9 years, 9 months ago) by
brun
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 110601 byte(s)
Diff to
previous 11098
From Olivier:
- The line styles defined via TStyle::SetLineStyleString() are now
available for all graphical interfaces: SVG, PostScript, PDF, X11, and
Win32GDK. Previously they were visible only in PostScript files. They
are still missing for Qt driver.
Revision
6973 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 18 15:36:38 2003 UTC (11 years, 6 months ago) by
brun
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 106839 byte(s)
Diff to
previous 6524
From Olivier,
The text size in PostScript files is now computed in order to fit exactly
with the TTF text size on screen. Previously it was close but a bit
different, therefore on long character strings it was possible to see gaps
between various pieces of a TLatex expression.
Revision
5717 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by
rdm
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 106304 byte(s)
Diff to
previous 5575
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.
Revision
4195 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 18 16:43:15 2002 UTC (12 years, 10 months ago) by
rdm
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 106183 byte(s)
Diff to
previous 4184
Fix for a problem in my PS code: X and Y variables were used to draw
the Cell Array and to draw horizontal lines. The axis are only vertical
and horizontal lines and that why it appears now. The tests I had in the
past never were used in such a configuration.
Revision
3267 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Nov 21 15:51:50 2001 UTC (13 years, 2 months ago) by
brun
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 113303 byte(s)
Diff to
previous 3244
Add new functions in the Postscript interface to support drawing of images
with Postscript (great thanks to Olivier Couet).
The Postscript interface is ready for the introduction of the TSAImage, etc
classes for image processing with ROOT.
The new functions implemented are:
void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2,
Double_t y1, Double_t y2);
void CellArrayFill(Int_t r, Int_t g, Int_t b);
void CellArrayEnd();
Revision
126 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 13 09:48:05 2000 UTC (14 years, 7 months ago) by
brun
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 104198 byte(s)
Diff to
previous 95
- Mods in TPostScript. several function arguments changed from Float_t to
Double_t. The following functions have been modified:
Int_t CMtoPS(Double_t u) {return Int_t(0.5 + 72*u/2.54);}
void DrawBox(Double_t x1, Double_t y1,Double_t x2, Double_t y2);
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);
void DrawPolyMarker(Int_t n, Double_t *x, Double_t *y);
void DrawPS(Int_t n, Double_t *xw, Double_t *yw);
void Text(Double_t x, Double_t y, const char *string);
void TextNDC(Double_t u, Double_t v, const char *string);
Int_t UtoPS(Double_t u);
Int_t VtoPS(Double_t v);
Int_t XtoPS(Double_t x);
Int_t YtoPS(Double_t y);
Revision
95 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 8 17:42:50 2000 UTC (14 years, 7 months ago) by
brun
Original Path:
trunk/postscript/src/TPostScript.cxx
File length: 98607 byte(s)
Diff to
previous 3
- Modify TPostScript::Text to not take into account the special PostScript
escape characters when the function is called by TLatex.
One can still force a Tlatex object to use the old PostScript convention
by using a font with precision 1 (eg 61).
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.