ROOT
Version v6.34
master
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
▼
graf3d
►
eve
►
eve7
►
g3d
▼
gl
doc
▼
inc
TArcBall.h
TF2GL.h
TGL5D.h
TGL5DDataSetEditor.h
►
TGL5DPainter.h
TGLAdapter.h
TGLAnnotation.h
TGLAutoRotator.h
TGLAxis.h
TGLAxisPainter.h
TGLBoundingBox.h
TGLBoxPainter.h
TGLCamera.h
TGLCameraGuide.h
TGLCameraOverlay.h
TGLClip.h
TGLClipSetEditor.h
TGLContext.h
TGLCylinder.h
TGLEmbeddedViewer.h
TGLEventHandler.h
TGLFaceSet.h
TGLFBO.h
TGLFontManager.h
TGLFormat.h
TGLH2PolyPainter.h
TGLHistPainter.h
►
TGLIsoMesh.h
TGLLegoPainter.h
TGLLightSet.h
►
TGLLightSetEditor.h
►
TGLLockable.h
TGLLogicalShape.h
TGLManip.h
TGLManipSet.h
►
TGLMarchingCubes.h
TGLObject.h
TGLOrthoCamera.h
TGLOutput.h
TGLOverlay.h
TGLOverlayButton.h
TGLPadPainter.h
►
TGLPadUtils.h
►
TGLParametric.h
TGLParametricEquationGL.h
TGLPerspectiveCamera.h
TGLPhysicalShape.h
TGLPlot3D.h
TGLPlotBox.h
TGLPlotCamera.h
►
TGLPlotPainter.h
TGLPolyLine.h
TGLPolyMarker.h
TGLPShapeObj.h
TGLPShapeObjEditor.h
TGLPShapeRef.h
TGLQuadric.h
TGLRnrCtx.h
TGLRotateManip.h
TGLSAFrame.h
TGLSAViewer.h
TGLScaleManip.h
►
TGLScene.h
TGLSceneBase.h
TGLSceneInfo.h
TGLScenePad.h
TGLSdfFontMaker.h
TGLSelectBuffer.h
TGLSelectRecord.h
TGLSphere.h
TGLStopwatch.h
►
TGLSurfacePainter.h
TGLText.h
TGLTF3Painter.h
TGLTH3Composition.h
TGLTransManip.h
►
TGLUtil.h
►
TGLViewer.h
TGLViewerBase.h
TGLViewerEditor.h
TGLVoxelPainter.h
TGLWidget.h
TGLWSIncludes.h
TH2GL.h
TH3GL.h
►
TKDEAdapter.h
►
TKDEFGT.h
TPointSet3DGL.h
TX11GL.h
►
src
►
gviz3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-34-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TGLAdapter.h
Go to the documentation of this file.
1
// @(#)root/gl:$Id$
2
// Author: Timur Pocheptsov, Jun 2007
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
#ifndef ROOT_TGLAdapter
13
#define ROOT_TGLAdapter
14
15
#include "
TVirtualGL.h
"
16
17
class
TGLAdapter
:
public
TGLPaintDevice
{
18
private
:
19
Int_t
fGLDevice
;
20
21
public
:
22
explicit
TGLAdapter
(
Int_t
glDevice
= -1);
23
24
Bool_t
MakeCurrent
()
override
;
25
void
SwapBuffers
()
override
;
26
const
TGLFormat
*
GetPixelFormat
()
const override
{
return
nullptr
;}
27
const
TGLContext
*
GetContext
()
const override
{
return
nullptr
;}
28
29
void
SetGLDevice
(
Int_t
glDevice
)
30
{
31
fGLDevice
=
glDevice
;
32
}
33
34
void
ReadGLBuffer
();
35
void
SelectOffScreenDevice
();
36
void
MarkForDirectCopy
(
Bool_t
isDirect
);
37
void
ExtractViewport
(
Int_t
*
vp
)
const override
;
38
39
private
:
40
TGLAdapter
(
const
TGLAdapter
&);
41
TGLAdapter
&
operator =
(
const
TGLAdapter
&);
42
43
void
AddContext
(
TGLContext
*)
override
{}
44
void
RemoveContext
(
TGLContext
*)
override
{}
45
46
ClassDefOverride
(
TGLAdapter
, 0)
// Allow plot-painters to be used for gl-inpad and gl-viewer.
47
};
48
49
#endif
Bool_t
bool Bool_t
Definition
RtypesCore.h:63
Int_t
int Int_t
Definition
RtypesCore.h:45
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
MarkForDirectCopy
winID h MarkForDirectCopy
Definition
TGWin32VirtualGLProxy.cxx:43
TVirtualGL.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TGLAdapter
Allow plot-painters to be used for gl-inpad and gl-viewer.
Definition
TGLAdapter.h:17
TGLAdapter::SelectOffScreenDevice
void SelectOffScreenDevice()
Select off-screen device for rendering.
Definition
TGLAdapter.cxx:73
TGLAdapter::ReadGLBuffer
void ReadGLBuffer()
Read gl buffer into x-pixmap.
Definition
TGLAdapter.cxx:57
TGLAdapter::operator=
TGLAdapter & operator=(const TGLAdapter &)
TGLAdapter::TGLAdapter
TGLAdapter(const TGLAdapter &)
TGLAdapter::TGLAdapter
TGLAdapter(Int_t glDevice=-1)
Constructor.
Definition
TGLAdapter.cxx:24
TGLAdapter::GetPixelFormat
const TGLFormat * GetPixelFormat() const override
Definition
TGLAdapter.h:26
TGLAdapter::GetContext
const TGLContext * GetContext() const override
Definition
TGLAdapter.h:27
TGLAdapter::ExtractViewport
void ExtractViewport(Int_t *vp) const override
Extract viewport from gl.
Definition
TGLAdapter.cxx:65
TGLAdapter::SwapBuffers
void SwapBuffers() override
Swap front/back buffers.
Definition
TGLAdapter.cxx:40
TGLAdapter::SetGLDevice
void SetGLDevice(Int_t glDevice)
Definition
TGLAdapter.h:29
TGLAdapter::fGLDevice
Int_t fGLDevice
Definition
TGLAdapter.h:19
TGLAdapter::AddContext
void AddContext(TGLContext *) override
Definition
TGLAdapter.h:43
TGLAdapter::RemoveContext
void RemoveContext(TGLContext *) override
Definition
TGLAdapter.h:44
TGLAdapter::MakeCurrent
Bool_t MakeCurrent() override
Set as current GL context.
Definition
TGLAdapter.cxx:32
TGLContext
This class encapsulates window-system specific information about a GL-context and alows their proper ...
Definition
TGLContext.h:31
TGLFormat
Encapsulation of format / contents of an OpenGL buffer.
Definition
TGLFormat.h:36
TGLPaintDevice
Definition
TVirtualGL.h:142
bool
int
graf3d
gl
inc
TGLAdapter.h
ROOT v6-34 - Reference Guide Generated on Mon Mar 31 2025 06:03:40 (GVA Time) using Doxygen 1.10.0