00001 // @(#)root/eve:$Id: TEveQuadSetGL.h 33124 2010-04-21 20:04:42Z matevz $ 00002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, 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_TEveQuadSetGL 00013 #define ROOT_TEveQuadSetGL 00014 00015 #include "TEveDigitSetGL.h" 00016 #include "TEveQuadSet.h" 00017 00018 class TEveQuadSetGL : public TEveDigitSetGL 00019 { 00020 TEveQuadSetGL(const TEveQuadSetGL&); // Not implemented 00021 TEveQuadSetGL& operator=(const TEveQuadSetGL&); // Not implemented 00022 00023 protected: 00024 TEveQuadSet *fM; 00025 00026 void RenderQuads(TGLRnrCtx & rnrCtx) const; 00027 void RenderLines(TGLRnrCtx & rnrCtx) const; 00028 void RenderHexagons(TGLRnrCtx & rnrCtx) const; 00029 00030 public: 00031 TEveQuadSetGL(); 00032 virtual ~TEveQuadSetGL() {} 00033 00034 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0); 00035 virtual void DirectDraw(TGLRnrCtx& rnrCtx) const; 00036 00037 virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; } 00038 00039 ClassDef(TEveQuadSetGL, 0); // GL-renderer for TEveQuadSet class. 00040 }; 00041 00042 #endif