TGLQuadric.h

Go to the documentation of this file.
00001 // @(#)root/gl:$Id: TGLQuadric.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author:  Richard Maunder  16/09/2005
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGLQuadric
00013 #define ROOT_TGLQuadric
00014 
00015 #ifndef ROOT_Rtypes
00016 #include "Rtypes.h"
00017 #endif
00018 
00019 //////////////////////////////////////////////////////////////////////////
00020 //                                                                      //
00021 // TGLOutput                                                            //
00022 //                                                                      //
00023 // Wrapper class for GLU quadric shape drawing object. Lazy creation of //
00024 // internal GLU raw quadric on first call to TGLQuadric::Get()          //
00025 //////////////////////////////////////////////////////////////////////////
00026 
00027 class GLUquadric;
00028 
00029 class TGLQuadric
00030 {
00031 private:
00032    GLUquadric * fQuad;
00033 
00034 protected:
00035    TGLQuadric(const TGLQuadric& glq) : fQuad(glq.fQuad) { }
00036    TGLQuadric& operator=(const TGLQuadric& glq)
00037      { if(this!=&glq) fQuad=glq.fQuad; return *this; }
00038 
00039 public:
00040    TGLQuadric();
00041    virtual ~TGLQuadric(); // ClassDef introduces virtuals
00042 
00043    GLUquadric * Get();
00044 
00045    ClassDef(TGLQuadric,0) // GL quadric object
00046 };
00047 
00048 #endif
00049 

Generated on Tue Jul 5 14:16:52 2011 for ROOT_528-00b_version by  doxygen 1.5.1