Logo ROOT   6.10/09
Reference Guide
TEveTriangleSetGL.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_TEveTriangleSetGL
13 #define ROOT_TEveTriangleSetGL
14 
15 #include "TGLObject.h"
16 
17 class TGLRnrCtx;
18 
19 class TEveTriangleSet;
20 
22 {
23 private:
24  TEveTriangleSetGL(const TEveTriangleSetGL&); // Not implemented
25  TEveTriangleSetGL& operator=(const TEveTriangleSetGL&); // Not implemented
26 
27 protected:
28  TEveTriangleSet* fM; // Model object.
29 
30 public:
32  virtual ~TEveTriangleSetGL();
33 
34  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
35  virtual void SetBBox();
36  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
37 
38  // To support two-level selection
39  // virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
40  // virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);
41 
42  ClassDef(TEveTriangleSetGL, 0); // GL-renderer for TEveTriangleSet class.
43 };
44 
45 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
TEveTriangleSetGL & operator=(const TEveTriangleSetGL &)
const char Option_t
Definition: RtypesCore.h:62
TEveTriangleSet * fM
GL-renderer for TEveTriangleSet class.
bool Bool_t
Definition: RtypesCore.h:59
#define ClassDef(name, id)
Definition: Rtypes.h:297
virtual void SetBBox()
Set bounding-box from the model.
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Low-level GL rendering.
TEveTriangleSetGL()
Constructor.
Made from a list of vertices and a list of triangles (triplets of vertex indices).
virtual ~TEveTriangleSetGL()
Destructor.
Mother of all ROOT objects.
Definition: TObject.h:37