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.");
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";
void Error(const char *location, const char *msgfmt,...)
void Warning(const char *location, const char *msgfmt,...)
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.