ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
DrawLabel Class Reference

#include <DrawLabel.h>

Collaboration diagram for DrawLabel:

Public Member Functions

 DrawLabel (double x, double y, const std::string &s, int colour=kBlack, double size=0.033, double font=42)
 
virtual ~DrawLabel ()
 
void Draw () const
 
std::string & text ()
 
std::string text () const
 

Private Attributes

std::string m_text
 
int m_colour
 
int m_font
 
double m_x
 
double m_y
 
double m_size
 

Detailed Description

Definition at line 22 of file DrawLabel.h.

Constructor & Destructor Documentation

◆ DrawLabel()

DrawLabel::DrawLabel ( double  x,
double  y,
const std::string &  s,
int  colour = kBlack,
double  size = 0.033,
double  font = 42 
)
inline

Definition at line 26 of file DrawLabel.h.

26  :
28  {
29  // std::cout << "DrawLabel::DrawLabel() " << m_text << std::endl;
30  Draw();
31  }

◆ ~DrawLabel()

virtual DrawLabel::~DrawLabel ( )
inlinevirtual

Definition at line 33 of file DrawLabel.h.

33 { }

Member Function Documentation

◆ Draw()

void DrawLabel::Draw ( ) const
inline

Definition at line 35 of file DrawLabel.h.

35  {
36  TLatex* tt = new TLatex();
37  tt->SetNDC();
38  tt->SetTextColor(m_colour);
39  tt->SetTextSize(m_size);
40  tt->SetTextFont(m_font);
41  tt->DrawLatex(m_x, m_y, m_text.c_str() );
42  }

◆ text() [1/2]

std::string& DrawLabel::text ( )
inline

Definition at line 44 of file DrawLabel.h.

44 { return m_text; }

◆ text() [2/2]

std::string DrawLabel::text ( ) const
inline

Definition at line 45 of file DrawLabel.h.

45 { return m_text; }

Member Data Documentation

◆ m_colour

int DrawLabel::m_colour
private

Definition at line 50 of file DrawLabel.h.

◆ m_font

int DrawLabel::m_font
private

Definition at line 51 of file DrawLabel.h.

◆ m_size

double DrawLabel::m_size
private

Definition at line 56 of file DrawLabel.h.

◆ m_text

std::string DrawLabel::m_text
private

Definition at line 49 of file DrawLabel.h.

◆ m_x

double DrawLabel::m_x
private

Definition at line 53 of file DrawLabel.h.

◆ m_y

double DrawLabel::m_y
private

Definition at line 54 of file DrawLabel.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
x
#define x
DrawLabel::m_text
std::string m_text
Definition: DrawLabel.h:49
DrawLabel::m_colour
int m_colour
Definition: DrawLabel.h:50
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
DrawLabel::m_size
double m_size
Definition: DrawLabel.h:56
DrawLabel::Draw
void Draw() const
Definition: DrawLabel.h:35
DrawLabel::m_y
double m_y
Definition: DrawLabel.h:54
DrawLabel::m_font
int m_font
Definition: DrawLabel.h:51
python.DetStatusLib.colour
def colour(code)
Definition: DetStatusLib.py:15
y
#define y
plotBeamSpotMon.font
font
Definition: plotBeamSpotMon.py:80
DrawLabel::m_x
double m_x
Definition: DrawLabel.h:53
TileDCSDataPlotter.tt
tt
Definition: TileDCSDataPlotter.py:874