Geant4 11.2.2
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 55 of file G4Text.cc.

56{
57 os << "G4Text: \"" << text.GetText()
58 << "\"\n layout " << text.GetLayout()
59 << ", offset (" << text.GetXOffset() << ',' << text.GetYOffset() << ")\n"
60 << (const G4VMarker&)text;
61 return os;
62}
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 64 of file G4Text.cc.

65{
66 if (layout == G4Text::left) os << "left";
67 if (layout == G4Text::centre) os << "centre";
68 if (layout == G4Text::right) os << "right";
69 return os;
70}
@ centre
Definition G4Text.hh:76
@ right
Definition G4Text.hh:76
@ left
Definition G4Text.hh:76