ROOT
Version master
v6.34
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
▼
src
►
TArcBall.cxx
TF2GL.cxx
TGL5D.cxx
►
TGL5DDataSetEditor.cxx
TGL5DPainter.cxx
►
TGLAdapter.cxx
TGLAnnotation.cxx
TGLAutoRotator.cxx
TGLAxis.cxx
TGLAxisPainter.cxx
►
TGLBoundingBox.cxx
TGLBoxPainter.cxx
►
TGLCamera.cxx
►
TGLCameraGuide.cxx
TGLCameraOverlay.cxx
TGLClip.cxx
►
TGLClipSetEditor.cxx
TGLContext.cxx
TGLContextPrivate.cxx
►
TGLContextPrivate.h
►
TGLCylinder.cxx
TGLEmbeddedViewer.cxx
TGLEventHandler.cxx
►
TGLFaceSet.cxx
TGLFBO.cxx
TGLFontManager.cxx
TGLFormat.cxx
TGLH2PolyPainter.cxx
►
TGLHistPainter.cxx
►
TGLIsoMesh.cxx
TGLLegoPainter.cxx
►
TGLLightSet.cxx
►
TGLLightSetEditor.cxx
►
TGLLockable.cxx
TGLLogicalShape.cxx
►
TGLManip.cxx
►
TGLManipSet.cxx
TGLMarchingCubes.cxx
TGLObject.cxx
►
TGLOrthoCamera.cxx
TGLOutput.cxx
►
TGLOverlay.cxx
TGLOverlayButton.cxx
►
TGLPadPainter.cxx
►
TGLPadUtils.cxx
TGLParametric.cxx
►
TGLParametricEquationGL.cxx
►
TGLPerspectiveCamera.cxx
TGLPhysicalShape.cxx
TGLPlot3D.cxx
TGLPlotBox.cxx
►
TGLPlotCamera.cxx
►
TGLPlotPainter.cxx
TGLPolyLine.cxx
TGLPolyMarker.cxx
►
TGLPShapeObj.cxx
►
TGLPShapeObjEditor.cxx
►
TGLPShapeRef.cxx
►
TGLQuadric.cxx
TGLRnrCtx.cxx
►
TGLRotateManip.cxx
►
TGLSAFrame.cxx
►
TGLSAViewer.cxx
►
TGLScaleManip.cxx
TGLScene.cxx
►
TGLSceneBase.cxx
►
TGLSceneInfo.cxx
TGLScenePad.cxx
TGLSdfFontMaker.cxx
TGLSelectBuffer.cxx
TGLSelectRecord.cxx
TGLSphere.cxx
►
TGLStopwatch.cxx
TGLSurfacePainter.cxx
►
TGLText.cxx
TGLTF3Painter.cxx
TGLTH3Composition.cxx
►
TGLTransManip.cxx
►
TGLUtil.cxx
►
TGLViewer.cxx
TGLViewerBase.cxx
TGLViewerEditor.cxx
TGLVoxelPainter.cxx
TGLWidget.cxx
TH2GL.cxx
TH3GL.cxx
TKDEAdapter.cxx
►
TKDEFGT.cxx
►
TPointSet3DGL.cxx
►
TX11GL.cxx
►
gviz3d
►
gui
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TGLQuadric.cxx
Go to the documentation of this file.
1
// @(#)root/gl:$Id$
2
3
/*************************************************************************
4
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
11
#include "
TGLQuadric.h
"
12
#include "TGLIncludes.h"
13
#include "
TError.h
"
14
15
/** \class TGLQuadric
16
\ingroup opengl
17
Wrapper class for GLU quadric shape drawing object. Lazy creation of
18
internal GLU raw quadric on first call to TGLQuadric::Get()
19
*/
20
21
ClassImp
(
TGLQuadric
);
22
23
////////////////////////////////////////////////////////////////////////////////
24
/// Construct quadric
25
26
TGLQuadric::TGLQuadric
() :
27
fQuad(nullptr)
28
{
29
}
30
31
////////////////////////////////////////////////////////////////////////////////
32
/// Destroy quadric
33
34
TGLQuadric::~TGLQuadric
()
35
{
36
if
(
fQuad
) {
37
gluDeleteQuadric
(
fQuad
);
38
}
39
}
40
41
////////////////////////////////////////////////////////////////////////////////
42
/// Get the internal raw GLU quadric object. Created on first call.
43
44
GLUquadric
*
TGLQuadric::Get
()
45
{
46
if
(!
fQuad
) {
47
fQuad
=
gluNewQuadric
();
48
if
(!
fQuad
) {
49
Error
(
"TGLQuadric::Get"
,
"create failed"
);
50
}
else
{
51
gluQuadricOrientation
(
fQuad
, (
GLenum
)
GLU_OUTSIDE
);
52
gluQuadricNormals
(
fQuad
, (
GLenum
)
GLU_SMOOTH
);
53
}
54
}
55
return
fQuad
;
56
}
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:374
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
TError.h
Error
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Definition
TError.cxx:185
TGLQuadric.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TGLQuadric
Wrapper class for GLU quadric shape drawing object.
Definition
TGLQuadric.h:28
TGLQuadric::TGLQuadric
TGLQuadric()
Construct quadric.
Definition
TGLQuadric.cxx:26
TGLQuadric::Get
GLUquadric * Get()
Get the internal raw GLU quadric object. Created on first call.
Definition
TGLQuadric.cxx:44
TGLQuadric::~TGLQuadric
virtual ~TGLQuadric()
Destroy quadric.
Definition
TGLQuadric.cxx:34
TGLQuadric::fQuad
GLUquadric * fQuad
Definition
TGLQuadric.h:30
graf3d
gl
src
TGLQuadric.cxx
ROOT master - Reference Guide Generated on Sat Apr 5 2025 15:41:29 (GVA Time) using Doxygen 1.10.0