Logo ROOT   6.08/07
Reference Guide
TPointSet3DGL.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel 7/4/2006
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2006, 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 
13 #ifndef ROOT_TPointSet3DGL
14 #define ROOT_TPointSet3DGL
15 
16 #ifndef ROOT_TGLObject
17 #include "TGLObject.h"
18 #endif
19 
20 class TGLRnrCtx;
21 
22 class TPointSet3DGL : public TGLObject
23 {
24 public:
26 
27  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
28  virtual void SetBBox();
29  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
30 
31  virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
32 
33  virtual Bool_t ShouldDLCache(const TGLRnrCtx & rnrCtx) const;
34 
35  virtual void Draw(TGLRnrCtx & rnrCtx) const;
36 
37  virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
38  virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
39 
40  ClassDef(TPointSet3DGL,1) // GL renderer for TPointSet3D
41 };
42 
43 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
const char Option_t
Definition: RtypesCore.h:62
bool Bool_t
Definition: RtypesCore.h:59
virtual void SetBBox()
Set bounding-box.
#define ClassDef(name, id)
Definition: Rtypes.h:254
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
virtual void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
Processes secondary selection from TGLViewer.
virtual Bool_t SupportsSecondarySelect() const
Definition: TPointSet3DGL.h:37
Standard selection record including information about containing scene and details ob out selected ob...
virtual Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const
Override from TGLLogicalShape.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model.
virtual Bool_t IgnoreSizeForOfInterest() const
Return true if size of this shape should be ignored when determining if the object should be drawn...
Definition: TPointSet3DGL.h:31
Mother of all ROOT objects.
Definition: TObject.h:37
Direct OpenGL renderer for TPointSet3D.
Definition: TPointSet3DGL.h:22
const Bool_t kTRUE
Definition: Rtypes.h:91
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw function for TPointSet3D. Skips line-pass of outline mode.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Direct GL rendering for TPointSet3D.