[root] / trunk / graf2d / x11 / src / TGX11.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/x11/src/TGX11.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48705 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 26 09:58:27 2013 UTC (22 months, 3 weeks ago) by axel
File length: 109880 byte(s)
Diff to previous 42707
From Olivier: hide x11 headers from ROOT's headers.

Revision 42707 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 18 15:51:35 2012 UTC (3 years ago) by couet
File length: 107367 byte(s)
Diff to previous 42706
- Fix coverity reports RETURNS_NULL

Revision 42706 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 18 15:23:56 2012 UTC (3 years ago) by couet
File length: 107359 byte(s)
Diff to previous 42652
- Fix coverity report RETURNS_NULL

Revision 42652 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 16 15:21:32 2012 UTC (3 years ago) by couet
File length: 107331 byte(s)
Diff to previous 41266
Fix coverity report RETURNED_NULL

Revision 41266 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 10:39:04 2011 UTC (3 years, 3 months ago) by couet
File length: 107309 byte(s)
Diff to previous 41265
Fix coverity report #32871

Revision 41265 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 10:23:22 2011 UTC (3 years, 3 months ago) by couet
File length: 107280 byte(s)
Diff to previous 41264
Fix coverity report #32399

Revision 41264 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 10:20:14 2011 UTC (3 years, 3 months ago) by couet
File length: 107276 byte(s)
Diff to previous 36156
Fix coverity report #32253

Revision 36156 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 7 14:08:57 2010 UTC (4 years, 3 months ago) by rdm
File length: 107272 byte(s)
Diff to previous 35553
fix clang warning (use of logical || with constant operand; switch to
bitwise | or remove constant).

Revision 35553 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 15:50:32 2010 UTC (4 years, 4 months ago) by couet
File length: 107273 byte(s)
Diff to previous 35525
- strcpy replaced by strlcpy (coverity)

Revision 35525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 10:48:12 2010 UTC (4 years, 4 months ago) by brun
File length: 107269 byte(s)
Diff to previous 35524
Fix resource leak, coverity.

Revision 35524 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 10:32:28 2010 UTC (4 years, 4 months ago) by brun
File length: 107251 byte(s)
Diff to previous 34980
Fix a string overflow. coverity

Revision 34980 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 08:49:03 2010 UTC (4 years, 5 months ago) by couet
File length: 107246 byte(s)
Diff to previous 32927
- Add a protection in ReadGif against a possible negative or null
  file size (found by coverity).

Revision 32927 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 9 15:05:56 2010 UTC (4 years, 9 months ago) by couet
File length: 107119 byte(s)
Diff to previous 32427
- 3 new markers (32, 33, 34). 
  Now each marker has a filled and an hollow version.

Revision 32427 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 1 18:25:58 2010 UTC (4 years, 10 months ago) by rdm
File length: 105979 byte(s)
Diff to previous 32337
From Matevz and me:
Add virtual function:

Int_t TVirtualX::SupportsExtension(const char *ext) const

Returns 1 if window system server supports extension given by the
argument, returns 0 in case extension is not supported and returns -1
in case of error (like server not initialized).
Examples:
  "Apple-WM" - does server run on MacOS X;
  "XINERAMA" - does server support Xinerama.

Revision 32337 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 12 16:09:35 2010 UTC (4 years, 11 months ago) by pcanal
File length: 105312 byte(s)
Diff to previous 31629
Fix warning with gcc 4.4.1 and -pendantic.
For RStipples.h the warning was:
error: overflow in implicit constant conversion

Revision 31629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 10:20:08 2009 UTC (5 years, 1 month ago) by couet
File length: 105299 byte(s)
Diff to previous 29636
- Initialize members.
  (found by coverity)

Revision 29636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 30 14:50:00 2009 UTC (5 years, 5 months ago) by rdm
File length: 104424 byte(s)
Diff to previous 29598
fix gcc-3.4 compiler warnings. This compiler does not like it when Long64_t's
are cast to pointers on 32-bit machines without first being cast to Long_t
(gcc 4.x does not complain about this).

Revision 29598 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 27 15:37:29 2009 UTC (5 years, 5 months ago) by rdm
File length: 104400 byte(s)
Diff to previous 28464
change TExMap hash, key and values from (U)Long_t to (U)Long64_t. This
makes TExMap streamable in a portable way. On 64-bit platforms there is
no difference, but on 32-bit platforms all values will now be 64-bit.
This fixes a big portability issue with THnSparse which uses TExMap internally
where the versions created on a 32-bit platform could not be read on
a 64-bit platform and vice versa.

