[root] / trunk / graf2d / asimage / src / TASPaletteEditor.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/asimage/src/TASPaletteEditor.cxx

Parent Directory Parent Directory


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

Revision 45327 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 1 10:20:51 2012 UTC (2 years, 5 months ago) by rdm
File length: 36722 byte(s)
Diff to previous 45075
Integrate native MacOS X Cocoa backend build into build system. On OSX 10.8 the
native Cocoa backend will be build by default. To build X11 backend, install
XQuartz and configure with ./configure --disable-cocoa. On OSX < 10.8 X11
backend is still default and Cocoa backend can be build using the 
--enable-cocoa configure flag.

Revision 45075 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 16 13:05:01 2012 UTC (2 years, 6 months ago) by tpochep
File length: 36724 byte(s)
Diff to previous 37058
Mods in asimage, to compile without X11.

Revision 37058 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 29 09:12:52 2010 UTC (4 years, 1 month ago) by couet
File length: 36639 byte(s)
Diff to previous 36186
- Fix the coverity report #23242

Revision 36186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 8 10:14:24 2010 UTC (4 years, 3 months ago) by brun
File length: 36625 byte(s)
Diff to previous 36078
Mark coverity reports as false positive

Revision 36078 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 09:24:39 2010 UTC (4 years, 3 months ago) by couet
File length: 36515 byte(s)
Diff to previous 36074
- better fix for cov #21790

Revision 36074 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 08:28:09 2010 UTC (4 years, 3 months ago) by couet
File length: 36515 byte(s)
Diff to previous 35995
cov #21790

Revision 35995 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 12:36:21 2010 UTC (4 years, 3 months ago) by couet
File length: 36515 byte(s)
Diff to previous 35911
- coverity #13418

Revision 35911 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 13:27:12 2010 UTC (4 years, 3 months ago) by couet
File length: 36510 byte(s)
Diff to previous 35591
- Fix coverity report: #11076

Revision 35591 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 14:19:16 2010 UTC (4 years, 4 months ago) by couet
File length: 36496 byte(s)
Diff to previous 34286
- sprintf -> snprintf (coverity)

Revision 34286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 20:38:57 2010 UTC (4 years, 6 months ago) by rdm
File length: 36486 byte(s)
Diff to previous 33251
fix format errors related to TString::Form(), TString::Format(), Form()
and Printf().

Revision 33251 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 27 18:55:21 2010 UTC (4 years, 8 months ago) by brun
File length: 36477 byte(s)
Diff to previous 23140
Fix warnings reported by gcc4.5

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: 36450 byte(s)
Diff to previous 22785
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 22785 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 20 14:10:00 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36450 byte(s)
Diff to previous 21231
TDirectory::SaveObjectAs() is not static anymore.

Revision 21231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:22:14 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36450 byte(s)
Diff to previous 20882
change all occurances where %x is used to format a pointer to %lx.

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/asimage/src/TASPaletteEditor.cxx
File length: 36458 byte(s)
Diff to previous 20542
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 20542 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 30 11:38:14 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36458 byte(s)
Diff to previous 19826
From Bertrand:
Solve a problem on Windows where the 'ramps' radio buttons were not
visible and improve their layout.

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/asimage/src/TASPaletteEditor.cxx
File length: 36256 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/asimage/src/TASPaletteEditor.cxx
File length: 36315 byte(s)
Diff to previous 18064
remove :$ from tag line

Revision 18064 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 16:45:48 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36325 byte(s)
Diff to previous 17561
From Bertrand:
- Removal of gClient->GetRoot() in several TGMainFrame ctor.
- Initialize graphics libs at TImage creation time.

Revision 17561 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 29 15:10:49 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36342 byte(s)
Diff to previous 17553
-Add include "TROOT.h" in all implementation files that were assuming
that TROOT was included via TClass.h


-In TClass.h:
 --Remove the include of TROOT.h
 --add the following static member
   static IdMap_t    *fgIdMap;          //Map from typeid to TClass pointer

 --add the following functions:
   static void           AddClass(TClass *cl);
   static void           RemoveClass(TClass *cl);

 --Replace the inline definitions of GetClass functions by
   template <typename T> TClass* GetClass(      T**       /* dummy */) { return GetClass((T*)0); }
   template <typename T> TClass* GetClass(const T**       /* dummy */) { return GetClass((T*)0); }

