ROOT » GRAF3D » GL » TGLVoxelPainter

class TGLVoxelPainter: public TGLPlotPainter


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

Function Members (Methods)

public:
virtual~TGLVoxelPainter()
virtual voidAddOption(const TString& stringOption)
static TClass*Class()
Bool_tTGLPlotPainter::CutAxisSelected() const
Bool_tTGLPlotPainter::GetDrawAxes()
virtual char*GetPlotInfo(Int_t px, Int_t py)
virtual Bool_tInitGeometry()
voidTGLPlotPainter::InvalidateSelection()
virtual TClass*IsA() const
virtual voidTGLPlotPainter::Paint()
virtual voidPan(Int_t px, Int_t py)
virtual Bool_tTGLPlotPainter::PlotSelected(Int_t px, Int_t py)
virtual voidProcessEvent(Int_t event, Int_t px, Int_t py)
const TGLPlotBox&TGLPlotPainter::RefBackBox() const
voidTGLPlotPainter::SetDrawAxes(Bool_t s)
voidTGLPlotPainter::SetDrawBackBox(Bool_t b)
voidTGLPlotPainter::SetDrawFrontBox(Bool_t b)
virtual voidTGLPlotPainter::SetFrameColor(const TColor* frameColor)
voidTGLPlotPainter::SetPadColor(const TColor* color)
voidTGLPlotPainter::SetPhysicalShapeColor(const Float_t* rgba)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStartPan(Int_t px, Int_t py)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLVoxelPainter(TH1* hist, TGLPlotCamera* camera, TGLPlotCoordinates* coord)
private:
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
TGLVoxelPainter(const TGLVoxelPainter&)

Data Members

private:
vector<Double_t>fLevels
Rgl::Range_tfMinMaxVal
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