Log of /trunk/core/base/src/TColor.cxx
Parent Directory
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.