[root] / trunk / core / base / inc / TColor.h Repository:
ViewVC logotype

Log of /trunk/core/base/inc/TColor.h

Parent Directory Parent Directory


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

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: 6706 byte(s)
Diff to previous 44507
TColor::SetPalette, alpha parameter added

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: 6673 byte(s)
Diff to previous 43719
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 43719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 12 23:00:08 2012 UTC (2 years, 9 months ago) by rdm
File length: 6668 byte(s)
Diff to previous 43459
From Timur:
MacOS X native Cocoa/Quartz based backend. To build this version do:
   ./configure --enable-cocoa
Code is still rough but will be refined quickly for the May release.

Revision 43459 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 23 09:58:11 2012 UTC (2 years, 10 months ago) by couet
File length: 6658 byte(s)
Diff to previous 30239
Add the method SetAlpha do set the alpha value of a color.

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: 6605 byte(s)
Diff to previous 22961
- Documentation improvements (Matthew Strait)

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: 6606 byte(s)
Diff to previous 20877
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

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/inc/TColor.h
File length: 6606 byte(s)
Diff to previous 20209
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 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/inc/TColor.h
File length: 6606 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/inc/TColor.h
File length: 6414 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/inc/TColor.h
File length: 6461 byte(s)
Diff to previous 18329
remove :$ from tag line

Revision 18329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 19 01:49:30 2007 UTC (7 years, 10 months ago) by rdm
Original Path: trunk/base/inc/TColor.h
File length: 6471 byte(s)
Diff to previous 18205
fix double to float truncation warning.

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/inc/TColor.h
File length: 6468 byte(s)
Diff to previous 18197
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 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/inc/TColor.h
File length: 6375 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/inc/TColor.h
File length: 5722 byte(s)
Diff to previous 15672
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 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/inc/TColor.h
File length: 5604 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/inc/TColor.h
File length: 5605 byte(s)
Diff to previous 10752
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 10752 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 10 15:54:15 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/base/inc/TColor.h
File length: 5166 byte(s)
Diff to previous 10701
We added a new member fAlpha in TColor, but the ClassDef was not changed.
This problem was detected in the auto schema evolution tests for x.root
and x.xml files that we are currently running with Sergei Linev.

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/inc/TColor.h
File length: 5165 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/inc/TColor.h
File length: 5042 byte(s)
Diff to previous 7520
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 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/inc/TColor.h
File length: 4988 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/inc/TColor.h
File length: 4920 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/inc/TColor.h
File length: 4914 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/inc/TColor.h
File length: 4069 byte(s)
Diff to previous 2583
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 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/inc/TColor.h
File length: 3949 byte(s)
Diff to previous 2126
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 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/inc/TColor.h
File length: 3782 byte(s)
Diff to previous 1205
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 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/inc/TColor.h
File length: 2936 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/inc/TColor.h
File length: 2818 byte(s)
Copied from: branches/rdm/base/inc/TColor.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/base/inc/TColor.h
File length: 2818 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