Logo ROOT   6.12/07
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 #include "Rtypes.h"
16 
17 //////////////////////////////////////////////////////////////////////////
18 // //
19 // TGLOutput //
20 // //
21 // Wrapper class for GLU quadric shape drawing object. Lazy creation of //
22 // internal GLU raw quadric on first call to TGLQuadric::Get() //
23 //////////////////////////////////////////////////////////////////////////
24 
25 class GLUquadric;
26 
28 {
29 private:
30  GLUquadric * fQuad;
31 
32 protected:
33  TGLQuadric(const TGLQuadric& glq) : fQuad(glq.fQuad) { }
35  { if(this!=&glq) fQuad=glq.fQuad; return *this; }
36 
37 public:
38  TGLQuadric();
39  virtual ~TGLQuadric(); // ClassDef introduces virtuals
40 
41  GLUquadric * Get();
42 
43  ClassDef(TGLQuadric,0) // GL quadric object
44 };
45 
46 #endif
47 
TGLQuadric & operator=(const TGLQuadric &glq)
Definition: TGLQuadric.h:34
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:27
#define ClassDef(name, id)
Definition: Rtypes.h:320
TGLQuadric(const TGLQuadric &glq)
Definition: TGLQuadric.h:33
TGLQuadric()
Construct quadric.
Definition: TGLQuadric.cxx:26
GLUquadric * fQuad
Definition: TGLQuadric.h:30