ROOT logo
ROOT » GRAF3D » GL » TGLPShapeRef

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)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

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() const
{ return fPShape; }