[root] / trunk / core / base / src / TColor.cxx Repository:
ViewVC logotype

Log of /trunk/core/base/src/TColor.cxx

Parent Directory Parent Directory


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

Revision 49065 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 2 16:05:52 2013 UTC (21 months, 3 weeks ago) by couet
File length: 56058 byte(s)
Diff to previous 48730
New palette (#56) suggested by Ammon Harel: inverted Dark body radiator.

Revision 48730 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 27 12:00:07 2013 UTC (22 months, 3 weeks ago) by couet
File length: 55387 byte(s)
Diff to previous 48358
fix doc

Revision 48358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 21 14:59:09 2013 UTC (2 years ago) by couet
File length: 55383 byte(s)
Diff to previous 45248
TColor::SetPalette, alpha parameter added

Revision 45248 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 27 09:03:56 2012 UTC (2 years, 5 months ago) by couet
File length: 55285 byte(s)
Diff to previous 45228
5 new predefined palettes with 255 colors are available vis SetPalette:
   if ncolors = 51 and colors=0, a Deep Sea palette is used.
   if ncolors = 52 and colors=0, a Grey Scale palette is used.
   if ncolors = 53 and colors=0, a Dark Body Radiator palette is used.
   if ncolors = 54 and colors=0, a two-color hue palette palette is used.(dark blue through neutral gray to bright yellow) 
   if ncolors = 55 and colors=0, a Rain Bow palette is used.

Revision 45228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 26 11:34:02 2012 UTC (2 years, 5 months ago) by couet
File length: 52454 byte(s)
Diff to previous 44556
End_Html was missing

Revision 44556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 5 09:20:41 2012 UTC (2 years, 7 months ago) by axel
File length: 52443 byte(s)
Diff to previous 44507
Remaining fixes for AIX, Solaris after removal of using namespace std from Riostream.h

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: 52425 byte(s)
Diff to previous 43557
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 43557 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 14:31:04 2012 UTC (2 years, 9 months ago) by couet
File length: 52400 byte(s)
Diff to previous 43545
TPad::Print always use TImageDump to print gif, png and jpeg files, in interactive and batch mode (previously it was used in the batch case only). This allows to generate output transparent colors in these formats even in interactive mode. The generation of gif, png and jpeg files from the graphics window in interactive mode is kept for OpenGL canvases.

Revision 43545 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 09:05:38 2012 UTC (2 years, 9 months ago) by couet
File length: 52430 byte(s)
Diff to previous 43534
Transparency in SVG output

Revision 43534 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 28 15:56:50 2012 UTC (2 years, 9 months ago) by couet
File length: 52409 byte(s)
Diff to previous 43507
Doc update: Transparency also works for gif png and jpg outputs when ROOT runs in batch mode.

Revision 43507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 27 15:28:55 2012 UTC (2 years, 9 months ago) by couet
File length: 52360 byte(s)
Diff to previous 40153
Add a paragraph in the doc about transparency.

Revision 40153 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 6 21:32:27 2011 UTC (3 years, 6 months ago) by rdm
File length: 51508 byte(s)
Diff to previous 38510
From Matthew Strait:
improve TColor documentation.

Revision 38510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 18 15:03:34 2011 UTC (3 years, 10 months ago) by couet
File length: 51527 byte(s)
Diff to previous 36391
- Implement a new style called "Clean".

Revision 36391 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 21 09:58:36 2010 UTC (4 years, 3 months ago) by couet
File length: 51527 byte(s)
Diff to previous 35948
- In some doc, CreateGradientColorTable was wrongly mentionned as a TStyle
  method.

Revision 35948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 16:10:00 2010 UTC (4 years, 3 months ago) by brun
File length: 51527 byte(s)
Diff to previous 35564
use snprintf

Revision 35564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 06:44:03 2010 UTC (4 years, 4 months ago) by brun
File length: 51523 byte(s)
Diff to previous 34711
Fix coverity reports

Revision 34711 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 3 08:44:49 2010 UTC (4 years, 5 months ago) by couet
File length: 51563 byte(s)
Diff to previous 33385
- Colors were not saved correctly in C macro when the saving was done
  in batch mode.

Revision 33385 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 5 13:37:59 2010 UTC (4 years, 8 months ago) by couet
File length: 51422 byte(s)
Diff to previous 31282
- Fix a mistake in the doc.

Revision 31282 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 18 16:22:23 2009 UTC (5 years, 2 months ago) by couet
File length: 51346 byte(s)
Diff to previous 30239
- many doc improvements

Revision 30239 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 18 07:37:26 2009 UTC (5 years, 4 months ago) by couet
File length: 46286 byte(s)
Diff to previous 27600
- Documentation improvements (Matthew Strait)

Revision 27600 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 25 08:17:22 2009 UTC (5 years, 10 months ago) by brun
File length: 45324 byte(s)
Diff to previous 24889
From Matthew Strait:
* Fix spelling and grammar errors
* Fold long lines so they don't spill off the right side
* Add spaces for readability
* Standardize notation and style within sections.

Revision 24889 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 18 13:45:31 2008 UTC (6 years, 6 months ago) by pcanal
File length: 45316 byte(s)
Diff to previous 24619
Reduce unwanted side effects of infrastructure code (use TString::Form instead of ::Form).  This fixes https://savannah.cern.ch/bugs/?39007

Revision 24619 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 2 14:25:17 2008 UTC (6 years, 6 months ago) by couet
File length: 45102 byte(s)
Diff to previous 24605
- CreateGradientColorTable now calls TColor::InitializeColors();
  This is needed because is some cases TColor::InitializeColors();
  has not been called before. This problem was reported by:
  https://savannah.cern.ch/bugs/?38382

Revision 24605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 1 09:46:44 2008 UTC (6 years, 6 months ago) by couet
File length: 45069 byte(s)
Diff to previous 22961
- AsHexString was not returning the proper value in case 
  of "IsGrayscale()". Before this change gray scale mode
  did not work in pictures generated in batch.

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 45053 byte(s)
Diff to previous 21623
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

Revision 21623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 14:29:01 2008 UTC (7 years ago) by couet
Original Path: trunk/base/src/TColor.cxx
File length: 45053 byte(s)
Diff to previous 20921
- SetPalette() calls InitializeColors() before defining the deap sea palette.
  Without this call the deap sea palette definition tried to redefine some
  existing colors.

Revision 20921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 20 12:12:54 2007 UTC (7 years, 2 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 45010 byte(s)
Diff to previous 20877
In the TColor destructor delete the static palette when all colors have been deleted.

Revision 20877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:17:07 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 44925 byte(s)
Diff to previous 20723
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 20723 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 8 15:49:59 2007 UTC (7 years, 2 months ago) by couet
Original Path: trunk/base/src/TColor.cxx
File length: 44925 byte(s)
Diff to previous 20459
- Initialise locale variables in RGB2HLS() to prevent valgrind's error messages
  on 64bits linux (lxplus).

Revision 20459 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 24 06:36:20 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 44901 byte(s)
Diff to previous 20291
From Valeri Fine:
Fix a wrong definition of palette[48] (was 112 instead of 2).

Revision 20291 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 10 12:47:37 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/base/src/TColor.cxx
File length: 44903 byte(s)
Diff to previous 20209
- In TColor::InitializeColors() SetPalette is called only if fgPalette.fN == 0.
  fgPalette.fN !=0 means that SetPalette has been, very likely, already called
  from rootlogon.C. Calling it again would reset the palette.

Revision 20209 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 13:08:25 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/base/src/TColor.cxx
File length: 44784 byte(s)
Diff to previous 19826
- Two new functions: RGB2HSV and HSV2RGB to convert a color from RGB to
  HSV system and vice versa (requested by V.Onuchin).

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/base/src/TColor.cxx
File length: 42737 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/base/src/TColor.cxx
File length: 42786 byte(s)
Diff to previous 18437
remove :$ from tag line

Revision 18437 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 30 07:55:27 2007 UTC (7 years, 9 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 42796 byte(s)
Diff to previous 18233
From Bertrand:
make sure that InitalizeGraphics() is properly called.

Revision 18233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 12 07:48:10 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 42743 byte(s)
Diff to previous 18205
Update documentation

Revision 18205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 17:10:34 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 41262 byte(s)
Diff to previous 18198
Implement two new static functions in TColor
Int_t TColor::GetColorBright(Int_t n)
   // Static function: Returns the bright color number corresponding to n
   // If the TColor object does not exist, it is created.
   // The convention is that the bright color nb = n+150

Int_t TColor::GetColorDark(Int_t n)
   // Static function: Returns the dark color number corresponding to n
   // If the TColor object does not exist, it is created.
   // The convention is that the dark color nd = n+100

Revision 18198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 12:21:43 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 39246 byte(s)
Diff to previous 18197
One must include <cmath> for gcc4 (use of the floor function)

Revision 18197 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 12:17:28 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 39228 byte(s)
Diff to previous 18140
-Move the following functions from TStyle to TColor
   static Int_t  CreateGradientColorTable(UInt_t Number, Double_t* Length,
                    Double_t* Red, Double_t* Green, Double_t* Blue, UInt_t NColors);
   static Int_t  GetColorPalette(Int_t i);
   static Int_t  GetNumberOfColors();
   static void   SetPalette(Int_t ncolors, Int_t *colors);

-Move the data member fPalette previously in TStyle as a static member of TColor.

-In TColor::InitializeColors, add the call to TColor::CreateColorWheel
to create all the ROOT ColorWheel colors.

Revision 18140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 2 14:05:46 2007 UTC (7 years, 10 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 24400 byte(s)
Diff to previous 18064
From Bertrand:
move TColor initialization from TApplication to TColor and call the
initialization at the appropriate places. Fixes a number of issues with
colors not being correctly set.

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/base/src/TColor.cxx
File length: 19885 byte(s)
Diff to previous 17306
From Bertrand:
- Removal of gClient->GetRoot() in several TGMainFrame ctor.
- Initialize graphics libs at TImage creation time.

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/base/src/TColor.cxx
File length: 19891 byte(s)
Diff to previous 17299
   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 17299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 12 10:20:08 2007 UTC (8 years ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 19862 byte(s)
Diff to previous 15672
Replace "TMath.h" by <cmath> and calls to
  TMath::Sqrt by sqrt
  TMath::Abs by std::abs
  TMath::Min by std::min
  TMath::Max by std::max

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/base/src/TColor.cxx
File length: 19868 byte(s)
Diff to previous 14452
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 14452 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 28 16:43:04 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 19871 byte(s)
Diff to previous 13258
From Axel:
Patch to set a canvas in grayscale mode (default is color).
New functions in TCanvas and TColor

void TCanvas::SetGrayscale(Bool_t set /*= kTRUE*/)
    Set whether this canvas should be painted in grayscale, and re-paint
    it if necessary.

One can toggle between a grayscale preview and the regular
colored mode using TColor::SetGrayscale(). Note that in grayscale mode,
access via RGB will return grayscale values according to ITU
standards (and close to b&w printer grayscales), while access via
HLS returns de-saturated grayscales.

TCanvas::SetGrayScale is available via the TCanvas context menu.

Revision 13258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 16 20:11:59 2005 UTC (9 years, 2 months ago) by pcanal
Original Path: trunk/base/src/TColor.cxx
File length: 18761 byte(s)
Diff to previous 10701
White spaces and comments update

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/base/src/TColor.cxx
File length: 18762 byte(s)
Diff to previous 10019
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 10019 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 16:39:12 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 18551 byte(s)
Diff to previous 9195
From Ilka:
code for saving any user
specified color via color widgets in a macro. Any color different from
the standard root colors is saved via hex rgb string. Up to now colors
were save via the index and if this index > 228 the running macro causes
SegV.

A new static method SaveColor() is added in TColor class.

Revision 9195 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 14 16:16:37 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 17976 byte(s)
Diff to previous 9055
From Bertrand:
make color matching treshold dependent on number of color planes.

Revision 9055 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 30 15:39:58 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 17771 byte(s)
Diff to previous 8749
From Bertrand Bellenot:
This patch solves the problem of Root colors pointed out by Ilka,
on Win32gdk and linux.

Revision 8749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 30 06:27:23 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 17749 byte(s)
Diff to previous 7520
Improve TColor::GetColor replacing a test on equality of floating point
numbers with a test on the difference (suggested by V.Fine)

Revision 7520 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 5 13:08:26 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 17696 byte(s)
Diff to previous 5518
From Ilka:
Any ROOT GUI can now be saved as a macro. Executing this macro brings back
the current GUI (minus the action handling). This very important development
allows to get easily the source for any GUI, which can then be inspected or
used to create other GUI's. Also this will allow a GUI builder to save and
restore GUI's.

To save the source of a GUI use the methods TGMainFrame::SaveSource() or
TGTransientFrame::SaveSource(), where the latter saves the source for dialogs.

To trigger the saving of any GUI just use ctrl-s.

Revision 5518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 31 07:27:37 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 17167 byte(s)
Diff to previous 5274
Make const all Copy functions.
WARNING: If your class implements a Copy function deriving
from TObject or one of the ROOT classes, you must make
your Copy function const.

Revision 5274 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 13 01:33:38 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 17161 byte(s)
Diff to previous 5141
added several more pixel to rgb and vice versa conversion methods.

Revision 5141 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 17 16:34:28 2002 UTC (12 years, 5 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 12894 byte(s)
Diff to previous 4564
new method GetPixel() and static method Number2Pixel(). Use these methods
to get the pixel value associated with the TColor. This pixel value can
be directly used in the TGxxx GUI classes. For example:
   TCanvas *c = new TCanvas;
   widget->ChangeBackground(TColor::Number2Pixel(c->GetFillColor()));

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/base/src/TColor.cxx
File length: 11443 byte(s)
Diff to previous 3750
Add explicit calls to the base classes copy constructors in the copy constructors.
This is required by gcc on MacOS X

Revision 3750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 23:31:12 2002 UTC (13 years ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 11427 byte(s)
Diff to previous 3748
correct comments in GetColor().

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 11395 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 11395 byte(s)
Diff to previous 3094
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 24 13:16:56 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 11395 byte(s)
Diff to previous 2583
Fix copy constructor to invoke TNamed::copy instead of TObject::Copy.
(thanks to Ivana Hrivnacova)

Revision 2583 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 17 09:06:55 2001 UTC (13 years, 6 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 11388 byte(s)
Diff to previous 2152
added three new static methods:
  TColor::GetColor(Int_t r, Int_t g, Int_t b) with r,g,b in range [0,255]
  TColor::GetColor(Float_t r, Float_t g, Float_t b) with r,g,b in range [0,1]
  TColor::GetColor(const char *hexcolor) with hexcolor of form "#rrggbb"
these methods try to find the color with the specified rgb value in the
list of existing colors, if the color does not exist it will create a
new TColor with the name "#rrggbb", add it to the global list of colors
and return the color number.

Also made the methods HLStoRGB() and RGBtoHLS() static.

Revision 2152 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 9 13:28:55 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 8480 byte(s)
Diff to previous 2136
Use TObjArray::AddAtAndExpand instead of AddAt in the TColor constructor.

Revision 2136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 7 18:41:49 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 8403 byte(s)
Diff to previous 2126
additional MacOS X changes by Keisuke Fujii.

Revision 2126 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 7 00:22:45 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/base/src/TColor.cxx
File length: 8404 byte(s)
Diff to previous 1576
delay the calling of XAllocColor() for systems with >8 planes, also optimize
the number of times XAllocColor() is called for the _dark and _light colors.
XAllocColor() is very expensive since it waits for an answer from the X server
before returning. This optimization reduces the startup time of root.exe from
30sec to 10sec over a 64Kbps ISDN line.

Revision 1576 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 9 21:08:41 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/base/src/TColor.cxx
File length: 8279 byte(s)
Diff to previous 1205
When running in batch mode, set the number of planes to 16 instead of 0.
This fix in TColor::SetRGB solves a problem with wrong color settings in batch mode on Postscript files.

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/base/src/TColor.cxx
File length: 8252 byte(s)
Diff to previous 3
      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 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/base/src/TColor.cxx
File length: 8186 byte(s)
Copied from: branches/rdm/base/src/TColor.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/base/src/TColor.cxx
File length: 8186 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