Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.
 
 TGLPShapeRef (TGLPhysicalShape *shape)
 Constructor with known shape - reference it.
 
virtual ~TGLPShapeRef ()
 Destructor - unreference the shape if set.
 
TGLPhysicalShapeGetPShape () const
 
virtual TClassIsA () const
 
virtual void PShapeModified ()
 This is called from physical shape when it is modified.
 
virtual void SetPShape (TGLPhysicalShape *shape)
 Set the shape.
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Attributes

TGLPhysicalShapefPShape
 

Private Member Functions

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

Private Attributes

TGLPShapeReffNextPSRef
 

Friends

class TGLPhysicalShape
 

#include <TGLPShapeRef.h>

Inheritance diagram for TGLPShapeRef:
[legend]

Constructor & Destructor Documentation

◆ TGLPShapeRef() [1/3]

TGLPShapeRef::TGLPShapeRef ( const TGLPShapeRef )
privatedelete

◆ 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 ( )
virtual

Destructor - unreference the shape if set.

Definition at line 45 of file TGLPShapeRef.cxx.

Member Function Documentation

◆ Class()

static TClass * TGLPShapeRef::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLPShapeRef::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLPShapeRef::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 40 of file TGLPShapeRef.h.

◆ DeclFileName()

static const char * TGLPShapeRef::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 40 of file TGLPShapeRef.h.

◆ GetPShape()

TGLPhysicalShape * TGLPShapeRef::GetPShape ( ) const
inline

Definition at line 36 of file TGLPShapeRef.h.

◆ IsA()

virtual TClass * TGLPShapeRef::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented in TGLManipSet, and TGLPShapeObjEditor.

Definition at line 40 of file TGLPShapeRef.h.

◆ operator=()

TGLPShapeRef & TGLPShapeRef::operator= ( const TGLPShapeRef )
privatedelete

◆ PShapeModified()

void TGLPShapeRef::PShapeModified ( )
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.

◆ SetPShape()

void TGLPShapeRef::SetPShape ( TGLPhysicalShape shape)
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 TGLManipSet, and TGLPShapeObjEditor.

Definition at line 58 of file TGLPShapeRef.cxx.

◆ Streamer()

virtual void TGLPShapeRef::Streamer ( TBuffer )
virtual

Reimplemented in TGLManipSet, and TGLPShapeObjEditor.

◆ StreamerNVirtual()

void TGLPShapeRef::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 40 of file TGLPShapeRef.h.

Friends And Related Symbol Documentation

◆ TGLPhysicalShape

friend class TGLPhysicalShape
friend

Definition at line 21 of file TGLPShapeRef.h.

Member Data Documentation

◆ fNextPSRef

TGLPShapeRef* TGLPShapeRef::fNextPSRef
private

Definition at line 26 of file TGLPShapeRef.h.

◆ fPShape

TGLPhysicalShape* TGLPShapeRef::fPShape
protected

Definition at line 29 of file TGLPShapeRef.h.

Libraries for TGLPShapeRef:

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