Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 ~TEveTriangleSetGL() override;
33
34 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
35 void SetBBox() override;
36 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
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 ClassDefOverride(TEveTriangleSetGL, 0); // GL-renderer for TEveTriangleSet class.
43};
44
45#endif
const char Option_t
Definition RtypesCore.h:66
GL-renderer for TEveTriangleSet class.
void SetBBox() override
Set bounding-box from the model.
TEveTriangleSetGL(const TEveTriangleSetGL &)
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Low-level GL rendering.
TEveTriangleSetGL()
Constructor.
TEveTriangleSet * fM
~TEveTriangleSetGL() override
Destructor.
TEveTriangleSetGL & operator=(const TEveTriangleSetGL &)
ClassDefOverride(TEveTriangleSetGL, 0)
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
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:41