ROOT  6.06/09
Reference Guide
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TGLVoxelPainter Class Reference

Definition at line 24 of file TGLVoxelPainter.h.

Public Member Functions

 TGLVoxelPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
 
char * GetPlotInfo (Int_t px, Int_t py)
 Show box info (i, j, k, binContent). More...
 
Bool_t InitGeometry ()
 Set ranges, find min and max bin content. More...
 
void StartPan (Int_t px, Int_t py)
 User clicks right mouse button (in a pad). More...
 
void Pan (Int_t px, Int_t py)
 User's moving mouse cursor, with middle mouse button pressed (for pad). More...
 
void AddOption (const TString &stringOption)
 "z" draw palette or not. More...
 
void ProcessEvent (Int_t event, Int_t px, Int_t py)
 Remove sections, switch on/off box cut. More...
 
- Public Member Functions inherited from TGLPlotPainter
 TGLPlotPainter (TH1 *hist, TGLPlotCamera *camera, TGLPlotCoordinates *coord, Bool_t xoySelectable, Bool_t xozSelectable, Bool_t yozSelectable)
 
 TGLPlotPainter (TGL5DDataSet *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
 TGLPlotPainter's ctor. More...
 
 TGLPlotPainter (TGLPlotCamera *camera)
 TGLPlotPainter's ctor. More...
 
const TGLPlotBoxRefBackBox () const
 
void SetPhysicalShapeColor (const Float_t *rgba)
 
virtual void Paint ()
 Draw lego/surf/whatever you can. More...
 
virtual Bool_t PlotSelected (Int_t px, Int_t py)
 Read color buffer content to find selected object. More...
 
void SetPadColor (const TColor *color)
 Used in a pad. More...
 
virtual void SetFrameColor (const TColor *frameColor)
 Set plot's back box color. More...
 
void InvalidateSelection ()
 Selection must be updated. More...
 
Bool_t CutAxisSelected () const
 
void SetDrawFrontBox (Bool_t b)
 
void SetDrawBackBox (Bool_t b)
 
void SetDrawAxes (Bool_t s)
 
Bool_t GetDrawAxes ()
 
- Public Member Functions inherited from TVirtualGLPainter
virtual ~TVirtualGLPainter ()
 
 ClassDef (TVirtualGLPainter, 0)
 

Private Member Functions

 TGLVoxelPainter (const TGLVoxelPainter &)
 
TGLVoxelPainteroperator= (const TGLVoxelPainter &)
 
void InitGL () const
 Initialize some gl state variables. More...
 
void DeInitGL () const
 Return back some gl state variables. More...
 
void DrawPlot () const
 Draw "voxels". More...
 
void DrawSectionXOZ () const
 Noop. More...
 
void DrawSectionYOZ () const
 Noop. More...
 
void DrawSectionXOY () const
 Noop. More...
 
void DrawPalette () const
 Draw. Palette. More...
 
void DrawPaletteAxis () const
 Draw. Palette. Axis. More...
 
void FindVoxelColor (Double_t binContent, Float_t *rgba) const
 Find box color. More...
 
void SetVoxelColor (const Float_t *rgba) const
 Set box color. More...
 
Bool_t HasSections () const
 
void PreparePalette () const
 Generate palette. More...
 

Private Attributes

TString fPlotInfo
 
Rgl::Range_t fMinMaxVal
 
TGLLevelPalette fPalette
 
std::vector< Double_tfLevels
 
TF1fTransferFunc
 

Additional Inherited Members

- Public Types inherited from TGLPlotPainter
enum  ECutAxisID { kXAxis = 7, kYAxis = 8, kZAxis = 9 }
 
- Protected Types inherited from TGLPlotPainter
enum  ESelectionBase { kHighColorSelectionBase = 7, kTrueColorSelectionBase = 10 }
 
- Protected Member Functions inherited from TGLPlotPainter
const TColorGetPadColor () const
 Get pad color. More...
 
void MoveSection (Int_t px, Int_t py)
 Create dynamic profile using selected plane. More...
 
void DrawSections () const
 Draw sections (if any). More...
 
virtual void ClearBuffers () const
 
void PrintPlot () const
 Generate PS using gl2ps. More...
 
void SaveModelviewMatrix () const
 
void SaveProjectionMatrix () const
 
void RestoreModelviewMatrix () const
 
void RestoreProjectionMatrix () const
 
- Protected Attributes inherited from TGLPlotPainter
const Float_tfPhysicalShapeColor
 
Double_t fPadPhi
 
Double_t fPadTheta
 
TH1fHist
 
TAxisfXAxis
 
TAxisfYAxis
 
TAxisfZAxis
 
TGLPlotCoordinatesfCoord
 
TGLPlotCamerafCamera
 
TGLSelectionBuffer fSelection
 
Bool_t fUpdateSelection
 
Bool_t fSelectionPass
 
Int_t fSelectedPart
 
TPoint fMousePosition
 
Double_t fXOZSectionPos
 
Double_t fYOZSectionPos
 
Double_t fXOYSectionPos
 
TGLPlotBox fBackBox
 
TGLBoxCut fBoxCut
 
std::vector< Double_tfZLevels
 
Bool_t fHighColor
 
Int_t fSelectionBase
 
Bool_t fDrawPalette
 
Bool_t fDrawAxes
 

#include <TGLVoxelPainter.h>

+ Inheritance diagram for TGLVoxelPainter:
+ Collaboration diagram for TGLVoxelPainter:

Constructor & Destructor Documentation

TGLVoxelPainter::TGLVoxelPainter ( const TGLVoxelPainter )
private
TGLVoxelPainter::TGLVoxelPainter ( TH1 hist,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)

Member Function Documentation

void TGLVoxelPainter::AddOption ( const TString stringOption)
virtual

"z" draw palette or not.

Implements TGLPlotPainter.

Definition at line 170 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::DeInitGL ( ) const
privatevirtual

Return back some gl state variables.

Implements TGLPlotPainter.

Definition at line 216 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::DrawPalette ( ) const
private

Draw. Palette.

Definition at line 347 of file TGLVoxelPainter.cxx.

Referenced by DrawPlot().

void TGLVoxelPainter::DrawPaletteAxis ( ) const
privatevirtual

Draw. Palette. Axis.

Reimplemented from TGLPlotPainter.

Definition at line 366 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::DrawPlot ( ) const
privatevirtual

Draw "voxels".

Implements TGLPlotPainter.

Definition at line 228 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::DrawSectionXOY ( ) const
privatevirtual

Noop.

Implements TGLPlotPainter.

Definition at line 340 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::DrawSectionXOZ ( ) const
privatevirtual

Noop.

Implements TGLPlotPainter.

Definition at line 325 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::DrawSectionYOZ ( ) const
privatevirtual

Noop.

Implements TGLPlotPainter.

Definition at line 332 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::FindVoxelColor ( Double_t  binContent,
Float_t rgba 
) const
private

Find box color.

Definition at line 418 of file TGLVoxelPainter.cxx.

Referenced by DrawPlot().

char * TGLVoxelPainter::GetPlotInfo ( Int_t  px,
Int_t  py 
)
virtual

Show box info (i, j, k, binContent).

Implements TVirtualGLPainter.

Definition at line 40 of file TGLVoxelPainter.cxx.

Bool_t TGLVoxelPainter::HasSections ( ) const
private
Bool_t TGLVoxelPainter::InitGeometry ( )
virtual

Set ranges, find min and max bin content.

Implements TGLPlotPainter.

Definition at line 69 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::InitGL ( ) const
privatevirtual

Initialize some gl state variables.

Implements TGLPlotPainter.

Definition at line 201 of file TGLVoxelPainter.cxx.

TGLVoxelPainter& TGLVoxelPainter::operator= ( const TGLVoxelPainter )
private
void TGLVoxelPainter::Pan ( Int_t  px,
Int_t  py 
)
virtual

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 124 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::PreparePalette ( ) const
private

Generate palette.

Definition at line 377 of file TGLVoxelPainter.cxx.

Referenced by DrawPlot().

void TGLVoxelPainter::ProcessEvent ( Int_t  event,
Int_t  px,
Int_t  py 
)
virtual

Remove sections, switch on/off box cut.

Implements TGLPlotPainter.

Definition at line 179 of file TGLVoxelPainter.cxx.

void TGLVoxelPainter::SetVoxelColor ( const Float_t rgba) const
private

Set box color.

Definition at line 437 of file TGLVoxelPainter.cxx.

Referenced by DrawPlot().

void TGLVoxelPainter::StartPan ( Int_t  px,
Int_t  py 
)
virtual

User clicks right mouse button (in a pad).

Implements TGLPlotPainter.

Definition at line 111 of file TGLVoxelPainter.cxx.

Member Data Documentation

std::vector<Double_t> TGLVoxelPainter::fLevels
mutableprivate

Definition at line 34 of file TGLVoxelPainter.h.

Referenced by DrawPalette(), and PreparePalette().

Rgl::Range_t TGLVoxelPainter::fMinMaxVal
private

Definition at line 28 of file TGLVoxelPainter.h.

Referenced by DrawPaletteAxis(), DrawPlot(), InitGeometry(), and PreparePalette().

TGLLevelPalette TGLVoxelPainter::fPalette
mutableprivate

Definition at line 33 of file TGLVoxelPainter.h.

Referenced by DrawPalette(), FindVoxelColor(), and PreparePalette().

TString TGLVoxelPainter::fPlotInfo
private

Definition at line 27 of file TGLVoxelPainter.h.

Referenced by GetPlotInfo().

TF1* TGLVoxelPainter::fTransferFunc
private

Definition at line 68 of file TGLVoxelPainter.h.

Referenced by FindVoxelColor(), and InitGeometry().


The documentation for this class was generated from the following files: