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

Definition at line 71 of file TGLTH3Composition.h.

Public Member Functions

 TGLTH3CompositionPainter (TGLTH3Composition *data, TGLPlotCamera *camera, TGLPlotCoordinates *coord)
 
char * GetPlotInfo (Int_t px, Int_t py)
 Will be never called from TPad. More...
 
Bool_t InitGeometry ()
 
void StartPan (Int_t px, Int_t py)
 Move plot or box cut. 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 &option)
 No options for composition. More...
 
void ProcessEvent (Int_t event, Int_t px, Int_t py)
 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

void InitGL () const
 Initialize some gl state variables. More...
 
void DeInitGL () const
 Return back some gl state variables. More...
 
void DrawPlot () const
 Draw composition of TH3s. More...
 
void DrawSectionXOZ () const
 
void DrawSectionYOZ () const
 
void DrawSectionXOY () const
 
void SetColor (Int_t color) const
 Set material. More...
 
 TGLTH3CompositionPainter (const TGLTH3CompositionPainter &rhs)
 
TGLTH3CompositionPainteroperator= (const TGLTH3CompositionPainter &rhs)
 

Private Attributes

TGLTH3CompositionfData
 
std::pair< Double_t, Double_tfMinMaxVal
 
TGLQuadric fQuadric
 

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 DrawPaletteAxis () const
 Draw. Palette. Axis. 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 <TGLTH3Composition.h>

+ Inheritance diagram for TGLTH3CompositionPainter:
+ Collaboration diagram for TGLTH3CompositionPainter:

Constructor & Destructor Documentation

TGLTH3CompositionPainter::TGLTH3CompositionPainter ( TGLTH3Composition data,
TGLPlotCamera camera,
TGLPlotCoordinates coord 
)
TGLTH3CompositionPainter::TGLTH3CompositionPainter ( const TGLTH3CompositionPainter rhs)
private

Member Function Documentation

void TGLTH3CompositionPainter::AddOption ( const TString option)
virtual

No options for composition.

Implements TGLPlotPainter.

Definition at line 231 of file TGLTH3Composition.cxx.

void TGLTH3CompositionPainter::DeInitGL ( ) const
privatevirtual

Return back some gl state variables.

Implements TGLPlotPainter.

Definition at line 273 of file TGLTH3Composition.cxx.

void TGLTH3CompositionPainter::DrawPlot ( ) const
privatevirtual

Draw composition of TH3s.

Implements TGLPlotPainter.

Definition at line 285 of file TGLTH3Composition.cxx.

void TGLTH3CompositionPainter::DrawSectionXOY ( ) const
inlineprivatevirtual

Implements TGLPlotPainter.

Definition at line 94 of file TGLTH3Composition.h.

void TGLTH3CompositionPainter::DrawSectionXOZ ( ) const
inlineprivatevirtual

Implements TGLPlotPainter.

Definition at line 92 of file TGLTH3Composition.h.

void TGLTH3CompositionPainter::DrawSectionYOZ ( ) const
inlineprivatevirtual

Implements TGLPlotPainter.

Definition at line 93 of file TGLTH3Composition.h.

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

Will be never called from TPad.

Implements TVirtualGLPainter.

Definition at line 125 of file TGLTH3Composition.cxx.

Bool_t TGLTH3CompositionPainter::InitGeometry ( )
virtual

Implements TGLPlotPainter.

Definition at line 133 of file TGLTH3Composition.cxx.

void TGLTH3CompositionPainter::InitGL ( ) const
privatevirtual

Initialize some gl state variables.

Implements TGLPlotPainter.

Definition at line 259 of file TGLTH3Composition.cxx.

TGLTH3CompositionPainter& TGLTH3CompositionPainter::operator= ( const TGLTH3CompositionPainter rhs)
private
void TGLTH3CompositionPainter::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 193 of file TGLTH3Composition.cxx.

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

Switch on/off box cut.

Implements TGLPlotPainter.

Definition at line 238 of file TGLTH3Composition.cxx.

void TGLTH3CompositionPainter::SetColor ( Int_t  color) const
private

Set material.

Definition at line 403 of file TGLTH3Composition.cxx.

Referenced by DrawPlot().

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

Move plot or box cut.

Implements TGLPlotPainter.

Definition at line 181 of file TGLTH3Composition.cxx.

Member Data Documentation

TGLTH3Composition* TGLTH3CompositionPainter::fData
private

Definition at line 98 of file TGLTH3Composition.h.

Referenced by DrawPlot(), and InitGeometry().

std::pair<Double_t, Double_t> TGLTH3CompositionPainter::fMinMaxVal
private

Definition at line 99 of file TGLTH3Composition.h.

Referenced by DrawPlot(), and InitGeometry().

TGLQuadric TGLTH3CompositionPainter::fQuadric
mutableprivate

Definition at line 101 of file TGLTH3Composition.h.

Referenced by DrawPlot().


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