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 }
00043 
00044 /*
00045 * Change Log:
00046 *
00047 * $Log: Points3D.cpp,v $
00048 * Revision 1.1.1.1  2004/05/22 17:37:13  cvsadm
00049 * created new repository GT2004_WM
00050 *
00051 * Revision 1.1  2003/10/07 10:13:24  cvsadm
00052 * Created GT2004 (M.J.)
00053 *
00054 * Revision 1.1.1.1  2003/07/02 09:40:28  cvsadm
00055 * created new repository for the competitions in Padova from the 
00056 * tamara CVS (Tuesday 2:00 pm)
00057 *
00058 * removed unused solutions
00059 *
00060 * Revision 1.1  2002/10/10 13:09:50  loetzsch
00061 * First experiments with the PSD Sensor
00062 * - SensorDataProcessor now calculates PSDPercept
00063 * - Added the PerceptBehaviorControl solution PSDTest
00064 * - Added the RadarViewer3D to RobotControl, which can display the Points3D structure
00065 *
00066 */

Generated on Thu Sep 23 19:57:39 2004 for GT2004 by doxygen 1.3.6