Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4Text.cc File Reference
#include "G4Text.hh"

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<() [1/2]

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

Definition at line 74 of file G4Text.cc.

75{
76 os << "G4Text: \"" << text.GetText()
77 << "\"\n layout " << text.GetLayout()
78 << ", offset (" << text.GetXOffset() << ',' << text.GetYOffset() << ")\n"
79 << (const G4VMarker&)text;
80 return os;
81}
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 83 of file G4Text.cc.

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