Logo ROOT  
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
17class TGLRnrCtx;
18
19class TEveTriangleSet;
20
22{
23private:
24 TEveTriangleSetGL(const TEveTriangleSetGL&); // Not implemented
25 TEveTriangleSetGL& operator=(const TEveTriangleSetGL&); // Not implemented
26
27protected:
28 TEveTriangleSet* fM; // Model object.
29
30public:
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
const char Option_t
Definition: RtypesCore.h:64
#define ClassDef(name, id)
Definition: Rtypes.h:322
GL-renderer for TEveTriangleSet class.
TEveTriangleSetGL(const TEveTriangleSetGL &)
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Low-level GL rendering.
TEveTriangleSetGL()
Constructor.
TEveTriangleSet * fM
virtual ~TEveTriangleSetGL()
Destructor.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
TEveTriangleSetGL & operator=(const TEveTriangleSetGL &)
virtual void SetBBox()
Set bounding-box from the model.
Made from a list of vertices and a list of triangles (triplets of vertex indices).
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:22
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:41
Mother of all ROOT objects.
Definition: TObject.h:37