ROOT logo
ROOT » GRAF3D » EVE » TEveRGBAPalette

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()
static TClass*TEveRefCnt::Class()
static TClass*TObject::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 TClass*TEveRefCnt::IsA() const
virtual TClass*TObject::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)
TEveRefCnt&TEveRefCnt::operator=(const TEveRefCnt&)
TObject&TObject::operator=(const TObject& rhs)
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 voidTEveRefCnt::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidTObject::ShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
virtual voidTEveRefCnt::Streamer(TBuffer& b)
virtual voidTObject::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidTEveRefCnt::StreamerNVirtual(TBuffer& b)
voidTObject::StreamerNVirtual(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

Data Members

private:
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()
 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() const
 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() const
{ return fMinVal; }
Int_t GetMaxVal() const
{ return fMaxVal; }
Int_t GetLowLimit() const
{ return fLowLimit; }
Int_t GetHighLimit() const
{ return fHighLimit; }
Bool_t GetInterpolate() const
{ return fInterpolate; }
Bool_t GetShowDefValue() const
{ return fShowDefValue; }
void SetShowDefValue(Bool_t v)
{ fShowDefValue = v; }
Int_t GetUnderflowAction() const
{ return fUnderflowAction; }
Int_t GetOverflowAction() const
{ return fOverflowAction; }
void SetUnderflowAction(Int_t a)
void SetOverflowAction(Int_t a)
Color_t GetDefaultColor() const
{ return fDefaultColor; }
Color_t* PtrDefaultColor()
{ return &fDefaultColor; }
UChar_t* GetDefaultRGBA()
{ return fDefaultRGBA; }
const UChar_t* GetDefaultRGBA()
{ return fDefaultRGBA; }
Color_t GetUnderColor() const
{ return fUnderColor; }
Color_t* PtrUnderColor()
{ return &fUnderColor; }
UChar_t* GetUnderRGBA()
{ return fUnderRGBA; }
const UChar_t* GetUnderRGBA()
{ return fUnderRGBA; }
Color_t GetOverColor() const
{ return fOverColor; }
Color_t* PtrOverColor()
{ return &fOverColor; }
UChar_t* GetOverRGBA()
{ return fOverRGBA; }
const UChar_t* GetOverRGBA()
{ return fOverRGBA; }