62 fViewerLOD (kLODUndef),
63 fSceneLOD (kLODUndef),
64 fCombiLOD (kLODUndef),
65 fShapeLOD (kLODUndef),
68 fViewerStyle (kStyleUndef),
69 fSceneStyle (kStyleUndef),
79 fDrawPass (kPassUndef),
88 fSelectTransparents (kIfNoOpaques),
230 Warning(
"TGLRnrCtx::EndSelection",
231 "Select buffer size (%d) insufficient, doubling it.",
237 Warning(
"TGLRnrCtx::EndSelection",
238 "Select buffer size (%d) insufficient. This is maximum.",
296 Error(
"PopColorSet()",
"Attempting to remove the last entry.");
409 gluQuadricOrientation(
fQuadric, (GLenum)GLU_OUTSIDE);
410 gluQuadricNormals(
fQuadric, (GLenum)GLU_SMOOTH);
412 Error(
"TGLRnrCtx::GetGluQuadric",
"gluNewQuadric failed");
425 glMatrixMode(GL_PROJECTION);
432 gluPickMatrix(rect.
X(), rect.
Y(), rect.
Width(), rect.
Height(),
435 glMatrixMode(GL_MODELVIEW);
440 glMatrixMode(GL_PROJECTION);
442 glMatrixMode(GL_MODELVIEW);
460 default:
return "Oogaa-dooga style";
TGLSelectBuffer * fSelectBuffer
TGLRnrCtx(const TGLRnrCtx &)
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Class encapsulating a set of colors used throughout standard rendering.
Int_t GetPickRadius()
Return pick radius. If selection is not active it returns 0.
static void Color(const TGLColor &color)
Set color from TGLColor.
void Start()
Start timing.
void ProcessResult(Int_t glResult)
Process result of GL-selection: sort the hits by their minimum z-coordinate.
void ProjectionMatrixPushIdentity()
Double_t Lap() const
Return lap time since Start(), in milliseconds.
Scene base-class – provides basic interface expected by the TGLViewer or its sub-classes: ...
GLUquadric * GetGluQuadric()
Initialize fQuadric.
void ReleaseFont(TGLFont &font)
Release font with given attributes.
void RegisterFontNoScale(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
void StartStopwatch()
Start the stopwatch.
TGLRect * GetPickRectangle()
Return current pick rectangle.
Base class for GL viewers.
GLUquadric * fQuadric
Current GL context identity.
void RegisterFont(Int_t size, Int_t file, TGLFont::EMode mode, TGLFont &out)
Provide font with given size, file and FTGL class.
Encapsulates OpenGL select buffer.
void PushColorSet()
Create copy of current color-set on the top of the stack.
void ColorOrForeground(Color_t col)
Set col if it is different from background, otherwise use current foreground color.
void StopStopwatch()
Stop the stopwatch.
Bool_t IsDrawPassFilled() const
Returns true if current render-pass uses filled polygon style.
Viewport (pixel base) 2D rectangle class.
static const char * StyleName(Short_t style)
Return string describing the style.
void RegisterFont(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
void ProjectionMatrixPop()
Bool_t CanGrow()
static: return true if current buffer is smaller than the max buffer size
void Error(const char *location, const char *msgfmt,...)
void WindowToViewport(Int_t &, Int_t &y) const
void CloseDLCapture()
End display list capture.
TGLContextIdentity * fGLCtxIdentity
DL-capture currently open.
virtual ~TGLRnrCtx()
Destructor.
TGLSceneBase & RefScene()
Return current scene (based on scene-info data).
void Warning(const char *location, const char *msgfmt,...)
TGLFontManager * GetFontManager()
Get the free-type font-manager associated with this context-identity.
std::list< TGLColorSet * > lpTGLColorSet_t
TGLColorSet * ChangeBaseColorSet(TGLColorSet *set)
Change the default/bottom color-set.
void OpenDLCapture()
Start display-list capture.
const Int_t * CArr() const
void EndSelection(Int_t glResult)
End selection.
lpTGLColorSet_t * fColorSetStack
TGLSceneBase * GetScene() const
void BeginSelection(Int_t x, Int_t y, Int_t r=3)
Setup context for running selection.
void ReleaseFont(TGLFont &font)
Release font in the GL rendering context.
TGLSceneBase * GetScene()
Return current scene (based on scene-info data).
void PopColorSet()
Pops the top-most color-set.
Bool_t HasStopwatchTimedOut()
Check if the stopwatch went beyond the render time limit.
TGLColorSet * GetBaseColorSet()
Returns the current base color-set.
void Grow()
Increase size of the select buffer.
A wrapper class for FTFont.
TGLColorSet & ColorSet()
Return reference to current color-set (top of the stack).
TGLSceneInfo * fSceneInfo
Double_t End()
End timing, return total time since Start(), in milliseconds.
void Set(Int_t x, Int_t y, Int_t width, Int_t height)