ROOT
6.07/01
Reference Guide
|
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... | |
TGLPhysicalShape * | GetPShape () const |
virtual void | SetPShape (TGLPhysicalShape *shape) |
Set the shape. More... | |
virtual void | PShapeModified () |
This is called from physical shape when it is modified. More... | |
ClassDef (TGLPShapeRef, 0) | |
Protected Attributes | |
TGLPhysicalShape * | fPShape |
Private Member Functions | |
TGLPShapeRef (const TGLPShapeRef &) | |
TGLPShapeRef & | operator= (const TGLPShapeRef &) |
Private Attributes | |
TGLPShapeRef * | fNextPSRef |
Friends | |
class | TGLPhysicalShape |
#include <TGLPShapeRef.h>
|
private |
TGLPShapeRef::TGLPShapeRef | ( | ) |
Default constructor.
Definition at line 27 of file TGLPShapeRef.cxx.
TGLPShapeRef::TGLPShapeRef | ( | TGLPhysicalShape * | shape | ) |
Constructor with known shape - reference it.
Definition at line 36 of file TGLPShapeRef.cxx.
|
virtual |
Destructor - unreference the shape if set.
Definition at line 45 of file TGLPShapeRef.cxx.
TGLPShapeRef::ClassDef | ( | TGLPShapeRef | , |
0 | |||
) |
|
inline |
Definition at line 36 of file TGLPShapeRef.h.
Referenced by TGLViewer::GetSelected().
|
private |
|
virtual |
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.
Referenced by TGLPhysicalShape::Modified().
|
virtual |
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.
Referenced by TGLManipSet::SetPShape(), TGLPShapeObjEditor::SetPShape(), TGLPShapeRef(), TGLPhysicalShape::~TGLPhysicalShape(), and ~TGLPShapeRef().
|
friend |
Definition at line 21 of file TGLPShapeRef.h.
|
private |
Definition at line 26 of file TGLPShapeRef.h.
Referenced by TGLPhysicalShape::AddReference(), TGLPhysicalShape::Modified(), and TGLPhysicalShape::RemoveReference().
|
protected |
Definition at line 29 of file TGLPShapeRef.h.
Referenced by TGLPShapeObjEditor::DoColorButton(), TGLPShapeObjEditor::DoGeoButton(), GetPShape(), TGLManipSet::Render(), and SetPShape().