Log of /trunk/graf2d/x11/src/TGX11.cxx
Parent Directory
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.