Revision 28464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 6 12:37:21 2009 UTC (5 years, 8 months ago) by brun
File length: 104497 byte(s)
Diff to previous 23439
From Timur:
New GL interface for TPad (to be documented in next check-in)

Revision 23439 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 10:48:04 2008 UTC (6 years, 9 months ago) by brun
File length: 104333 byte(s)
Diff to previous 23140
Fix shadowed variables.

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: 104346 byte(s)
Diff to previous 22546
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 22546 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 8 19:21:05 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104346 byte(s)
Diff to previous 20882
other bunch of gcc 4.3 warnings removed:
-  warning: suggest a space before ; or explicit braces around empty body
   in for statement

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104343 byte(s)
Diff to previous 20645
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20645 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 5 08:00:28 2007 UTC (7 years, 2 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104343 byte(s)
Diff to previous 20644
Fix a typo in correction proposed by Christian.

Revision 20644 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 5 07:29:39 2007 UTC (7 years, 2 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104343 byte(s)
Diff to previous 19826
In TGX11::SetMarkerType replace the statement
  gMarker.xy[i] = xy[i];

with the lines 

  gMarker.xy[i].x = xy[i].x;
  gMarker.xy[i].x = xy[i].y;
to bypass a bug in gcc4.2 with a wrong inlining of a copy constructor.
Thanks to Christian Hom: see: <http://savannah.cern.ch/bugs/?30940>

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104286 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104334 byte(s)
Diff to previous 18536
remove :$ from tag line

Revision 18536 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 21:07:02 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104344 byte(s)
Diff to previous 18369
From Bertrand:
Added drag and drop support for Linux (Xdnd) and Windows (Clipboard).
It is now possible to drag an histogram (or any other graphical object)
from an opened file in TBrowser to any TCanvas.
It is also possible to drag a text file from TBrowser to a TGTextView
or TGTextEdit widget (i.e. in TGTextEditor).
On Linux, it is even possible to drag from a Root application to another
one, or to drag a text file (i.e. a macro) from the ROOT browser to an
external editor (i.e. Kate).
On Windows, drag and drop only works within the same ROOT application
(for the time being).

Revision 18369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 20 09:54:27 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104277 byte(s)
Diff to previous 13992
From Valeriy Onuchin:
Fix for thumbnails generation to avoid a crash in ROOT object browser

Revision 13992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 6 16:34:43 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/x11/src/TGX11.cxx
File length: 104264 byte(s)
Diff to previous 13938
From Timur:
- Changes to replace rendering into DIB/pixmap with direct rendering
  (result will be read into pixmap/DIB and used by pad)

Revision 13938 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 26 16:21:25 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/x11/src/TGX11.cxx
File length: 104635 byte(s)
Diff to previous 13326
- Protection added in TGX11::ResizeWindow. In this method the call to
  XGetGeometry() may return invalid values for wval and hval in case of very
  a small window (< a few pixel). Without this protection one got the error:

  Error in <RootX11ErrorHandler>:
  BadAlloc (insufficient resources for operation) (XID: 37749062, XREQ: 53)

Revision 13326 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 23 14:48:02 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/x11/src/TGX11.cxx
File length: 104571 byte(s)
Diff to previous 13198
From Timur:

- Fixes to enable swithing between supported/non-supported types of plots in
  gl-hist-painter.

Revision 13198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 11 15:29:46 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/x11/src/TGX11.cxx
File length: 104607 byte(s)
Diff to previous 12655
- mods for the rules checker

Revision 12655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 12:24:28 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104662 byte(s)
Diff to previous 12503
From Olivier:
- Fix coding conventions violations

Revision 12503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 18 11:12:59 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104296 byte(s)
Diff to previous 12102
From Timur:

Add a new member to TStyle
   Bool_t  fCanvasPreferGL;    //if true, rendering in canvas is with GL
and the corresponding Get/set functions:
   Bool_t  GetCanvasPreferGL() const {return fCanvasPreferGL;}
   void    SetCanvasPreferGL(Bool_t prefer = kTRUE) {fCanvasPreferGL=prefer;}

 Changes to enable gl-in-pad. 1.You should type
  gStyle->SetCanvasPreferGL(kTRUE) to turn on GL support.
2. Do not try to use at the same time gl-viewer and gl-in-pad :)) -
   do not work at the moment.
3. GL-in-pad can be used with g3d and geom now (not with hists, polylines
  or polymarkers, composite shapes do not work).
