Last change
on this file 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
|
Rev | Line | |
---|
[237] | 1 | #include <iostream> |
---|
[238] | 2 | #include <iomanip> |
---|
[237] | 3 | #include <PixelMap/Voxel.hh> |
---|
| 4 | |
---|
[252] | 5 | namespace PixelInfo |
---|
[237] | 6 | { |
---|
| 7 | |
---|
[252] | 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 | */ |
---|
[237] | 15 | |
---|
[252] | 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 | |
---|
[237] | 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.