ROOT  6.06/09
Reference Guide
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 
21 
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:
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
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render the line-set with GL.
const char Option_t
Definition: RtypesCore.h:62
virtual Bool_t SupportsSecondarySelect() const
TEveStraightLineSetGL & operator=(const TEveStraightLineSetGL &)
bool Bool_t
Definition: RtypesCore.h:59
TEveStraightLineSetGL()
Constructor.
virtual Bool_t IgnoreSizeForOfInterest() const
Return true if size of this shape should be ignored when determining if the object should be drawn...
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
TEveStraightLineSet * fM
Standard selection record including information about containing scene and details ob out selected ob...
virtual void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
Process results of the secondary selection.
virtual void SetBBox()
Setup bounding box information.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:53
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw function for TEveStraightLineSetGL. Skips line-pass of outline mode.
GL-renderer for TEveStraightLineSet class.
ClassDef(TEveStraightLineSetGL, 0)
Mother of all ROOT objects.
Definition: TObject.h:58
TGLScene provides management and rendering of ROOT's default 3D /object representation as logical and...
Definition: TGLScene.h:30
const Bool_t kTRUE
Definition: Rtypes.h:91
TObject * obj
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const
Override from TGLObject.
Set of straight lines with optional markers along the lines.