src/rcrt/primitives/Axis.hpp

Go to the documentation of this file.
00001 #ifndef AXIS_HPP_
00002 #define AXIS_HPP_
00003 
00004 
00005 enum Axis
00006 {
00007         X_AXIS = 0,
00008         Y_AXIS = 1,
00009         Z_AXIS = 2,
00010 };
00011 
00012 inline std::ostream& operator<<(std::ostream& o, Axis a)
00013 {
00014         switch(a){
00015         case X_AXIS: o << "X_AXIS"; break;
00016         case Y_AXIS: o << "Y_AXIS"; break;
00017         case Z_AXIS: o << "Z_AXIS"; break;
00018         default: o << "unknown Axis: " << (int)a;
00019         }
00020         
00021         return o;
00022 }
00023 
00024 #endif /*AXIS_HPP_*/

Generated on Thu Jan 31 19:26:19 2008 for RenderingCompetitionRayTracer by  doxygen 1.5.3