Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
TGLPShapeRef Class Reference

Base class for references to TGLPysicalShape that need to be notified when the shape is destroyed.

Could also deliver 'change' notifications.

Definition at line 19 of file TGLPShapeRef.h.

Public Member Functions

 TGLPShapeRef ()
 Default constructor. More...
 TGLPShapeRef (TGLPhysicalShape *shape)
 Constructor with known shape - reference it. More...
virtual ~TGLPShapeRef ()
 Destructor - unreference the shape if set. More...
TGLPhysicalShapeGetPShape () const
virtual void PShapeModified ()
 This is called from physical shape when it is modified. More...
virtual void SetPShape (TGLPhysicalShape *shape)
 Set the shape. More...

Protected Attributes


Private Member Functions

 TGLPShapeRef (const TGLPShapeRef &)
TGLPShapeRefoperator= (const TGLPShapeRef &)

Private Attributes



class TGLPhysicalShape

#include <TGLPShapeRef.h>

Inheritance diagram for TGLPShapeRef:

Constructor & Destructor Documentation

◆ TGLPShapeRef() [1/3]

TGLPShapeRef::TGLPShapeRef ( const TGLPShapeRef )

◆ TGLPShapeRef() [2/3]

TGLPShapeRef::TGLPShapeRef ( )

Default constructor.

Definition at line 27 of file TGLPShapeRef.cxx.

◆ TGLPShapeRef() [3/3]

TGLPShapeRef::TGLPShapeRef ( TGLPhysicalShape shape)

Constructor with known shape - reference it.

Definition at line 36 of file TGLPShapeRef.cxx.

◆ ~TGLPShapeRef()

TGLPShapeRef::~TGLPShapeRef ( )

Destructor - unreference the shape if set.

Definition at line 45 of file TGLPShapeRef.cxx.

Member Function Documentation

◆ GetPShape()

TGLPhysicalShape* TGLPShapeRef::GetPShape ( ) const

Definition at line 36 of file TGLPShapeRef.h.

◆ operator=()

TGLPShapeRef& TGLPShapeRef::operator= ( const TGLPShapeRef )

◆ PShapeModified()

void TGLPShapeRef::PShapeModified ( )

This is called from physical shape when it is modified.

Sub-classes can override and take appropriate action.

Reimplemented in TGLPShapeObjEditor.

Definition at line 71 of file TGLPShapeRef.cxx.

◆ SetPShape()

void TGLPShapeRef::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 referenced physical shape with 0 argument.

Reimplemented in TGLPShapeObjEditor, and TGLManipSet.

Definition at line 58 of file TGLPShapeRef.cxx.

Friends And Related Function Documentation

◆ TGLPhysicalShape

friend class TGLPhysicalShape

Definition at line 21 of file TGLPShapeRef.h.

Member Data Documentation

◆ fNextPSRef

TGLPShapeRef* TGLPShapeRef::fNextPSRef

Definition at line 26 of file TGLPShapeRef.h.

◆ fPShape

TGLPhysicalShape* TGLPShapeRef::fPShape

Definition at line 29 of file TGLPShapeRef.h.

Libraries for TGLPShapeRef:

The documentation for this class was generated from the following files: