source: branches/pixel-map-branch/src/PixelMap/Voxel.cc @ 1441

Last change on this file since 1441 was 252, checked in by Matthew Whiting, 17 years ago
  • Have put all classes in the files in src/PixelMap/ into a PixelInfo? namespace.
  • Added "using namespace PixelInfo?" to all necessary files.
  • Removed "friend class Detection" from Voxel and Object3D classes -- not necessary and complicated now by them being in the namespace
  • Various minor changes, including fixing up commentary.
File size: 672 bytes
Line 
1#include <iostream>
2#include <iomanip>
3#include <PixelMap/Voxel.hh>
4
5namespace PixelInfo
6{
7
8  std::ostream& operator<< ( std::ostream& theStream, Voxel& vox)
9  {
10    /**
11     * A convenient way of printing the coordinate and flux values of
12     * a voxel.  They are all printed to a single line (with no
13     * carriage-return), with the flux to precision of 4.
14     */ 
15
16    theStream << std::setw(4) << vox.itsX ;
17    theStream << " " << std::setw(4) << vox.itsY;
18    theStream << " " << std::setw(4) << vox.itsZ;
19    theStream << std::setprecision(4);
20    theStream << "  " << vox.itsF;
21
22  }
23  //--------------------------------------------------------------------
24
25}
Note: See TracBrowser for help on using the repository browser.