Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:57:04

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_TEveStraightLineSetGL
0013 #define ROOT_TEveStraightLineSetGL
0014 
0015 #include "TGLObject.h"
0016 
0017 class TGLViewer;
0018 class TGLScene;
0019 
0020 class TEveStraightLineSet;
0021 
0022 class TEveStraightLineSetGL : public TGLObject
0023 {
0024 private:
0025    TEveStraightLineSetGL(const TEveStraightLineSetGL&);            // Not implemented
0026    TEveStraightLineSetGL& operator=(const TEveStraightLineSetGL&); // Not implemented
0027 
0028 protected:
0029    TEveStraightLineSet* fM; // fModel dynamic-casted to TEveStraightLineSetGL
0030 
0031 public:
0032    TEveStraightLineSetGL();
0033    ~TEveStraightLineSetGL() override {}
0034 
0035    Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
0036    void   SetBBox() override;
0037    void   Draw(TGLRnrCtx& rnrCtx) const override;
0038    void   DirectDraw(TGLRnrCtx& rnrCtx) const override;
0039 
0040    Bool_t IgnoreSizeForOfInterest() const override { return kTRUE; }
0041 
0042    Bool_t ShouldDLCache(const TGLRnrCtx& rnrCtx) const override;
0043    Bool_t SupportsSecondarySelect() const override { return kTRUE; }
0044    void ProcessSelection(TGLRnrCtx& rnrCtx, TGLSelectRecord& rec) override;
0045 
0046    ClassDefOverride(TEveStraightLineSetGL, 0); // GL-renderer for TEveStraightLineSet class.
0047 };
0048 
0049 #endif