GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
TGo4MarkerPainter Class Reference

#include <TGo4MarkerPainter.h>

+ Inheritance diagram for TGo4MarkerPainter:

Public Member Functions

 TGo4MarkerPainter ()
 
 TGo4MarkerPainter (const char *name, const char *title="Go4 MarkerPainter")
 
virtual ~TGo4MarkerPainter ()
 
void PaintLabel (Option_t *opt="") override
 
void UnPaintLabel (Option_t *opt="") override
 
void PaintConnector (Option_t *opt="")
 
void UnPaintConnector (Option_t *opt="")
 
void DisplayToFront (Option_t *opt="") override
 
virtual void SetMarker (TGo4Marker *mark)
 
- Public Member Functions inherited from TGo4LabelPainter
 TGo4LabelPainter ()
 
 TGo4LabelPainter (const char *name, const char *title=nullptr)
 
virtual ~TGo4LabelPainter ()
 
virtual void RePaintLabel (Option_t *opt="")
 
void SetCaption (const char *txt)
 
void SetX0 (Double_t x=0.)
 
void SetY0 (Double_t y=0.)
 
void SetWidth (Double_t w=0.)
 
void SetHeight (Double_t h=0.)
 
void AddToLabel (const char *txt)
 
void InitAttributes ()
 
Double_t GetLabelXlo ()
 
Double_t GetLabelYlo ()
 
Double_t GetLabelXup ()
 
Double_t GetLabelYup ()
 

Protected Member Functions

Bool_t CheckConnector ()
 

Protected Attributes

TGo4MarkerfxMarker {nullptr}
 
TGo4LabelConnectorfxConnector {nullptr}
 

Private Attributes

Bool_t fbIsConStreamed {kFALSE}
 

Detailed Description

Definition at line 21 of file TGo4MarkerPainter.h.

Constructor & Destructor Documentation

◆ TGo4MarkerPainter() [1/2]

TGo4MarkerPainter::TGo4MarkerPainter ( )

Definition at line 22 of file TGo4MarkerPainter.cxx.

◆ TGo4MarkerPainter() [2/2]

TGo4MarkerPainter::TGo4MarkerPainter ( const char *  name,
const char *  title = "Go4 MarkerPainter" 
)

Definition at line 28 of file TGo4MarkerPainter.cxx.

◆ ~TGo4MarkerPainter()

TGo4MarkerPainter::~TGo4MarkerPainter ( )
virtual

Definition at line 34 of file TGo4MarkerPainter.cxx.

References fxConnector.

Member Function Documentation

◆ CheckConnector()

Bool_t TGo4MarkerPainter::CheckConnector ( )
protected

Check if connector is still existing. Uses root list of cleanups.

Definition at line 103 of file TGo4MarkerPainter.cxx.

References fbIsConStreamed, fxConnector, TGo4LabelConnector::fxLastDeleted, and TGo4LabelConnector::SetOwner().

Referenced by PaintConnector(), SetMarker(), and UnPaintConnector().

◆ DisplayToFront()

void TGo4MarkerPainter::DisplayToFront ( Option_t *  opt = "")
overridevirtual

pop all components to the front of the pad

Reimplemented from TGo4LabelPainter.

Definition at line 226 of file TGo4MarkerPainter.cxx.

References TGo4LabelPainter::DisplayToFront(), fxMarker, PaintConnector(), and UnPaintConnector().

Referenced by TGo4Marker::ExecuteEvent(), and TGo4Marker::Pop().

◆ PaintConnector()

void TGo4MarkerPainter::PaintConnector ( Option_t *  opt = "")

◆ PaintLabel()

void TGo4MarkerPainter::PaintLabel ( Option_t *  opt = "")
overridevirtual

◆ SetMarker()

virtual void TGo4MarkerPainter::SetMarker ( TGo4Marker mark)
inlinevirtual

Definition at line 34 of file TGo4MarkerPainter.h.

References CheckConnector(), and fxMarker.

Referenced by TGo4Marker::CreatePainter().

◆ UnPaintConnector()

void TGo4MarkerPainter::UnPaintConnector ( Option_t *  opt = "")

Definition at line 214 of file TGo4MarkerPainter.cxx.

References CheckConnector(), and fxConnector.

Referenced by DisplayToFront(), PaintConnector(), and UnPaintLabel().

◆ UnPaintLabel()

void TGo4MarkerPainter::UnPaintLabel ( Option_t *  opt = "")
overridevirtual

Erase the label

Reimplemented from TGo4LabelPainter.

Definition at line 95 of file TGo4MarkerPainter.cxx.

References UnPaintConnector(), and TGo4LabelPainter::UnPaintLabel().

Referenced by PaintLabel(), TGo4Marker::ResetLabel(), and TGo4Marker::UnDraw().

Member Data Documentation

◆ fbIsConStreamed

Bool_t TGo4MarkerPainter::fbIsConStreamed {kFALSE}
private

Flag to handle streamed connector from file correctly

Definition at line 49 of file TGo4MarkerPainter.h.

Referenced by CheckConnector().

◆ fxConnector

TGo4LabelConnector* TGo4MarkerPainter::fxConnector {nullptr}
protected

Connection line between marker and label

Definition at line 45 of file TGo4MarkerPainter.h.

Referenced by CheckConnector(), PaintConnector(), UnPaintConnector(), and ~TGo4MarkerPainter().

◆ fxMarker

TGo4Marker* TGo4MarkerPainter::fxMarker {nullptr}
protected

Marker to be painted.

Definition at line 42 of file TGo4MarkerPainter.h.

Referenced by DisplayToFront(), PaintConnector(), PaintLabel(), and SetMarker().


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