00001 // @(#)root/gl:$Id: TGLSphere.h 26250 2008-11-17 20:56:44Z matevz $ 00002 // Author: Timur Pocheptsov 03/08/2004 00003 // NOTE: This code moved from obsoleted TGLSceneObject.h / .cxx - see these 00004 // attic files for previous CVS history 00005 00006 /************************************************************************* 00007 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. * 00008 * All rights reserved. * 00009 * * 00010 * For the licensing terms see $ROOTSYS/LICENSE. * 00011 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00012 *************************************************************************/ 00013 00014 #ifndef ROOT_TGLSphere 00015 #define ROOT_TGLSphere 00016 00017 #ifndef ROOT_TGLLogicalShape 00018 #include "TGLLogicalShape.h" 00019 #endif 00020 00021 class TBuffer3DSphere; 00022 00023 class TGLSphere : public TGLLogicalShape 00024 { 00025 private: 00026 Double_t fRadius; // Sphere radius 00027 00028 public: 00029 TGLSphere(const TBuffer3DSphere &buffer); 00030 00031 virtual UInt_t DLOffset(Short_t lod) const; 00032 00033 virtual ELODAxes SupportedLODAxes() const { return kLODAxesAll; } 00034 virtual Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const; 00035 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const; 00036 00037 ClassDef(TGLSphere,0); // a spherical logical shape 00038 }; 00039 00040 #endif