17#include "TGLIncludes.h" 
   60   fViewerLOD    (kLODUndef),
 
   61   fSceneLOD     (kLODUndef),
 
   62   fCombiLOD     (kLODUndef),
 
   63   fShapeLOD     (kLODUndef),
 
   66   fViewerStyle  (kStyleUndef),
 
   67   fSceneStyle   (kStyleUndef),
 
   77   fDrawPass     (kPassUndef),
 
   86   fSelectTransparents (kIfNoOpaques),
 
  228         Warning(
"TGLRnrCtx::EndSelection",
 
  229                 "Select buffer size (%d) insufficient, doubling it.",
 
  235         Warning(
"TGLRnrCtx::EndSelection",
 
  236                 "Select buffer size (%d) insufficient. This is maximum.",
 
  294      Error(
"PopColorSet()", 
"Attempting to remove the last entry.");
 
  410         Error(
"TGLRnrCtx::GetGluQuadric", 
"gluNewQuadric failed");
 
  423   glMatrixMode(GL_PROJECTION);
 
  433   glMatrixMode(GL_MODELVIEW);
 
  438   glMatrixMode(GL_PROJECTION);
 
  440   glMatrixMode(GL_MODELVIEW);
 
  458      default:                     
return "Oogaa-dooga style";
 
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
 
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
 
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
 
Option_t Option_t TPoint TPoint const char mode
 
void WindowToViewport(Int_t &, Int_t &y) const
 
Class encapsulating a set of colors used throughout standard rendering.
 
TGLFontManager * GetFontManager()
Get the free-type font-manager associated with this context-identity.
 
void RegisterFont(Int_t size, Int_t file, TGLFont::EMode mode, TGLFont &out)
Provide font with given size, file and FTGL class.
 
void ReleaseFont(TGLFont &font)
Release font with given attributes.
 
A wrapper class for FTFont.
 
Viewport (pixel base) 2D rectangle class.
 
void Set(Int_t x, Int_t y, Int_t width, Int_t height)
 
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
 
TGLColorSet * ChangeBaseColorSet(TGLColorSet *set)
Change the default/bottom color-set.
 
std::list< TGLColorSet * > lpTGLColorSet_t
 
void BeginSelection(Int_t x, Int_t y, Int_t r=3)
Setup context for running selection.
 
TGLSceneInfo * fSceneInfo
 
void PopColorSet()
Pops the top-most color-set.
 
Int_t GetPickRadius()
Return pick radius. If selection is not active it returns 0.
 
TGLColorSet * GetBaseColorSet()
Returns the current base color-set.
 
GLUquadric * fQuadric
Current GL context identity.
 
void ReleaseFont(TGLFont &font)
Release font in the GL rendering context.
 
TGLSceneBase * GetScene()
Return current scene (based on scene-info data).
 
void PushColorSet()
Create copy of current color-set on the top of the stack.
 
TGLRect * GetPickRectangle()
Return current pick rectangle.
 
GLUquadric * GetGluQuadric()
Initialize fQuadric.
 
void RegisterFontNoScale(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
 
void CloseDLCapture()
End display list capture.
 
lpTGLColorSet_t * fColorSetStack
 
Bool_t IsDrawPassFilled() const
Returns true if current render-pass uses filled polygon style.
 
TGLSceneBase & RefScene()
Return current scene (based on scene-info data).
 
TGLColorSet & ColorSet()
Return reference to current color-set (top of the stack).
 
TGLRnrCtx(const TGLRnrCtx &)
 
virtual ~TGLRnrCtx()
Destructor.
 
void StartStopwatch()
Start the stopwatch.
 
void RegisterFont(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
 
void StopStopwatch()
Stop the stopwatch.
 
void EndSelection(Int_t glResult)
End selection.
 
void ProjectionMatrixPushIdentity()
 
Bool_t HasStopwatchTimedOut()
Check if the stopwatch went beyond the render time limit.
 
void ColorOrForeground(Color_t col)
Set col if it is different from background, otherwise use current foreground color.
 
TGLSelectBuffer * fSelectBuffer
 
void ProjectionMatrixPop()
 
TGLContextIdentity * fGLCtxIdentity
DL-capture currently open.
 
static const char * StyleName(Short_t style)
Return string describing the style.
 
void OpenDLCapture()
Start display-list capture.
 
Scene base-class – provides basic interface expected by the TGLViewer or its sub-classes:
 
TGLSceneBase * GetScene() const
 
Encapsulates OpenGL select buffer.
 
void ProcessResult(Int_t glResult)
Process result of GL-selection: sort the hits by their minimum z-coordinate.
 
void Grow()
Increase size of the select buffer.
 
Bool_t CanGrow()
static: return true if current buffer is smaller than the max buffer size
 
void Start()
Start timing.
 
Double_t Lap() const
Return lap time since Start(), in milliseconds.
 
Double_t End()
End timing, return total time since Start(), in milliseconds.
 
static void Color(const TGLColor &color)
Set color from TGLColor.
 
Base class for GL viewers.
 
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.