Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:01

0001 // @(#)root/gl:$Id$
0002 // Author:  Alja Mrak-Tadel  06/2006
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGLPShapeObj
0013 #define ROOT_TGLPShapeObj
0014 
0015 #include <TObject.h>
0016 
0017 class TGLPhysicalShape;
0018 class TGLViewer;
0019 
0020 class TGLPShapeObj : public TObject
0021 {
0022 public:
0023    TGLPhysicalShape *fPShape;
0024    TGLViewer        *fViewer;
0025 
0026    TGLPShapeObj() : TObject(), fPShape(nullptr), fViewer(nullptr) {}
0027    TGLPShapeObj(TGLPhysicalShape* sh, TGLViewer* v) :
0028       TObject(), fPShape(sh), fViewer(v) {}
0029    ~TGLPShapeObj() override {}
0030 
0031    const char* GetName() const override { return "Selected"; }
0032 
0033 private:
0034    TGLPShapeObj(const TGLPShapeObj &) = delete;
0035    TGLPShapeObj& operator=(const TGLPShapeObj &) = delete;
0036 
0037    ClassDefOverride(TGLPShapeObj, 0) // This object wraps TGLPhysicalShape (not a TObject)
0038 };
0039 
0040 #endif