Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
25class GLUquadric;
26
28{
29private:
30 GLUquadric * fQuad;
31
32protected:
33 TGLQuadric(const TGLQuadric& glq) : fQuad(glq.fQuad) { }
35 { if(this!=&glq) fQuad=glq.fQuad; return *this; }
36
37public:
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
#define ClassDef(name, id)
Definition Rtypes.h:337
Wrapper class for GLU quadric shape drawing object.
Definition TGLQuadric.h:28
TGLQuadric()
Construct quadric.
TGLQuadric & operator=(const TGLQuadric &glq)
Definition TGLQuadric.h:34
GLUquadric * Get()
Get the internal raw GLU quadric object. Created on first call.
virtual ~TGLQuadric()
Destroy quadric.
GLUquadric * fQuad
Definition TGLQuadric.h:30
TGLQuadric(const TGLQuadric &glq)
Definition TGLQuadric.h:33