4 #ifndef ROOT_TGLTH3Composition
5 #define ROOT_TGLTH3Composition
11 #ifndef ROOT_TGLHistPainter
14 #ifndef ROOT_TGLPlotPainter
17 #ifndef ROOT_TGLQuadric
57 typedef std::pair<const TH3 *, ETH3BinShape>
TH3Pair_t;
Camera for TGLPlotPainter and sub-classes.
TGLTH3Composition * fData
void Pan(Int_t px, Int_t py)
User's moving mouse cursor, with middle mouse button pressed (for pad).
void DrawSectionXOZ() const
Wrapper class for GLU quadric shape drawing object.
TGLTH3Composition & operator=(const TGLTH3Composition &)
void ProcessEvent(Int_t event, Int_t px, Int_t py)
Switch on/off box cut.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Check if "this" is under cursor.
void StartPan(Int_t px, Int_t py)
Move plot or box cut.
void DeInitGL() const
Return back some gl state variables.
The 3-D histogram classes derived from the 1-D histogram classes.
void Paint(Option_t *option)
Paint a composition of 3d hists.
std::pair< Double_t, Double_t > fMinMaxVal
ClassDef(TVirtualGLPainter, 0)
Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if ce...
std::vector< TH3Pair_t > fHists
Base class for plot-painters that provide GL rendering of various 2D and 3D histograms, functions and parametric surfaces.
char * GetObjectInfo(Int_t px, Int_t py) const
I cannot show bin content in a status bar - since there can be several bins in one.
std::pair< const TH3 *, ETH3BinShape > TH3Pair_t
3-D histogram with a bype per channel (see TH1 documentation)
void DrawPlot() const
Draw composition of TH3s.
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Mouse and keyboard events.
std::auto_ptr< TGLHistPainter > fPainter
void AddOption(const TString &option)
No options for composition.
char * GetPlotInfo(Int_t px, Int_t py)
Will be never called from TPad.
void InitGL() const
Initialize some gl state variables.
void AddTH3(const TH3 *hist, ETH3BinShape shape=kBox)
Add TH3 into collection.
TGLTH3CompositionPainter & operator=(const TGLTH3CompositionPainter &rhs)
void CheckRanges(const TH3 *hist)
TGLTH3CompositionPainter(TGLTH3Composition *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
void DrawSectionYOZ() const
void DrawSectionXOY() const
void SetColor(Int_t color) const
Set material.