class TGLPShapeRef


 Base class for references to TGLPysicalShape that need to be notified
 when the shape is destroyed.
 Could also deliver 'change' notifications.

Function Members (Methods)

public:
TGLPShapeRef()
TGLPShapeRef(TGLPhysicalShape* shape)
virtual~TGLPShapeRef()
static TClass*Class()
TGLPhysicalShape*GetPShape() const
virtual TClass*IsA() const
virtual voidPShapeModified()
virtual voidSetPShape(TGLPhysicalShape* shape)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
TGLPShapeRef(const TGLPShapeRef&)
TGLPShapeRef&operator=(const TGLPShapeRef&)

Data Members

protected:
TGLPhysicalShape*fPShapePointer to referenced physical shape.
private:
TGLPShapeRef*fNextPSRefInternal pointer to the next reference (used by TGLPhysicalShape directly).

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLPShapeRef()
 Default contructor.
TGLPShapeRef(TGLPhysicalShape * shape)
 Constructor with known shape - reference it.
~TGLPShapeRef()
 Destructor - unreference the shape if set.
void SetPShape(TGLPhysicalShape* shape)
 Set the shape. Unreference the old and reference the new.
 This is virtual so that sub-classes can perform other tasks
 on change. This function should be called first from there.

 This is also called from destructor of the refereced physical
 shape with 0 argument.
void PShapeModified()
 This is called from physical shape when it is modified.
 Sub-classes can override and take appropriate action.
TGLPShapeRef(const TGLPShapeRef&)
TGLPShapeRef& operator=(const TGLPShapeRef& )
TGLPhysicalShape * GetPShape()
{ return fPShape; }

Author: Matevz Tadel, Feb 2007
Last change: root/gl:$Id: TGLPShapeRef.h 26394 2008-11-23 14:35:25Z matevz $
Last generated: 2008-11-24 08:19
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.