[root] / trunk / graf2d / graf / src / TAttImage.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/graf/src/TAttImage.cxx

Parent Directory Parent Directory


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

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: 26332 byte(s)
Diff to previous 41309
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 41309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 10 14:59:54 2011 UTC (3 years, 3 months ago) by couet
File length: 26312 byte(s)
Diff to previous 31637
Fix coverity report #33651

Revision 31637 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 10:41:23 2009 UTC (5 years, 1 month ago) by couet
File length: 26226 byte(s)
Diff to previous 23140
- Initialize members (coverity)

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: 26105 byte(s)
Diff to previous 20882
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 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/graf/src/TAttImage.cxx
File length: 26105 byte(s)
Diff to previous 20500
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 20500 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 26 10:59:06 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/graf/src/TAttImage.cxx
File length: 26105 byte(s)
Diff to previous 19826
From valeriy:
o TASImage.h, TASImage.cxx, TImage.h
  new method was introduced GetVecArray  
  Returns a pointer to internal array[width x height] of double values [0, 1]
  This array is directly accessible. That allows to manipulate/change the image.

o TASImage::GetArray
  Fix to return correct array (previously it was truncated when 
  x, y shift position were not zeros).

o TASImage::GetPolygonSpans
  Fix segv when producing images from some Rene's macro.

o fix segv. when image is drawn in canvas and canvas resized.

o TAttImage.cxx
  For "Pretty Palette with a Spectrum Violet->Red" set 
  white color to zeros.

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/graf/src/TAttImage.cxx
File length: 24430 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/graf/src/TAttImage.cxx
File length: 24482 byte(s)
Diff to previous 17437
remove :$ from tag line

Revision 17437 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 22 15:47:55 2007 UTC (8 years ago) by couet
Original Path: trunk/graf/src/TAttImage.cxx
File length: 24492 byte(s)
Diff to previous 17306
From Valeri Onuchin:
- TImagePalette:
  New constructor TImagePalette::TImagePalette(Int_t ncolors, Int_t *colors)
  added. This allows to create image palette corresponding to
  TStyle::SetPalette method.
  This constructor is "100% compatible" with TStyle::SetPalette method.
  To test it, one can run tutorials/image/hist2image.C by creating "rainbow
  palette":
  TImagePalette *pal = new TImagePalette(1, 0);

Revision 17306 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 12 16:03:17 2007 UTC (8 years ago) by brun
Original Path: trunk/graf/src/TAttImage.cxx
File length: 20721 byte(s)
Diff to previous 15672
   TMath::Abs, TMath::Min, TMath::Max, TMath::Sign, TMath::Range
These functions are unfortunately not defined in a standard way in std::

This include is referenced by a new version of TMath.h.
As a result, TMath.h is back compatible with the previous version.

TMathBase.h is used in place of TMath.h in all the classes
that will go into the future miniCore library.
TMath.h and the TMath implementation will go into a new math sub-directory.

TString.h uses TMathBase.h instead of TMath.h.
As a result, it was necessary to include "TMath.h" in some classes
assuming that TMath was included via TString and using other functions
than the ones defined in TMathBase.h
 ----------------------------------------------------------------------

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/graf/src/TAttImage.cxx
File length: 20701 byte(s)
Diff to previous 12589
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 12589 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 2 10:22:55 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TAttImage.cxx
File length: 20702 byte(s)
Diff to previous 12101
Fix coding conventions violations.

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/graf/src/TAttImage.cxx
File length: 20689 byte(s)
Diff to previous 11857
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 11857 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 15:46:40 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/graf/src/TAttImage.cxx
File length: 20633 byte(s)
Diff to previous 11198
From Matthieu Beaumel:
fix name of gHistImagePalette and gWebImagePalette in class description.

Revision 11198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 28 16:40:03 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TAttImage.cxx
File length: 20633 byte(s)
Diff to previous 11197
fColorAlpha[i] should be initialized to 0xffff.

Revision 11197 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 28 15:42:42 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TAttImage.cxx
File length: 20635 byte(s)
Diff to previous 10701
changed:
                 fColorAlpha[i] = 1 << 16;
to
                 fColorAlpha[i] = 1 << 15;
since fColorAlpha[i] is a UShort_t.

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/graf/src/TAttImage.cxx
File length: 20639 byte(s)
Diff to previous 5717
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 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/graf/src/TAttImage.cxx
File length: 14295 byte(s)
Diff to previous 5101
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 5101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 9 16:43:30 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/graf/src/TAttImage.cxx
File length: 14276 byte(s)
Diff to previous 5096
fix some warning and Alpha compile problem.

Revision 5096 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Aug 9 13:56:00 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/graf/src/TAttImage.cxx
File length: 14214 byte(s)
abstract image classes. Concrete implementation based on libAfterImage is
following.

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