ROOT logo
ROOT » GRAF3D » GL » TGLVoxelPainter

class TGLVoxelPainter: public TGLPlotPainter


 Paint TH3 histograms as "voxels" - colored boxes, transparent if transfer function was specified.

Function Members (Methods)

private:
TGLVoxelPainter(const TGLVoxelPainter&)
virtual voidDeInitGL() const
voidDrawPalette() const
virtual voidDrawPaletteAxis() const
virtual voidDrawPlot() const
virtual voidDrawSectionXOY() const
virtual voidDrawSectionXOZ() const
virtual voidDrawSectionYOZ() const
voidFindVoxelColor(Double_t binContent, Float_t* rgba) const
Bool_tHasSections() const
virtual voidInitGL() const
TGLVoxelPainter&operator=(const TGLVoxelPainter&)
voidPreparePalette() const
voidSetVoxelColor(const Float_t* rgba) const

Data Members

public:
enum TGLPlotPainter::ESelectionBase { kHighColorSelectionBase
kTrueColorSelectionBase
};
enum TGLPlotPainter::ECutAxisID { kXAxis
kYAxis
kZAxis
};
private:
vector<Double_t>fLevels
pair<double,double>fMinMaxVal
TGLLevelPalettefPalette
TStringfPlotInfo
TF1*fTransferFunc

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLVoxelPainter(TH1* hist, TGLPlotCamera* camera, TGLPlotCoordinates* coord)
 Constructor.
This plot always needs a palette.
char * GetPlotInfo(Int_t px, Int_t py)
Show box info (i, j, k, binContent).
Bool_t InitGeometry()
Set ranges, find min and max bin content.
void StartPan(Int_t px, Int_t py)
 User clicks right mouse button (in a pad).
void Pan(Int_t px, Int_t py)
 User's moving mouse cursor, with middle mouse button pressed (for pad).
 Calculate 3d shift related to 2d mouse movement.
void AddOption(const TString& stringOption)
 "z" draw palette or not.
void ProcessEvent(Int_t event, Int_t px, Int_t py)
 Remove sections, switch on/off box cut.
void InitGL() const
 Initialize some gl state variables.
void DeInitGL() const
 Return back some gl state variables.
void DrawPlot() const
 Draw "voxels".
void DrawSectionXOZ() const
 Noop.
void DrawSectionYOZ() const
 Noop.
void DrawSectionXOY() const
 Noop.
void DrawPalette() const
Draw. Palette.
void DrawPaletteAxis() const
Draw. Palette. Axis.
void PreparePalette() const
Generate palette.
void FindVoxelColor(Double_t binContent, Float_t* rgba) const
 Find box color.
void SetVoxelColor(const Float_t* rgba) const
 Set box color.
TGLVoxelPainter(const TGLVoxelPainter& )
Bool_t HasSections() const