Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Text.hh File Reference
#include "G4VMarker.hh"
#include "globals.hh"
#include "G4Text.icc"

Go to the source code of this file.

Classes

class  G4Text
 

Functions

std::ostream & operator<< (std::ostream &os, const G4Text &)
 
std::ostream & operator<< (std::ostream &os, G4Text::Layout)
 

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream &  os,
const G4Text text 
)

Definition at line 75 of file G4Text.cc.

76{
77 os << "G4Text: \"" << text.GetText()
78 << "\"\n layout " << text.GetLayout()
79 << ", offset (" << text.GetXOffset() << ',' << text.GetYOffset() << ")\n"
80 << (const G4VMarker&)text;
81 return os;
82}
Layout GetLayout() const
G4double GetYOffset() const
G4double GetXOffset() const
G4String GetText() const

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  os,
G4Text::Layout  layout 
)

Definition at line 84 of file G4Text.cc.

85{
86 if (layout == G4Text::left) os << "left";
87 if (layout == G4Text::centre) os << "centre";
88 if (layout == G4Text::right) os << "right";
89 return os;
90}
@ centre
Definition: G4Text.hh:77
@ right
Definition: G4Text.hh:77
@ left
Definition: G4Text.hh:77