Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:57:25

0001 // @(#)root/gl:$Id$
0002 // Author:  Matevz Tadel, Feb 2007
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_TGLPShapeRef
0013 #define ROOT_TGLPShapeRef
0014 
0015 #include <Rtypes.h>
0016 
0017 class TGLPhysicalShape;
0018 
0019 class TGLPShapeRef
0020 {
0021    friend class TGLPhysicalShape;
0022 private:
0023    TGLPShapeRef(const TGLPShapeRef&);            // Not implemented
0024    TGLPShapeRef& operator=(const TGLPShapeRef&); // Not implemented
0025 
0026    TGLPShapeRef * fNextPSRef;  // Internal pointer to the next reference (used by TGLPhysicalShape directly).
0027 
0028 protected:
0029    TGLPhysicalShape * fPShape; // Pointer to referenced physical shape.
0030 
0031 public:
0032    TGLPShapeRef();
0033    TGLPShapeRef(TGLPhysicalShape * shape);
0034    virtual ~TGLPShapeRef();
0035 
0036    TGLPhysicalShape * GetPShape() const { return fPShape; }
0037    virtual void SetPShape(TGLPhysicalShape * shape);
0038    virtual void PShapeModified();
0039 
0040    ClassDef(TGLPShapeRef, 0); // Reference to a TGLPhysicalShape object.
0041 }; // endclass TGLPShapeRef
0042 
0043 
0044 #endif