library: libRGL
#include "TGLHistPainter.h"

TGLHistPainter


class description - header file - source file
viewCVS header - viewCVS source

class TGLHistPainter: public TVirtualHistPainter

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGLHistPainter(TH1* hist)
~TGLHistPainter()
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* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")
virtual Int_tDistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
virtual voidDrawPanel()
virtual voidTObject::Dump() const
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 voidExecuteEvent(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
virtual voidFitPanel()
virtual TList*GetContourList(Double_t contour) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual TList*GetStack() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
static TVirtualHistPainter*TVirtualHistPainter::HistPainter(TH1* obj)
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() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tIsInside(Int_t x, Int_t y)
virtual Bool_tIsInside(Double_t x, Double_t y)
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
virtual Int_tMakeCuts(char* cutsOpt)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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 voidPaint(Option_t* option)
virtual voidPaintStat(Int_t dostat, TF1* fit)
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual voidProcessMessage(const char* message, const TObject* obj)
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 = "") const
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetHistogram(TH1* hist)
static voidTObject::SetObjectStat(Bool_t stat)
static voidTVirtualHistPainter::SetPainter(const char* painter)
virtual voidSetShowProjection(const char* option, Int_t nbins)
virtual voidSetStack(TList* stack)
virtual voidTObject::SetUniqueID(UInt_t uid)
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
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()
private:
TGLHistPainter(const TGLHistPainter&)
voidCreatePainter(const TGLHistPainter::PlotOption_t& parsed, const TString& option)
TGLHistPainter&operator=(const TGLHistPainter&)
TGLHistPainter::PlotOption_tParsePaintOption(const TString& option) const

Data Members

public:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
auto_ptr<TVirtualHistPainter>fDefaultPainter
auto_ptr<TGLPlotPainter>fGLPainter
TH1*fHist
TF3*fF3
TList*fStack
EGLPlotTypefPlotType
TGLOrthoCamerafCamera
TGLPlotCoordinatesfCoord

Class Description

TGLHistPainter(TH1 *hist)
ROOT does not use exceptions, so, if default painter's creation failed,
fDefaultPainter is 0. In each function, which use it, I have to check the pointer first.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Selects plot or axis. 
9999 is the magic number, ROOT's classes use in DistancetoPrimitive.
void DrawPanel()
Default implementation is OK 
This function is called from a context menu 
after right click on a plot's area. Opens window
("panel") with several controls.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute event.
Events are: mouse events in a plot's area, 
key presses (while mouse cursor is in plot's area).
"Event execution" means one of the following actions:
1. Rotation.
2. Panning.
3. Zoom changing.
4. Moving dynamic profile.
5. Plot specific events - for example, 's' or 'S' key press for TF3.
void FitPanel()
Default implementation is OK.
This function is called from a context menu 
after right click on a plot's area. Opens window
("panel") with several controls.
TList * GetContourList(Double_t contour)
Get contour list.
I do not use this function. Contours are implemented in
a completely different way by gl-painters.
char * GetObjectInfo(Int_t px, Int_t py)
Overrides TObject::GetObjectInfo.
For lego info is: bin numbers (i, j), bin content.
For TF2 info is: x,y,z 3d surface-point for 2d screen-point under cursor
(this can work incorrectly now, because of wrong code in TF2).
For TF3 no info now.
For box info is: bin numbers (i, j, k), bin content.
TList * GetStack()
 Get stack.
Bool_t IsInside(Int_t x, Int_t y)
Returns kTRUE if the cell ix, iy is inside one of the graphical cuts.
I do not use this function anywhere, this is a "default implementation".
Bool_t IsInside(Double_t x, Double_t y)
Returns kTRUE if the cell x, y is inside one of the graphical cuts.
I do not use this function anywhere, this is a "default implementation".
void PaintStat(Int_t dostat, TF1 *fit)
Paint statistics.
This does not work on windows.
void ProcessMessage(const char *m, const TObject *o)
 Process message.
void SetHistogram(TH1 *h)
 Set histogram.
void SetStack(TList *s)
 Set stack.
Int_t MakeCuts(char *o)
 Make cuts.
void Paint(Option_t *o)
Final-overrider for TObject::Paint.
ParsePaintOption(const TString &option)
In principle, we can have several conflicting options: "lego surf pol sph",
but only one will be selected, which one - depends on parsing order in this function.
void CreatePainter(const PlotOption_t &option, const TString &addOption)
 Create painter.
void SetShowProjection(const char *, Int_t)
 Set show projection.
TGLHistPainter(TH1 *hist)

Last update: Wed Dec 6 18:58:14 2006


ROOT page - Class index - Class Hierarchy - Top of the page

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.