Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18
20{
21 friend class TGLPhysicalShape;
22private:
23 TGLPShapeRef(const TGLPShapeRef&) = delete;
25
26 TGLPShapeRef * fNextPSRef; // Internal pointer to the next reference (used by TGLPhysicalShape directly).
27
28protected:
29 TGLPhysicalShape * fPShape; // Pointer to referenced physical shape.
30
31public:
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
#define ClassDef(name, id)
Definition Rtypes.h:337
Base class for references to TGLPysicalShape that need to be notified when the shape is destroyed.
TGLPShapeRef()
Default constructor.
virtual void SetPShape(TGLPhysicalShape *shape)
Set the shape.
TGLPShapeRef * fNextPSRef
TGLPhysicalShape * fPShape
TGLPShapeRef(const TGLPShapeRef &)=delete
TGLPShapeRef & operator=(const TGLPShapeRef &)=delete
TGLPhysicalShape * GetPShape() const
virtual void PShapeModified()
This is called from physical shape when it is modified.
virtual ~TGLPShapeRef()
Destructor - unreference the shape if set.
Concrete physical shape - a GL drawable.