Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:43

0001 // @(#)root/eve:$Id$
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEveTriangleSetGL
0013 #define ROOT_TEveTriangleSetGL
0014 
0015 #include "TGLObject.h"
0016 
0017 class TGLRnrCtx;
0018 
0019 class TEveTriangleSet;
0020 
0021 class TEveTriangleSetGL : public TGLObject
0022 {
0023 private:
0024    TEveTriangleSetGL(const TEveTriangleSetGL&);            // Not implemented
0025    TEveTriangleSetGL& operator=(const TEveTriangleSetGL&); // Not implemented
0026 
0027 protected:
0028    TEveTriangleSet* fM; // Model object.
0029 
0030 public:
0031    TEveTriangleSetGL();
0032    ~TEveTriangleSetGL() override;
0033 
0034    Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
0035    void   SetBBox() override;
0036    void   DirectDraw(TGLRnrCtx & rnrCtx) const override;
0037 
0038    // To support two-level selection
0039    // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
0040    // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);
0041 
0042    ClassDefOverride(TEveTriangleSetGL, 0); // GL-renderer for TEveTriangleSet class.
0043 };
0044 
0045 #endif