4. You can rotate scene, zoom (with J,K and context menu), select :
  TGLPixmap (viewer) - interesting only with context menu item
  Pad under viewer - you can change color of pad (==3d scene background)
  Object from the scene (g3d node or geom volume). For selected object
  you can change the color (geom volumes, when selected, higlight
  themselves)
5. In case of complex geometry the selection is very slow now (will be fixed
   soon)
6. IMPORTANT! TGLPixmap is only a temporary testing facility, will be
   replaced ASAP.
7. IMPORTANT! this new stuff is unstable :)

Revision 12102 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 18:15:13 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 102496 byte(s)
Diff to previous 11827
From Valeriy Onuchin:

- TASImage. SavePrimitive method was implemented.
  I see that the produced macro works OK when compiled, but fails
  when interpreted (the problem of CINT?)
- TASImage::Paint - fix session hanging when generating PDF files (it is
  not possible for the moment)
- TPad::Print - fix generation of files in GIF format  from pad containing
  TImages.
- TGX11 - started implementation of two new methods GetColorBits,
  CreatePixmapFromData.
   Hopefully  be finished before release.

Revision 11827 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 20:39:39 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 101402 byte(s)
Diff to previous 11817
From Valeriy Onuchin:
- a common file RStipples.h for fill area stipples was introduced.
  That allowed to remove a lot of dupblicated code.
- small correction in TASImage class

new file base/inc/RStipple.h

Revision 11817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 18 16:58:42 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 112087 byte(s)
Diff to previous 11676
From Valeriy Onuchin:
- TVirtualX, TGX11, TGWin32, TGWin32VirtualXProxy -  protected method
made public.
GetCurrentWindow() returns pointer to the current internal window
used in canvas graphic.
That allows to  fix a bug of producing bad gif, png, etc. canvas images
when canvas is obscured by another window. Thanks to Mike Kordosky who
reported it.

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/x11/src/TGX11.cxx
File length: 112070 byte(s)
Diff to previous 11099
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 11099 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 11 16:38:46 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 111412 byte(s)
Diff to previous 10506
From Marek Biskup
Fix a loop overflow problem in TGX11::DrawPolyMarker
This problem is showing up when using PROOF on a large data sample.

Revision 10506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 9 17:18:08 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 111413 byte(s)
Diff to previous 10216
From Olivier:
- Protection in TGX11:GetTextExtent: in case the string length is 0 this
  function exits with w=h=0 . (Protection proposed by Ursula Berthon)

Revision 10216 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 15:40:29 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 111368 byte(s)
Diff to previous 9732
From Ilka:
remove warning message in case color with specific id is not defined.
If I understand well the code the warning message is for
nothing because the corresponding color is created by the GetColor
method. This message only stress users, so I propose to remove it in two
places. In the created diffs I put comments on these lines, I did not
remove them.

Revision 9732 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 12 10:44:38 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 111360 byte(s)
Diff to previous 9731
Small change in the algorithm supporting a large number of points
in TGX11::DrawPolyMarker

Revision 9731 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 12 09:55:05 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 111358 byte(s)
Diff to previous 9603
Fix a problem in TGX11::DrawPolyMarker.
The X11 function XDrawPoints crashes when more than 1000000 points are given.

Revision 9603 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 27 23:02:11 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 111075 byte(s)
Diff to previous 8556
add additional Window_t argument to Warp(), this is used by the
coming MDI widget.

Revision 8556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 8 14:05:18 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110910 byte(s)
Diff to previous 8355
From Valeriy:
- reverted mods in TGX11,TGWin32 DrawBox method.
- paint white background filled area only for pads and
  when pad fFillStyle is >3000 and < 3026 (hatched).
  That fixed the problem with drawing TPad (hatched) after resizing.

Revision 8355 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 10 14:43:10 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 111212 byte(s)
Diff to previous 8031
From Valeriy Onuchin:
- fix problem with setting hatched fill style for TPad/TCanvas

