Logo ROOT   6.12/07
Reference Guide
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 
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();
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
TGLPhysicalShape * GetPShape() const
Definition: TGLPShapeRef.h:36
TGLPShapeRef & operator=(const TGLPShapeRef &)
Concrete physical shape - a GL drawable.
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual void PShapeModified()
This is called from physical shape when it is modified.
Base class for references to TGLPysicalShape that need to be notified when the shape is destroyed...
Definition: TGLPShapeRef.h:19
virtual ~TGLPShapeRef()
Destructor - unreference the shape if set.
virtual void SetPShape(TGLPhysicalShape *shape)
Set the shape.
TGLPhysicalShape * fPShape
Definition: TGLPShapeRef.h:29
TGLPShapeRef * fNextPSRef
Definition: TGLPShapeRef.h:26
TGLPShapeRef()
Default constructor.