Back to home page

EIC code displayed by LXR

 
 

    


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

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_TEveLineGL
0013 #define ROOT_TEveLineGL
0014 
0015 #include "TGLObject.h"
0016 #include "TPointSet3DGL.h"
0017 
0018 class TGLViewer;
0019 class TGLScene;
0020 
0021 class TEveLine;
0022 
0023 class TEveLineGL : public TPointSet3DGL
0024 {
0025 private:
0026    TEveLineGL(const TEveLineGL&);            // Not implemented
0027    TEveLineGL& operator=(const TEveLineGL&); // Not implemented
0028 
0029 protected:
0030    TEveLine* fM; // fModel dynamic-casted to TEveLineGL
0031 
0032 public:
0033    TEveLineGL();
0034    ~TEveLineGL() override {}
0035 
0036    Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
0037    void   DirectDraw(TGLRnrCtx & rnrCtx) const override;
0038 
0039    // To support two-level selection
0040    // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
0041    // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);
0042 
0043    ClassDefOverride(TEveLineGL, 0); // GL-renderer for TEveLine class.
0044 };
0045 
0046 #endif