Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4Text.cc File Reference
#include "G4Text.hh"
Include dependency graph for G4Text.cc:

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

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 }
G4double GetYOffset() const
Layout GetLayout() const
G4double GetXOffset() const
G4String GetText() const

Here is the call graph for this function:

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 }