Revision 8031 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 26 14:04:57 2004 UTC (11 years ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 110998 byte(s)
Diff to previous 7906
From Olivier:

Fix a memory leak in TGX11::GetTextExtent. CBox was allocated
twice.

Revision 7906 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 14 00:28:30 2004 UTC (11 years ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 111057 byte(s)
Diff to previous 7768
fix several memory leaks in GefREADReadGIF().

Revision 7768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 16 16:22:56 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 110840 byte(s)
Diff to previous 7147
From valeriy Onuchin
- TGX11, TGWin32 CreatePictureFromFile method
  modified. That allows to create TGPicture, TGpictureButton etc.
 from GIF files.

Revision 7147 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 23 00:08:13 2003 UTC (11 years, 5 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110459 byte(s)
Diff to previous 7140
revert most cast issues reported by buggy gcc 3.4 snapshot of this week.
Checked with gcc 3.4 from cvs of today which does not report any
problems anymore.

Revision 7140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 13:07:01 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 110471 byte(s)
Diff to previous 6660
In TGX11::SetCharacterUp fix to avoid warnings with gcc3.4 when calling TMath::Sqrt.
explicit cast is required.

Revision 6660 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 11:25:20 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110459 byte(s)
Diff to previous 6517
add missing breaks statements in RequestLocator().

Revision 6517 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 1 17:16:57 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110420 byte(s)
Diff to previous 6434
iin several locations the depth of the original rootwindow was used and
not the depth of the best visual. This should solve the FindBestVisual()
problems most often seen on Solaris and eXceed. By Daniel Sigg.

Revision 6434 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 13 17:52:27 2003 UTC (11 years, 9 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110509 byte(s)
Diff to previous 6088
remove CWBorderPixel attribute from XCreateWindow in FindBestVisual() for
Solaris. This seems to fix the problem on Solaris where finding the best
visual caused X11 to fail. Fix by Daniel Sigg.

Revision 6088 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 11 12:29:08 2003 UTC (11 years, 11 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110415 byte(s)
Diff to previous 5959
changes by Bertrand to support OpenGL in Win32gdk mode.

Revision 5959 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 22 11:23:05 2003 UTC (12 years ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110372 byte(s)
Diff to previous 5942
big patch adding full freetype 2 TTF support to the ROOT core and X11
and Win32gdk displaying modules. TTF support provided by Olivier Couet
and Bertrand Bellenot (for Win32), build system updated by me.
Also fixes the RH8.0 installation problems of rootd and proofd.

Revision 5942 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 20 07:25:02 2003 UTC (12 years ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 110725 byte(s)
Diff to previous 5717
Add protection in the destructor in case the default constructor has been called.

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/x11/src/TGX11.cxx
File length: 110700 byte(s)
Diff to previous 5140
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 5140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 17 16:29:31 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110693 byte(s)
Diff to previous 4963
new method GetPixel(Color_t) that returns the pixel value associated to the
specified TColor color index.

Revision 4963 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 17 14:59:57 2002 UTC (12 years, 6 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 110246 byte(s)
Diff to previous 4564
use plugin manager in LoadGraphics(). At the same time introduced a suggestion
of Christian Holm to define in the rootrc a Gui.Backend resource. By
default this is set to "native" which translates to X11 on Unix and Win32
on Windows (or Win32gdk when compiled with GDK option). But setting it
to, e.g., "qt" will (once the full Qt implementation is available)
automatically load the libGQt plugin.

Revision 4564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 18 08:22:01 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 110269 byte(s)
Diff to previous 4200
Add explicit calls to the base classes copy constructors in the copy constructors.
This is required by gcc on MacOS X

Revision 4200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 20 07:42:40 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 110251 byte(s)
Diff to previous 4075
Patch from Tony Colley;
I modified the DrawPolyLine function in TGX11.cxx to split polylines with
too many points into drawable chunks. This would not handle the case where
someone wanted to draw a filled curve with too many points; but I don't need
really big filled curves anyway. This change enabled ROOT to successfully
handle a TGraph of 10^7 points (not quickly, by any means, but at least it
draws the graph and doesn't crash).

Revision 4075 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 23 15:52:36 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 109890 byte(s)
Diff to previous 4049
add protection in WriteGIF() in case image has more than 256 colors.

Revision 4049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 21 12:14:14 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 109768 byte(s)
Diff to previous 4048
added two new resource in rootrc:
   X11.Sync:             no
   X11.FindBestVisual:   yes
if Sync is "yes" X11 will run in sync mode. Useful for discovering X
errors. Note, Sync mode is now independent of the Debug flag (used to be
that Debug>4 triggered Sync mode). If FindBestVisual is "no" then always
use the default X11 visual, don't try looking for a better one.
Run ./configure to activate.

Revision 4048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 21 11:30:17 2002 UTC (12 years, 11 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 109677 byte(s)
Diff to previous 3794
added new methods:
   Visual_t     GetVisual() const;
   Int_t        GetScreen() const;
   Int_t        GetDepth() const;
   Colormap_t   GetColormap() const;
these methods are usefull in some cases where direct X11 manipulation outside
of TVirtualX is needed. Also added code in TGX11 to detect the best X11
visual available. Some X servers insist on using by default an 8 bit
PseudoColor visual while 16 or 24 bit TrueColor (or DirectColor) visual are
available. Using the best visual is in particular important for image
processing classes.

Revision 3794 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jan 27 16:49:43 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104953 byte(s)
Diff to previous 3605
Remove non-necessary declarations of static functions to remove warnings on aCC
of the style:
Warning 495: "base/src/TROOT.cxx", line 159 # The linkage directive is ignored for an object or function declared static.
       static void CleanUpROOTAtExit();

Revision 3605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 8 08:34:22 2002 UTC (13 years ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 105046 byte(s)
Diff to previous 3564
Change signature of TVirtualX::WriteGIF from void to Int_t.
The return value is tested by TPad::Print.

In case the file file cannot be opened, WriteGif prints an error message.

Revision 3564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 2 21:48:30 2002 UTC (13 years ago) by brun
Original Path: trunk/x11/src/TGX11.cxx
File length: 104916 byte(s)
Diff to previous 3225
UseTMath::Pi instead of 3.14159

Revision 3225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 16 02:47:36 2001 UTC (13 years, 2 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104912 byte(s)
Diff to previous 3112
allocate arrays using ::operator new() instead of new [] (and use
::operator delete() to clean up). This to avoid possible problems
due to usage of ReAlloc() which also uses the ::operator new().

Revision 3112 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 25 19:18:40 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104678 byte(s)
Diff to previous 2634
add cast from long to int.

Revision 2634 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 3 14:07:07 2001 UTC (13 years, 5 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104682 byte(s)
Diff to previous 2439
in SetColor() always call SetRGB(). In SetRGB() check if rgb value is
the same, if not recalculate pixel value (or re-alloc color if planes<15).
Before, once defined, a color pixel value would never be recalculated.

Revision 2439 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 16:10:23 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104541 byte(s)
Diff to previous 2338
make code more const char* correct (i.e. "strings" must be const char*) and
declare several functions extern "C". Mods by Dave Morrison.

Revision 2338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 31 15:42:38 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104448 byte(s)
Diff to previous 2306
add protection in GetGeometry() in case hight or width are 0.

Revision 2306 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 28 12:40:01 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 104353 byte(s)
Diff to previous 2256
fix bug in TGX11 copy ctor that caused colors to not be copied properly.

Revision 2256 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 21 12:43:32 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 103984 byte(s)
Diff to previous 2255
delete map with colors in dtor.

Revision 2255 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 21 11:20:07 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 103813 byte(s)
Diff to previous 2220
remove limitation of only 1000 colors. Colors are now stored in a TExMap
hash table, with the key being the TColor color index and the value a pointer
to the associated XColor_t structure.

Revision 2220 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 16 16:23:23 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 103678 byte(s)
Diff to previous 2179
added support for TrueColor X11 servers with bgr instead of rgb (or any
other permutation for that matter), like eXceed.

Revision 2179 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 11 17:20:14 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 103286 byte(s)
Diff to previous 2125
new methods AllocColor() and QueryColors() that reduce the expensive
X11 round-trip commands XAllocColor and XQueryColor in case of TrueColor
displays.

Revision 2125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 7 00:13:50 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 99506 byte(s)
Diff to previous 1959
disable XWarpPointer() since it causes an X11 error (BadWindow) when called
from ProcessEvents() while in a main loop which also calls X. It's usage is
anyway discouraged.

Revision 1959 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 11 15:19:11 2001 UTC (13 years, 9 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 99429 byte(s)
Diff to previous 1859
some changes by Denis Bertini that will allow the ROOT TCanvas et al to be
embedded in a Qt driven GUI.

Revision 1859 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 28 10:20:14 2001 UTC (13 years, 10 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 97338 byte(s)
Diff to previous 760
Turn off GraphicsExpose and NoExpose event reporting for the pixmap
manipulation GC, this to prevent these events from being stacked up
without ever being processed and thereby wasting a lot of memory.
Thanks to Damir for providing the golden hint to solving this long
standing problem.

Revision 760 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 13 09:54:28 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 97073 byte(s)
Diff to previous 3
added method GetNativeEvent(). This method returns a Handle_t to the native
event structure (XEvent for X11). By casting the Handle_t to an XEvent* you
can access the current X event. This is useful to dispatch events to a 3rd
party application that knows nothing about ROOT's Event_t.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/x11/src/TGX11.cxx
File length: 96902 byte(s)
Copied from: branches/rdm/x11/src/TGX11.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/x11/src/TGX11.cxx
File length: 96902 byte(s)
Initial import of ROOT into CVS

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9