Logo ROOT   6.07/09
Reference Guide
TGLQuadric.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Richard Maunder 16/09/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, 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_TGLQuadric
13 #define ROOT_TGLQuadric
14 
15 #ifndef ROOT_Rtypes
16 #include "Rtypes.h"
17 #endif
18 
19 //////////////////////////////////////////////////////////////////////////
20 // //
21 // TGLOutput //
22 // //
23 // Wrapper class for GLU quadric shape drawing object. Lazy creation of //
24 // internal GLU raw quadric on first call to TGLQuadric::Get() //
25 //////////////////////////////////////////////////////////////////////////
26 
27 class GLUquadric;
28 
30 {
31 private:
32  GLUquadric * fQuad;
33 
34 protected:
35  TGLQuadric(const TGLQuadric& glq) : fQuad(glq.fQuad) { }
37  { if(this!=&glq) fQuad=glq.fQuad; return *this; }
38 
39 public:
40  TGLQuadric();
41  virtual ~TGLQuadric(); // ClassDef introduces virtuals
42 
43  GLUquadric * Get();
44 
45  ClassDef(TGLQuadric,0) // GL quadric object
46 };
47 
48 #endif
49 
TGLQuadric & operator=(const TGLQuadric &glq)
Definition: TGLQuadric.h:36
virtual ~TGLQuadric()
Destroy quadric.
Definition: TGLQuadric.cxx:34
GLUquadric * Get()
Get the internal raw GLU quadric object. Created on first call.
Definition: TGLQuadric.cxx:44
Wrapper class for GLU quadric shape drawing object.
Definition: TGLQuadric.h:29
#define ClassDef(name, id)
Definition: Rtypes.h:254
TGLQuadric(const TGLQuadric &glq)
Definition: TGLQuadric.h:35
TGLQuadric()
Construct quadric.
Definition: TGLQuadric.cxx:26
GLUquadric * fQuad
Definition: TGLQuadric.h:32