00001
00002
00003
00004
00005
00006
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
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066