class TEveRGBAPalette: public TObject, public TEveRefCnt


 A generic, speed-optimised mapping from value to RGBA color
 supporting different wrapping and range truncation modes.

Function Members (Methods)

public:
TEveRGBAPalette()
TEveRGBAPalette(Int_t min, Int_t max, Bool_t interp = kFALSE, Bool_t showdef = kTRUE)
virtual~TEveRGBAPalette()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
voidClearColorArray()
virtual TObject*TObject::Clone(const char* newname = "") const
const UChar_t*ColorFromValue(Int_t val) const
voidColorFromValue(Int_t val, UChar_t* pix, Bool_t alpha = kTRUE) const
Bool_tColorFromValue(Int_t val, Int_t defVal, UChar_t* pix, Bool_t alpha = kTRUE) const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
voidTEveRefCnt::DecRefCount()
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
Color_tGetDefaultColor() const
UChar_t*GetDefaultRGBA()
const UChar_t*GetDefaultRGBA() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Int_tGetHighLimit() const
virtual const char*TObject::GetIconName() const
Bool_tGetInterpolate() const
Int_tGetLowLimit() const
Int_tGetMaxVal() const
Int_tGetMinVal() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
Color_tGetOverColor() const
Int_tGetOverflowAction() const
UChar_t*GetOverRGBA()
const UChar_t*GetOverRGBA() const
Bool_tGetShowDefValue() const
virtual const char*TObject::GetTitle() const
Color_tGetUnderColor() const
Int_tGetUnderflowAction() const
UChar_t*GetUnderRGBA()
const UChar_t*GetUnderRGBA() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
voidTEveRefCnt::IncRefCount()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
virtual voidTEveRefCnt::OnZeroRefCount()
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
Color_t*PtrDefaultColor()
Color_t*PtrOverColor()
Color_t*PtrUnderColor()
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetDefaultColor(Color_t ci)
voidSetDefaultColor(Pixel_t pix)
voidSetDefaultColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a = 255)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetInterpolate(Bool_t b)
voidSetLimits(Int_t low, Int_t high)
voidSetLimitsScaleMinMax(Int_t low, Int_t high)
voidSetMax(Int_t max)
voidSetMin(Int_t min)
voidSetMinMax(Int_t min, Int_t max)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetOverColor(Color_t ci)
voidSetOverColor(Pixel_t pix)
voidSetOverColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a = 255)
voidSetOverflowAction(Int_t a)
voidSetShowDefValue(Bool_t v)
voidSetUnderColor(Color_t ci)
voidSetUnderColor(Pixel_t pix)
voidSetUnderColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a = 255)
voidSetUnderflowAction(Int_t a)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetupColorArray() const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
Bool_tWithinVisibleRange(Int_t val) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidSetupColor(Int_t val, UChar_t* pix) const
private:
TEveRGBAPalette(const TEveRGBAPalette&)
TEveRGBAPalette&operator=(const TEveRGBAPalette&)

Data Members

