Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17class TGLViewer;
18class TGLScene;
19
21
23{
24private:
25 TEveStraightLineSetGL(const TEveStraightLineSetGL&); // Not implemented
27
28protected:
29 TEveStraightLineSet* fM; // fModel dynamic-casted to TEveStraightLineSetGL
30
31public:
34
35 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
36 void SetBBox() override;
37 void Draw(TGLRnrCtx& rnrCtx) const override;
38 void DirectDraw(TGLRnrCtx& rnrCtx) const override;
39
40 Bool_t IgnoreSizeForOfInterest() const override { return kTRUE; }
41
42 Bool_t ShouldDLCache(const TGLRnrCtx& rnrCtx) const override;
43 Bool_t SupportsSecondarySelect() const override { return kTRUE; }
44 void ProcessSelection(TGLRnrCtx& rnrCtx, TGLSelectRecord& rec) override;
45
46 ClassDefOverride(TEveStraightLineSetGL, 0); // GL-renderer for TEveStraightLineSet class.
47};
48
49#endif
bool Bool_t
Definition RtypesCore.h:63
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
GL-renderer for TEveStraightLineSet class.
void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec) override
Process results of the secondary selection.
Bool_t ShouldDLCache(const TGLRnrCtx &rnrCtx) const override
Override from TGLObject.
TEveStraightLineSetGL(const TEveStraightLineSetGL &)
TEveStraightLineSet * fM
TEveStraightLineSetGL & operator=(const TEveStraightLineSetGL &)
void SetBBox() override
Setup bounding box information.
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
ClassDefOverride(TEveStraightLineSetGL, 0)
Bool_t IgnoreSizeForOfInterest() const override
Return true if size of this shape should be ignored when determining if the object should be drawn.
Bool_t SupportsSecondarySelect() const override
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Render the line-set with GL.
Set of straight lines with optional markers along the lines.
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
TGLScene provides management and rendering of ROOT's default 3D /object representation as logical and...
Definition TGLScene.h:29
Standard selection record including information about containing scene and details ob out selected ob...
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition TGLViewer.h:55
Mother of all ROOT objects.
Definition TObject.h:41
th1 Draw()