Paint TH3 histograms as "voxels" - colored boxes, transparent if transfer function was specified.
Definition at line 15 of file TGLVoxelPainter.h.
Public Member Functions | |
TGLVoxelPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord) | |
Constructor. | |
void | AddOption (const TString &stringOption) override |
"z" draw palette or not. | |
char * | GetPlotInfo (Int_t px, Int_t py) override |
Show box info (i, j, k, binContent). | |
Bool_t | InitGeometry () override |
Set ranges, find min and max bin content. | |
TClass * | IsA () const override |
void | Pan (Int_t px, Int_t py) override |
User's moving mouse cursor, with middle mouse button pressed (for pad). | |
void | ProcessEvent (Int_t event, Int_t px, Int_t py) override |
Remove sections, switch on/off box cut. | |
void | StartPan (Int_t px, Int_t py) override |
User clicks right mouse button (in a pad). | |
void | Streamer (TBuffer &) override |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TGLPlotPainter | |
TGLPlotPainter (TGL5DDataSet *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord) | |
TGLPlotPainter's ctor. | |
TGLPlotPainter (TGLPlotCamera *camera) | |
TGLPlotPainter's ctor. | |
TGLPlotPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord, Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable) | |
TGLPlotPainter's ctor. | |
Bool_t | CutAxisSelected () const |
Bool_t | GetDrawAxes () |
void | InvalidateSelection () |
Selection must be updated. | |
void | Paint () override |
Draw lego/surf/whatever you can. | |
Bool_t | PlotSelected (Int_t px, Int_t py) override |
Read color buffer content to find selected object. | |
const TGLPlotBox & | RefBackBox () const |
void | SetDrawAxes (Bool_t s) |
void | SetDrawBackBox (Bool_t b) |
void | SetDrawFrontBox (Bool_t b) |
virtual void | SetFrameColor (const TColor *frameColor) |
Set plot's back box color. | |
void | SetPadColor (const TColor *color) |
Used in a pad. | |
void | SetPhysicalShapeColor (const Float_t *rgba) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Public Member Functions inherited from TVirtualGLPainter | |
virtual | ~TVirtualGLPainter () |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TGLPlotPainter | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TVirtualGLPainter | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Member Functions | |
TGLVoxelPainter (const TGLVoxelPainter &)=delete | |
void | DeInitGL () const override |
Return back some gl state variables. | |
void | DrawPalette () const |
Draw. Palette. | |
void | DrawPaletteAxis () const override |
Draw. Palette. Axis. | |
void | DrawPlot () const override |
Draw "voxels". | |
void | DrawSectionXOY () const override |
Noop. | |
void | DrawSectionXOZ () const override |
Noop. | |
void | DrawSectionYOZ () const override |
Noop. | |
void | FindVoxelColor (Double_t binContent, Float_t *rgba) const |
Find box color. | |
Bool_t | HasSections () const |
void | InitGL () const override |
Initialize some gl state variables. | |
TGLVoxelPainter & | operator= (const TGLVoxelPainter &)=delete |
void | PreparePalette () const |
Generate palette. | |
void | SetVoxelColor (const Float_t *rgba) const |
Set box color. | |
Private Attributes | |
std::vector< Double_t > | fLevels |
Rgl::Range_t | fMinMaxVal |
TGLLevelPalette | fPalette |
TString | fPlotInfo |
TF1 * | fTransferFunc |
#include <TGLVoxelPainter.h>
|
privatedelete |
TGLVoxelPainter::TGLVoxelPainter | ( | TH1 * | hist, |
TGLPlotCamera * | cam, | ||
TGLPlotCoordinates * | coord | ||
) |
|
overridevirtual |
"z" draw palette or not.
Implements TGLPlotPainter.
Definition at line 169 of file TGLVoxelPainter.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 61 of file TGLVoxelPainter.h.
|
inlinestatic |
Definition at line 61 of file TGLVoxelPainter.h.
|
overrideprivatevirtual |
Return back some gl state variables.
Implements TGLPlotPainter.
Definition at line 215 of file TGLVoxelPainter.cxx.
|
private |
Draw. Palette.
Definition at line 354 of file TGLVoxelPainter.cxx.
|
overrideprivatevirtual |
Draw. Palette. Axis.
Reimplemented from TGLPlotPainter.
Definition at line 373 of file TGLVoxelPainter.cxx.
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Find box color.
Definition at line 425 of file TGLVoxelPainter.cxx.
Show box info (i, j, k, binContent).
Implements TVirtualGLPainter.
Definition at line 39 of file TGLVoxelPainter.cxx.
|
private |
|
overridevirtual |
Set ranges, find min and max bin content.
Implements TGLPlotPainter.
Definition at line 68 of file TGLVoxelPainter.cxx.
|
overrideprivatevirtual |
Initialize some gl state variables.
Implements TGLPlotPainter.
Definition at line 200 of file TGLVoxelPainter.cxx.
|
inlineoverridevirtual |
Reimplemented from TGLPlotPainter.
Definition at line 61 of file TGLVoxelPainter.h.
|
privatedelete |
User's moving mouse cursor, with middle mouse button pressed (for pad).
Calculate 3d shift related to 2d mouse movement.
Implements TVirtualGLPainter.
Definition at line 123 of file TGLVoxelPainter.cxx.
|
private |
Generate palette.
Definition at line 384 of file TGLVoxelPainter.cxx.
Remove sections, switch on/off box cut.
Implements TGLPlotPainter.
Definition at line 178 of file TGLVoxelPainter.cxx.
|
private |
Set box color.
Definition at line 444 of file TGLVoxelPainter.cxx.
User clicks right mouse button (in a pad).
Implements TGLPlotPainter.
Definition at line 110 of file TGLVoxelPainter.cxx.
|
overridevirtual |
Reimplemented from TGLPlotPainter.
|
inline |
Definition at line 61 of file TGLVoxelPainter.h.
|
mutableprivate |
Definition at line 25 of file TGLVoxelPainter.h.
|
private |
Definition at line 19 of file TGLVoxelPainter.h.
|
mutableprivate |
Definition at line 24 of file TGLVoxelPainter.h.
|
private |
Definition at line 18 of file TGLVoxelPainter.h.
|
private |
Definition at line 59 of file TGLVoxelPainter.h.