26#include "TGLIncludes.h"
59 fM = SetModelDynCast<TH2>(obj);
82 pos = option.
Index(
"bb");
86 pos = option.
Index(
"a");
110 glPushAttrib(GL_ENABLE_BIT | GL_LIGHTING_BIT);
112 glEnable(GL_NORMALIZE);
113 glDisable(GL_COLOR_MATERIAL);
118 glDisable(GL_CULL_FACE);
Utility class to paint axis in GL.
void PlotStandard(TGLRnrCtx &rnrCtx, TH1 *histo, const TGLBoundingBox &bbox)
void SetUseAxisColors(Bool_t x)
void SetFontMode(TGLFont::EMode m)
void Set(const TGLVertex3 vertex[8])
Set a bounding box from provided 8 vertices.
Plot-painter implementing LEGO rendering of TH2 histograms in cartesian, polar, cylindrical and spher...
TGLBoundingBox fBoundingBox
Also plays the role of ID.
Description of TGLPlot3D.
TGLPlotCoordinates fCoord
TGLPlotPainter * fPlotPainter
void SetPainter(TGLPlotPainter *p)
Set painter object and destroy the old one.
Int_t FindFrontPoint() const
Convert 3d points into window coordinate system and find the nearest.
const TGLVertex3 * Get3DBox() const
Get 3D box.
void SetCoordType(EGLCoordType type)
If coord type was changed, plot must reset sections (if any), set fModified.
const TGLPlotBox & RefBackBox() const
void SetDrawAxes(Bool_t s)
virtual void DrawPlot() const =0
virtual Bool_t InitGeometry()=0
void SetDrawBackBox(Bool_t b)
void SetDrawFrontBox(Bool_t b)
virtual void InitGL() const =0
virtual void AddOption(const TString &stringOption)=0
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Implements painting of TH2 with "SURF" option.
Rendering of TH2 and derived classes.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render the object.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual ~TH2GL()
Destructor.
virtual void SetBBox()
Setup bounding-box.
Mother of all ROOT objects.
void ToLower()
Change string to lower-case.
TString & Remove(Ssiz_t pos)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const