Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Tools/Math/Points3D.cpp

Go to the documentation of this file.
00001 /** 
00002 * @file Points3D.cpp
00003 *
00004 * Implementation of class Points3D
00005 *
00006 * @author Martin Lötzsch
00007 */ 
00008 
00009 #include "Points3D.h"
00010 
00011 Points3D::Points3D()
00012 {
00013 }
00014 
00015 Points3D::~Points3D()
00016 {
00017 }
00018 
00019 In& operator>>(In& stream,Points3D& points3D)
00020 {
00021   int numberOfEntries;
00022   Vector3<double> v;
00023   points3D.init();
00024 
00025   stream >> numberOfEntries;
00026   for (int i=0; i< numberOfEntries; i++)
00027   {
00028     stream >> v.x >> v.y >> v.z;
00029     points3D.add(v);
00030   }
00031   return stream;
00032 }
00033 
00034 Out& operator<<(Out& stream, const Points3D& points3D)
00035 {
00036   stream << points3D.getNumberOfEntries();
00037   for (int i=0; i< points3D.getNumberOfEntries(); i++)
00038   {
00039     stream << points3D[i].x << points3D[i].y << points3D[i].z;
00040   }
00041   return stream;
00042 }

Generated on Mon Mar 20 22:00:07 2006 for GT2005 by doxygen 1.3.6