Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLPShapeObj.h
Go to the documentation of this file.
1// @(#)root/gl:$Id$
2// Author: Alja Mrak-Tadel 06/2006
3
4/*************************************************************************
5 * Copyright (C) 1995-2004, 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_TGLPShapeObj
13#define ROOT_TGLPShapeObj
14
15#include <TObject.h>
16
18class TGLViewer;
19
20class TGLPShapeObj : public TObject
21{
22public:
25
26 TGLPShapeObj() : TObject(), fPShape(nullptr), fViewer(nullptr) {}
28 TObject(), fPShape(sh), fViewer(v) {}
29 ~TGLPShapeObj() override {}
30
31 const char* GetName() const override { return "Selected"; }
32
33private:
34 TGLPShapeObj(const TGLPShapeObj &) = delete;
36
37 ClassDefOverride(TGLPShapeObj, 0) // This object wraps TGLPhysicalShape (not a TObject)
38};
39
40#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Wrap TGLPysicalShape into TObject so that it can be edited using GED.
TGLPShapeObj(TGLPhysicalShape *sh, TGLViewer *v)
TGLViewer * fViewer
TGLPhysicalShape * fPShape
TGLPShapeObj & operator=(const TGLPShapeObj &)=delete
TGLPShapeObj(const TGLPShapeObj &)=delete
const char * GetName() const override
Returns name of object.
~TGLPShapeObj() override
Concrete physical shape - a GL drawable.
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