Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveStraightLineSetGL.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveStraightLineSetGL
13 #define ROOT_TEveStraightLineSetGL
14 
15 #include "TGLObject.h"
16 
17 class TGLViewer;
18 class TGLScene;
19 
20 class TEveStraightLineSet;
21 
22 class TEveStraightLineSetGL : public TGLObject
23 {
24 private:
25  TEveStraightLineSetGL(const TEveStraightLineSetGL&); // Not implemented
26  TEveStraightLineSetGL& operator=(const TEveStraightLineSetGL&); // Not implemented
27 
28 protected:
29  TEveStraightLineSet* fM; // fModel dynamic-casted to TEveStraightLineSetGL
30 
31 public:
32  TEveStraightLineSetGL();
33  virtual ~TEveStraightLineSetGL() {}
34 
35  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
36  virtual void SetBBox();
37  virtual void Draw(TGLRnrCtx& rnrCtx) const;
38  virtual void DirectDraw(TGLRnrCtx& rnrCtx) const;
39 
40  virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
41 
42  virtual Bool_t ShouldDLCache(const TGLRnrCtx& rnrCtx) const;
43  virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
44  virtual void ProcessSelection(TGLRnrCtx& rnrCtx, TGLSelectRecord& rec);
45 
46  ClassDef(TEveStraightLineSetGL, 0); // GL-renderer for TEveStraightLineSet class.
47 };
48 
49 #endif