GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4MarkerPainter Class Reference

#include <TGo4MarkerPainter.h>

Inheritance diagram for TGo4MarkerPainter:

Public Member Functions

 TGo4MarkerPainter ()
 TGo4MarkerPainter ()
 TGo4MarkerPainter (const char *name, const char *title="Go4 MarkerPainter")
 TGo4MarkerPainter (const char *name, const char *title="Go4 MarkerPainter")
virtual ~TGo4MarkerPainter ()
virtual ~TGo4MarkerPainter ()
void DisplayToFront (Option_t *opt="") override
 pop all components to the front of the pad
void DisplayToFront (Option_t *opt="") override
 pop all components to the front of the pad
void PaintConnector (Option_t *opt="")
void PaintConnector (Option_t *opt="")
void PaintLabel (Option_t *opt="") override
 Display coordinate label for this marker.
void PaintLabel (Option_t *opt="") override
 Display coordinate label for this marker.
virtual void SetMarker (TGo4Marker *mark)
virtual void SetMarker (TGo4Marker *mark)
void UnPaintConnector (Option_t *opt="")
void UnPaintConnector (Option_t *opt="")
void UnPaintLabel (Option_t *opt="") override
 Erase the label.
void UnPaintLabel (Option_t *opt="") override
 Erase the label.
Public Member Functions inherited from TGo4LabelPainter
 TGo4LabelPainter ()
 TGo4LabelPainter ()
 TGo4LabelPainter (const char *name, const char *title=nullptr)
 TGo4LabelPainter (const char *name, const char *title=nullptr)
virtual ~TGo4LabelPainter ()
virtual ~TGo4LabelPainter ()
void AddToLabel (const char *txt)
void AddToLabel (const char *txt)
Double_t GetLabelXlo ()
 Reference coordinate x of label box (lower left corner).
Double_t GetLabelXlo ()
 Reference coordinate x of label box (lower left corner).
Double_t GetLabelXup ()
 Reference coordinate x of label box (upper right corner).
Double_t GetLabelXup ()
 Reference coordinate x of label box (upper right corner).
Double_t GetLabelYlo ()
 Reference coordinate y of label box (lower left corner).
Double_t GetLabelYlo ()
 Reference coordinate y of label box (lower left corner).
Double_t GetLabelYup ()
 Reference coordinate y of label box (upper right corner).
Double_t GetLabelYup ()
 Reference coordinate y of label box (upper right corner).
void InitAttributes ()
 Initialize the label attributes.
void InitAttributes ()
 Initialize the label attributes.
virtual void RePaintLabel (Option_t *opt="")
 refresh painting of label with current attributes
virtual void RePaintLabel (Option_t *opt="")
 refresh painting of label with current attributes
void SetCaption (const char *txt)
void SetCaption (const char *txt)
void SetHeight (Double_t h=0.)
void SetHeight (Double_t h=0.)
void SetWidth (Double_t w=0.)
void SetWidth (Double_t w=0.)
void SetX0 (Double_t x=0.)
void SetX0 (Double_t x=0.)
void SetY0 (Double_t y=0.)
void SetY0 (Double_t y=0.)

Protected Member Functions

Bool_t CheckConnector ()
 Check if connector is still existing.
Bool_t CheckConnector ()
 Check if connector is still existing.

Protected Attributes

TGo4LabelConnectorfxConnector {nullptr}
 Connection line between marker and label.
TGo4MarkerfxMarker {nullptr}
 Marker to be painted.

Private Attributes

Bool_t fbIsConStreamed {kFALSE}
 Flag to handle streamed connector from file correctly.

Detailed Description

Definition at line 21 of file TGo4MarkerPainter.h.

Constructor & Destructor Documentation

◆ TGo4MarkerPainter() [1/4]

TGo4MarkerPainter::TGo4MarkerPainter ( )

Definition at line 23 of file TGo4MarkerPainter.cxx.

References TGo4LabelPainter::TGo4LabelPainter(), and fbIsConStreamed.

◆ TGo4MarkerPainter() [2/4]

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

Definition at line 29 of file TGo4MarkerPainter.cxx.

References TGo4LabelPainter::TGo4LabelPainter(), and fbIsConStreamed.

◆ ~TGo4MarkerPainter() [1/2]

TGo4MarkerPainter::~TGo4MarkerPainter ( )
virtual

Definition at line 35 of file TGo4MarkerPainter.cxx.

References fxConnector.

◆ TGo4MarkerPainter() [3/4]

TGo4MarkerPainter::TGo4MarkerPainter ( )

◆ TGo4MarkerPainter() [4/4]

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

◆ ~TGo4MarkerPainter() [2/2]

virtual TGo4MarkerPainter::~TGo4MarkerPainter ( )
virtual

Member Function Documentation

◆ CheckConnector() [1/2]

Bool_t TGo4MarkerPainter::CheckConnector ( )
protected

Check if connector is still existing.

Uses root list of cleanups.

Definition at line 104 of file TGo4MarkerPainter.cxx.

References fbIsConStreamed, fxConnector, and TGo4LabelConnector::fxLastDeleted.

Referenced by PaintConnector(), and UnPaintConnector().

◆ CheckConnector() [2/2]

Bool_t TGo4MarkerPainter::CheckConnector ( )
protected

Check if connector is still existing.

Uses root list of cleanups.

References fxMarker.

◆ DisplayToFront() [1/2]

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

pop all components to the front of the pad

Reimplemented from TGo4LabelPainter.

Definition at line 227 of file TGo4MarkerPainter.cxx.

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

◆ DisplayToFront() [2/2]

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

pop all components to the front of the pad

Reimplemented from TGo4LabelPainter.

◆ PaintConnector() [1/2]

◆ PaintConnector() [2/2]

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

◆ PaintLabel() [1/2]

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

◆ PaintLabel() [2/2]

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

Display coordinate label for this marker.

Reimplemented from TGo4LabelPainter.

◆ SetMarker() [1/2]

virtual void TGo4MarkerPainter::SetMarker ( TGo4Marker * mark)
inlinevirtual

Definition at line 34 of file TGo4MarkerPainter.h.

References fxMarker.

◆ SetMarker() [2/2]

virtual void TGo4MarkerPainter::SetMarker ( TGo4Marker * mark)
inlinevirtual

Definition at line 34 of file TGo4MarkerPainter.h.

References fxMarker.

◆ UnPaintConnector() [1/2]

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

Definition at line 215 of file TGo4MarkerPainter.cxx.

References CheckConnector(), and fxConnector.

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

◆ UnPaintConnector() [2/2]

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

◆ UnPaintLabel() [1/2]

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

Erase the label.

Reimplemented from TGo4LabelPainter.

Definition at line 96 of file TGo4MarkerPainter.cxx.

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

Referenced by PaintLabel().

◆ UnPaintLabel() [2/2]

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

Erase the label.

Reimplemented from TGo4LabelPainter.

Field 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 TGo4MarkerPainter(), TGo4MarkerPainter(), and CheckConnector().

◆ fxConnector

TGo4LabelConnector * TGo4MarkerPainter::fxConnector {nullptr}
protected

Connection line between marker and label.

Definition at line 45 of file TGo4MarkerPainter.h.

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

◆ fxMarker

TGo4Marker * TGo4MarkerPainter::fxMarker {nullptr}
protected

Marker to be painted.

Definition at line 42 of file TGo4MarkerPainter.h.

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


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