Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TGLPShapeRef.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Matevz Tadel, Feb 2007
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_TGLPShapeRef
13 #define ROOT_TGLPShapeRef
14 
15 #include <Rtypes.h>
16 
17 class TGLPhysicalShape;
18 
19 class TGLPShapeRef
20 {
21  friend class TGLPhysicalShape;
22 private:
23  TGLPShapeRef(const TGLPShapeRef&); // Not implemented
24  TGLPShapeRef& operator=(const TGLPShapeRef&); // Not implemented
25 
26  TGLPShapeRef * fNextPSRef; // Internal pointer to the next reference (used by TGLPhysicalShape directly).
27 
28 protected:
29  TGLPhysicalShape * fPShape; // Pointer to referenced physical shape.
30 
31 public:
32  TGLPShapeRef();
33  TGLPShapeRef(TGLPhysicalShape * shape);
34  virtual ~TGLPShapeRef();
35 
36  TGLPhysicalShape * GetPShape() const { return fPShape; }
37  virtual void SetPShape(TGLPhysicalShape * shape);
38  virtual void PShapeModified();
39 
40  ClassDef(TGLPShapeRef, 0); // Reference to a TGLPhysicalShape object.
41 }; // endclass TGLPShapeRef
42 
43 
44 #endif