-In TClass.cxx:
 --Instead of forwarding the calls to gROOT->GetClass, move the code
  originally in TROOT in the TClass::GetClass functions
 --Move class TMapTypeToTClass from TROOT to TClass.

Revision 17553 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 29 10:06:51 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36323 byte(s)
Diff to previous 17455
Add explicit inclusion of "TClass.h" in view of a future removal of TClass.h
from TQObject.h.

Revision 17455 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 09:41:46 2007 UTC (8 years ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36303 byte(s)
Diff to previous 17338
Remove first part of dependency on TFile

Revision 17338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 16:10:11 2007 UTC (8 years ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36487 byte(s)
Diff to previous 12116
Remove TMath.h from TH1.h and add TMath.h to all files previously assuming TMath.h
via TH1.h
This should complete the changes related to TMath.

Revision 12116 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 22 15:37:47 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36468 byte(s)
Diff to previous 12101
From Valeriy Onuchin:
- fix appearence of Palette Editor under M$ windows.
   The effect is because the current conversion from
    RLE compressed image array to ARGB32 one is not "perfect"
    (we are using tile_asimage func). I'll investigate it later.

Revision 12101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 17:09:26 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36468 byte(s)
Diff to previous 11948
From Valeriy and Ilka:

The last patch of Valeriy with some additional comments by Ilka:

- TVirtualX/TGWin32/TGWin32VirtualXProxy, TGQt new methods added
 o unsigned char *GetColorBits(Drawable_t  wid, Int_t  x, Int_t  y,  UInt_t w, U
   Int_t h)rns an array of pixels created from a part of drawable (defined by x, y,
     w, h)n format:  b1, g1, r1, 0,  b2, g2, r2, 0 ... bn, gn, rn, 0 ..
     Pixels are numbered from left to right and from top to bottom.
     By default all pixels from the whole drawable are returned.
     Note that return array is 32-bit aligned

  o Pixmap_t CreatePixmapFromData(unsigned char * bits, UInt_t  width,  UInt_t h
          eight)create pixmap from RGB data. RGB data is in format :
          b1, g1, r1, 0,  b2, g2, r2, 0 ... bn, gn, rn, 0 ..
       Pixels are numbered from left to right and from top to bottom.
       Note that data must be 32-bit aligned

- TGQt (*provided changes do not work; I cannot run rose_image.C tutorials under
 tRoot because of SegV in:
#3  0x0114172a in TGQt::GetWindowID (this=0xa1a2ab8, id=4)
    at qt/src/GQtGUI.cxx:507
#4  0x01b56914 in TASImage::Paint (this=0xaa80d68, option=0xac85d1c "xxx")
    at asimage/src/TASImage.cxx:1047
#5  0x02ddc948 in TPad::PaintModified (this=0xacb85d8)
    at gpad/src/TPad.cxx:2396
#6  0x02ddc834 in TPad::PaintModified (this=0xac1f108)
    at gpad/src/TPad.cxx:2381
#7  0x02db7cdb in TCanvas::Update (this=0xac1f108)
    at gpad/src/TCanvas.cxx:1858
*
TGQt::GetWindowID (this=0xa1a2ab8, id=4)  at qt/src/GQtGUI.cxx:507

    o  corrected an implementation  of "Window_t TGQt::GetWindowID(Int_t id)"
        That allows to run rose_image.C tutorials under QtRoot
    o implemented TGQt::GetCurrentWindow()
        That allows to save canvas/pad in in image formats  by using TASImage cl

- TImage/TASImage:

  o new method added PaintImage(Drawable_t wid, Int_t x, Int_t y) which allows t
  o the Draw option which allows to expand image to the pad size was renamed fro
  o new Draw/Paint option added -  if "z" is specified an image palette is drawn
  o TAttImage: SetPaletteEnabled/IsPaletteEnabled introduced - which allows to s
  o image convertion to gray is now "toggable"
  o new method :PaintImage(Drawable_t wid, Int_t x, Int_t y) introduced which al

- tutorials/galaxy_image.C. Unnecessary "img->SetName("n4254"); was removed

- TPad::Print - remove QtRoot specific code

- TToggle - "sanity" check added

- TGPicture.cxx - *added QtRoot specific code by gVirtualX->InheritsFrom("TGQt")

Revision 11948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 2 10:05:48 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 37118 byte(s)
Diff to previous 11813
From Bertrand:
Make a better behaviour / refresh rate of the palette editor's limit line (at least
on win32).

Revision 11813 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 18 12:31:10 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 37087 byte(s)
Diff to previous 11144
From Valeriy Onuchin:

this patch fixes all compilation problems for
ROOT under windows with VC6 compiler.

- The main problem is that VC6 compiler does not recognize
"long long" type in rootcint generated dictionaries,
To fix this, wherever "long long" type was writen in dictionary file it was
replaced with native win32 "long long" type_string "__int64".
Modified files are: cint/src/val2a.c, cint/src/newlink.c, cint/src/Class.cxx

Other changes:
- many  classes contained "list" variables.
  That produced name_clash with  std::list class name.
- many classes contained
 for (int i=0; ..) {..}
 for (int i=0; ..) {..}
 which caused "duplication of initialisation" bug.

- gl/src/CsgOps.cxx had outside declared templated parameter used inside
  internal function.
- TString Atoi, Atof - std namespace was removed.

_ TASimage - custom Streamer was changed. Reading/writing class version
   was added. That allows to keep "future compatibility"/"schema evolution"
   Demo files galaxy.root, gallery.root were rewritten.

- I rolled back changes in TGPicture class which are related to reading
   of XPM files because of problems under win32.

- TASImage::GetMask method was reimplemented.

- libAfterImage.tar.gz - fix all compilation problem under win32 (vc6)

Revision 11144 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 18 11:22:28 2005 UTC (9 years, 11 months ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 37085 byte(s)
Diff to previous 10701
From Ilka:
In this patch are the necessary changes for Save dialog according to the
last TGFileDialog code with overwrite support.

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/asimage/src/TASPaletteEditor.cxx
File length: 36997 byte(s)
Diff to previous 10367
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 10367 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 22:32:45 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36994 byte(s)
Diff to previous 10362
From Bertrand Bellenot:
Added TASImage::GetPicture() support on win32
Modified TGWin32::GetWindowSize, in order to handle also pixmaps.
Added new TGWin32 method :
static Pixmap_tDIB2Pixmap(ULong_t bmi, ULong_t bmbits);
allowing to convert a DIB (from libAfterImage) into a Pixmap_t
and declared as :
R__EXTERN Pixmap_t (*gDIB2Pixmap)(ULong_t bmbits, ULong_t bmi);
into TVirtualX.h, to avoid to add thisnew method in TVirtualX class.

It can be easily tested with a macro like this :

{
 gSystem->Load("libASImage");
 TImage *img = TImage::Open("Alice.jpg");
 const TGPicture *pic = img->GetPicture();
 TGMainFrame *m = new TGMainFrame(gClient->GetRoot(), 10, 10);
 TGPictureButton *btn = new TGPictureButton(m, pic);
 m->AddFrame(btn);
 m->MapSubwindows();
 m->MapWindow();
 m->Resize();
}

Revision 10362 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 13:11:39 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36995 byte(s)
Diff to previous 6861
From Bertrand:
port of asimage classes to Win32. Includes new version of libAfterImage
that will generate some compiler warnings (known issue) but will hopefully
compile on all platforms (but not yet guarenteed).

Revision 6861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 8 16:39:44 2003 UTC (11 years, 6 months ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36447 byte(s)
Diff to previous 6830
run ranlib on libAfterImage.a on MacOS X, remove two unused variables
in TASPaletteEditor.

Revision 6830 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 5 17:47:33 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36401 byte(s)
Diff to previous 5097
Fix for hp-ux. Loop index pt defined multiple times

Revision 5097 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Aug 9 14:12:22 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/asimage/src/TASPaletteEditor.cxx
File length: 36349 byte(s)
new image processing module. This module needs libAfterImage
(http://afterstep.sourceforge.net/afterimage/) to run. The initial prototype
was made by me, but it has been largely extended by Reiner Rohlfs from
ISDC who added many new features of interest to the astrophysics community.
This is a first release and many things can cleary be added and improved.
Looking forward to feedback and contributions.

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