G4VModel.cc File Reference

#include "G4VModel.hh"
#include "G4RotationMatrix.hh"
#include "G4ModelingParameters.hh"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const G4VModel &model)


Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const G4VModel model 
)

Definition at line 63 of file G4VModel.cc.

References G4VModel::fExtent, G4VModel::fGlobalDescription, G4VModel::fpMP, and G4VModel::fTransform.

00063                                                                 {
00064   os << model.fGlobalDescription;
00065   os << "\n  Modeling parameters:";
00066   const G4ModelingParameters* mp = model.fpMP;
00067   if (mp) os << "\n  " << *mp;
00068   else os << " none.";
00069   os << "\n  Extent: " << model.fExtent;
00070   os << "\n  Transformation: ";
00071   os << "\n    Rotation: ";
00072   G4RotationMatrix rotation = model.fTransform.getRotation ();
00073   os << rotation.thetaX() << ", "
00074      << rotation.phiX() << ", "
00075      << rotation.thetaY() << ", "
00076      << rotation.phiY() << ", "
00077      << rotation.thetaZ() << ", "
00078      << rotation.phiZ();
00079   os << "\n    Translation: " << model.fTransform.getTranslation ();
00080   return os;
00081 }


Generated on Mon May 27 17:51:14 2013 for Geant4 by  doxygen 1.4.7