[root] / trunk / gui / gui / inc / TGPicture.h Repository:
ViewVC logotype

Log of /trunk/gui/gui/inc/TGPicture.h

Parent Directory Parent Directory


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

Revision 23115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 13:35:37 2008 UTC (6 years, 9 months ago) by rdm
File length: 4717 byte(s)
Copied from: trunk/gui/inc/TGPicture.h revision 23114
Diff to previous 20882
moved to directory "gui" the following directories:

fitpanel, ged, gui, guibuilder, guihtml, qtgsi, qtroot, sessionviewer

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/gui/inc/TGPicture.h
File length: 4717 byte(s)
Diff to previous 19826
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 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/gui/inc/TGPicture.h
File length: 4717 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/gui/inc/TGPicture.h
File length: 4767 byte(s)
Diff to previous 15181
remove :$ from tag line

Revision 15181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 15:13:03 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/gui/inc/TGPicture.h
File length: 4777 byte(s)
Diff to previous 15134
one more round of code cleanup: change NULL by 0 in all C++ code.

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/gui/inc/TGPicture.h
File length: 4779 byte(s)
Diff to previous 15047
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 15047 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 15 11:01:14 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/gui/inc/TGPicture.h
File length: 4660 byte(s)
Diff to previous 15044
coding conventions (put methods after data members, after Fed's changes).

Revision 15044 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 15 07:43:34 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/gui/inc/TGPicture.h
File length: 4653 byte(s)
Diff to previous 11911
From Federico:
headers modified to support the gcc option effc++

Revision 11911 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 30 22:38:39 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/gui/inc/TGPicture.h
File length: 4471 byte(s)
Diff to previous 11795
From Valeriy:
TGPicture:
 - fix deallocation autogenerated disabled pictures. That allows to fix
   seg. violation after running $ROOTSYS/test/stress reported by Markus Frank.

   An important comment was added to constructor
     TGPicture(const char *name, Pixmap_t pxmap, Pixmap_t mask)
     "both pixmaps pxmap and mask must be unique (not shared)"

 - new method  TGPicturePool::GetPicture(const char *name, char **xpm) added
   that allows to create pictures from in-memory XPM array
   Example:
     #include "myicon.xpm" // contains static char** myicon {..} array
     const TGPicture *pic = gClient->GetPicturePool()->GetPicture("myicon",
                                                                  myicon);
TGButton:
 - new method SetEnablled added which allows to activate/deactivate
   enabled/disabled state of button

TASImage/TImage:
 - Few new vector graphics methods added:
   DrawCubeBezier, DrawStraightEllips, DrawCircle, DrawEllips,DrawEllips2
   ToGray method, which allows to convert RGB image to Gray image

TImageDump:
  - open circle polymarkers are implemented

Revision 11795 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 15 07:30:17 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/gui/inc/TGPicture.h
File length: 4409 byte(s)
Diff to previous 10701
From Valeriy Onuchin:
- TASImage, TRootBrowser, TGMimeTypes.cxx
  The size of image thumbnail was enlarged from 32x32 to 64x64 pixels.
  Appearance of picture thumbnails was much improved.
- TGPicture. Fix possible buffer overflow in HashName method.
- TRootCanvas.  Possibility to save canvas in XCF format added.
  This format is used in the GIMP (image processing  program).

In general the new method of dynamical creation of object's icon can be
extended for any kind of objects.

Revision 10701 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 7 15:34:27 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/gui/inc/TGPicture.h
File length: 4410 byte(s)
Diff to previous 10337
From Valeriy Onuchin:

- massive update of TImage/TASImage class.
- update rose_image.C macro to demonstrate new features.
- new example hist2image.C added

  I'll try to add more example and documentation asap.

- bug fixes in ROOT gui builder
- TGToolBar, TGShutter now "compatible" with hierarchical cleaning
- mods in TGPicture allow create masked pictures from images.

Revision 10337 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 18 12:47:28 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/gui/inc/TGPicture.h
File length: 4370 byte(s)
Diff to previous 9814
From Valeriy Onuchin:
-  new method GetPicture added to TImage,TASImage classes
  That allows to create TGPicture not only from XPM files but
  also from png, jpg, gif, tiff files.

 An example, of usage:

 TImage *img = TImage::Open("rose512.jpg");
 const TGPicture *pic = img->GetPicture();

 TGPictureButton *btn = new TGPictureButton(parent, pic)

- TGPicturePool::GetPicture(const char *name, Pixmap_t pxmap) added
  That allows to create TGPicture from given pixmap. For example, that will allow,
   to create TGPicture from TPad.

- TGPicturePool::GetPicture(const char *name) return picture for supported
  image formats xpm, png, jpg, gif, tiff
  Now it's possible to create TGPictureButton, TGImageMap from files of  these formats.

- default ROOT browser actions changed for png, jpg, gif, tiff files. That allows
  to browse these file with TBrowser

Revision 9814 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 21 09:32:52 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/gui/inc/TGPicture.h
File length: 4255 byte(s)
Diff to previous 6663
fix memory leak in GetPicture().

Revision 6663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 11:55:32 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/inc/TGPicture.h
File length: 4270 byte(s)
Diff to previous 1205
major changes in the resource management of the GUI classes. Introduced the
new class TGResourcePool which loads and keeps track of the 3 main resource
pools: fonts, picture and graphics contexts. Fonts are now handled via the
new TGFont class (and TGFontPool). In the past the loading of these resources
was done in TGClient and required all GUI classes to have TGClient as friend
to have their global statics initialized by TGClient. Adding a new widget
required TGClient.cxx to be changed too. This was obviously not good.
In addition it is now possible to find the full definition of the original
resource back based on a resource handle (GContext_t or FontStruct_t yielding
a TGGC or TGFont) which is needed for the SavePrimitive() functionality.

The resource pool can be found via TGClient (e.g. gClient->GetResourcePool()).
To see all active graphics contexts, fonts and pictures do:
   gClient->GetResourcePool()->GetGCPool()->Print()
   gClient->GetResourcePool()->GetFontPool()->Print()
   gClient->GetResourcePool()->GetPicturePool()->Print()
For more examples see the widget source code.

These changes are largely backward compatible except maybe for some low
level 3rd party widgets that use some TGFrame internals. In these cases
the following sed command will patch the code:
   sed -e "s/fgBlackGC()/GetBlackGC()()/g" \
       -e "s/fgWhiteGC()/GetWhiteGC()()/g" \
       -e "s/fgHilightGC()/GetHilightGC()()/g" \
       -e "s/fgShadowGC()/GetShadowGC()()/g" \
       -e "s/fgBckgndGC()/GetBckgndGC()()/g" \
       widget.cxx > widget.cxx.new

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/gui/inc/TGPicture.h
File length: 4220 byte(s)
Diff to previous 685
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 08:57:05 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/inc/TGPicture.h
File length: 4218 byte(s)
Diff to previous 3
many change connected with the introduction of the TGGC (graphics context)
class (all backward compatible). Also many of the static default GC's and
fontstructs are now available to the user. This can simplify code in many
places. See change in guitest.cxx.

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/gui/inc/TGPicture.h
File length: 4126 byte(s)
Copied from: branches/rdm/gui/inc/TGPicture.h 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/gui/inc/TGPicture.h
File length: 4126 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