Logo ROOT  
Reference Guide
 
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
17Wrapper class for GLU quadric shape drawing object. Lazy creation of
18internal GLU raw quadric on first call to TGLQuadric::Get()
19*/
20
21
22////////////////////////////////////////////////////////////////////////////////
23/// Construct quadric
24
26 fQuad(nullptr)
27{
28}
29
30////////////////////////////////////////////////////////////////////////////////
31/// Destroy quadric
32
39
40////////////////////////////////////////////////////////////////////////////////
41/// Get the internal raw GLU quadric object. Created on first call.
42
44{
45 if (!fQuad) {
47 if (!fQuad) {
48 Error("TGLQuadric::Get", "create failed");
49 } else {
52 }
53 }
54 return fQuad;
55}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Definition TError.cxx:208
TGLQuadric()
Construct quadric.
GLUquadric * Get()
Get the internal raw GLU quadric object. Created on first call.
virtual ~TGLQuadric()
Destroy quadric.
GLUquadric * fQuad
Definition TGLQuadric.h:30