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)

TGLPShapeRef(TGLPhysicalShape* shape)
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)
TGLPShapeRef(const TGLPShapeRef&)
TGLPShapeRef&operator=(const TGLPShapeRef&)

Data Members

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

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

 Default contructor.
TGLPShapeRef(TGLPhysicalShape * shape)
 Constructor with known shape - reference it.
 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 update: root/gl:$Id: TGLPShapeRef.h 20882 2007-11-19 11:31:26Z rdm $
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.