public:
enum ELimitAction_e { kLA_Cut
kLA_Mark
kLA_Clip
kLA_Wrap
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
UChar_t*fColorArray[4*fNBins]
Color_tfDefaultColorColor for when value is not specified
UChar_tfDefaultRGBA[4]
Int_tfHighLimitHigh limit for Min/Max values (used by editor)
Bool_tfInterpolate
Int_tfLowLimitLow limit for Min/Max values (used by editor)
Int_tfMaxVal
Int_tfMinVal
Int_tfNBins
Color_tfOverColorOverflow color
UChar_tfOverRGBA[4]
Int_tfOverflowAction
Int_tTEveRefCnt::fRefCount
Bool_tfShowDefValue
Color_tfUnderColorUnderflow color
UChar_tfUnderRGBA[4]
Int_tfUnderflowAction
static TEveRGBAPalette*fgDefaultPalette

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TEveRGBAPalette(const TEveRGBAPalette& )
 Constructor.
TEveRGBAPalette(Int_t min, Int_t max, Bool_t interp = kFALSE, Bool_t showdef = kTRUE)
 Constructor.
~TEveRGBAPalette()
 Destructor.
void SetupColor(Int_t val, UChar_t* pix) const
 Set RGBA color 'pixel' for signal-value 'val'.
void SetupColorArray()
 Construct internal color array that maps signal value to RGBA color.
void ClearColorArray()
 Clear internal color array.
void SetLimits(Int_t low, Int_t high)
 Set low/high limits on signal value. Current min/max values are
 clamped into the new limits.
void SetLimitsScaleMinMax(Int_t low, Int_t high)
 Set low/high limits and rescale current min/max values.
void SetMin(Int_t min)
 Set current min value.
void SetMax(Int_t max)
 Set current max value.
void SetMinMax(Int_t min, Int_t max)
 Set current min/max values.
void SetInterpolate(Bool_t b)
 Set interpolation flag. This determines how colors from ROOT's
 palette are mapped into RGBA values for given signal.
void SetDefaultColor(Color_t ci)
 Set default color.
void SetDefaultColor(Pixel_t pix)
 Set default color.
void SetDefaultColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a = 255)
 Set default color.
void SetUnderColor(Color_t ci)
 Set underflow color.
void SetUnderColor(Pixel_t pix)
 Set underflow color.
void SetUnderColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a = 255)
 Set underflow color.
void SetOverColor(Color_t ci)
 Set overflow color.
void SetOverColor(Pixel_t pix)
 Set overflow color.
void SetOverColor(UChar_t r, UChar_t g, UChar_t b, UChar_t a = 255)
 Set overflow color.
Bool_t WithinVisibleRange(Int_t val) const
const UChar_t* ColorFromValue(Int_t val) const
void ColorFromValue(Int_t val, UChar_t* pix, Bool_t alpha = kTRUE) const
Bool_t ColorFromValue(Int_t val, Int_t defVal, UChar_t* pix, Bool_t alpha = kTRUE) const
TEveRGBAPalette(const TEveRGBAPalette& )
TEveRGBAPalette& operator=(const TEveRGBAPalette& )
Int_t GetMinVal()
{ return fMinVal; }
Int_t GetMaxVal()
{ return fMaxVal; }
Int_t GetLowLimit()
{ return fLowLimit; }
Int_t GetHighLimit()
{ return fHighLimit; }
Bool_t GetInterpolate()
{ return fInterpolate; }
Bool_t GetShowDefValue()
{ return fShowDefValue; }
void SetShowDefValue(Bool_t v)
{ fShowDefValue = v; }
Int_t GetUnderflowAction()
{ return fUnderflowAction; }
Int_t GetOverflowAction()
{ return fOverflowAction; }
void SetUnderflowAction(Int_t a)
{ fUnderflowAction = a; }
void SetOverflowAction(Int_t a)
{ fOverflowAction = a; }
Color_t GetDefaultColor()
{ return fDefaultColor; }
Color_t* PtrDefaultColor()
{ return &fDefaultColor; }
UChar_t* GetDefaultRGBA()
{ return fDefaultRGBA; }
const UChar_t* GetDefaultRGBA()
{ return fDefaultRGBA; }
Color_t GetUnderColor()
{ return fUnderColor; }
Color_t* PtrUnderColor()
{ return &fUnderColor; }
UChar_t* GetUnderRGBA()
{ return fUnderRGBA; }
const UChar_t* GetUnderRGBA()
{ return fUnderRGBA; }
Color_t GetOverColor()
{ return fOverColor; }
Color_t* PtrOverColor()
{ return &fOverColor; }
UChar_t* GetOverRGBA()
{ return fOverRGBA; }
const UChar_t* GetOverRGBA()
{ return fOverRGBA; }

Last change: root/eve:$Id: TEveRGBAPalette.h 21215 2007-12-05 17:19:23Z matevz $
Last generated: 2008-06-25 08:37
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.