29 #ifndef POINT_STREAM_INCLUDED
30 #define POINT_STREAM_INCLUDED
33 template<
class Real >
40 template<
class Real >
48 template<
class Real ,
class Data >
59 template<
class Real >
72 template<
class Real ,
class Data >
75 const std::pair< OrientedPoint3D< Real > , Data >* _points;
85 template<
class Real >
96 template<
class Real ,
class Data >
100 Data (*_readData)( FILE* );
108 template<
class Real >
112 static const int POINT_BUFFER_SIZE=1024;
114 int _pointsInBuffer , _currentPointIndex;
122 template<
class Real ,
class Data >
126 static const int POINT_BUFFER_SIZE=1024;
127 std::pair< OrientedPoint3D< Real > , Data > _pointBuffer[ POINT_BUFFER_SIZE ];
128 int _pointsInBuffer , _currentPointIndex;
136 template<
class Real >
153 template<
class Real ,
class Data >
156 struct _PlyOrientedVertexWithData :
public PlyOrientedVertex< Real > { Data data; };
162 int _dataPropertiesCount;
163 bool (*_validationFunction)(
const bool* );
174 #include "PointStream.inl"
ASCIIOrientedPointStreamWithData(const char *fileName, Data(*readData)(FILE *))
bool nextPoint(OrientedPoint3D< Real > &p, Data &d)
~ASCIIOrientedPointStreamWithData(void)
bool nextPoint(OrientedPoint3D< Real > &p)
~ASCIIOrientedPointStream(void)
ASCIIOrientedPointStream(const char *fileName)
~BinaryOrientedPointStreamWithData(void)
bool nextPoint(OrientedPoint3D< Real > &p, Data &d)
BinaryOrientedPointStreamWithData(const char *filename)
BinaryOrientedPointStream(const char *filename)
~BinaryOrientedPointStream(void)
bool nextPoint(OrientedPoint3D< Real > &p)
bool nextPoint(OrientedPoint3D< Real > &p, Data &d)
~MemoryOrientedPointStreamWithData(void)
MemoryOrientedPointStreamWithData(size_t pointCount, const std::pair< OrientedPoint3D< Real >, Data > *points)
bool nextPoint(OrientedPoint3D< Real > &p)
~MemoryOrientedPointStream(void)
MemoryOrientedPointStream(size_t pointCount, const OrientedPoint3D< Real > *points)
virtual bool nextPoint(OrientedPoint3D< Real > &p, Data &d)=0
virtual ~OrientedPointStreamWithData(void)
virtual bool nextPoint(OrientedPoint3D< Real > &p)
virtual void reset(void)=0
virtual void reset(void)=0
virtual bool nextPoint(OrientedPoint3D< Real > &p)=0
virtual ~OrientedPointStream(void)
~PLYOrientedPointStreamWithData(void)
PLYOrientedPointStreamWithData(const char *fileName, const PlyProperty *dataProperties, int dataPropertiesCount, bool(*validationFunction)(const bool *)=NULL)
bool nextPoint(OrientedPoint3D< Real > &p, Data &d)
~PLYOrientedPointStream(void)
bool nextPoint(OrientedPoint3D< Real > &p)
PLYOrientedPointStream(const char *fileName)
OrientedPoint3D(Point3D< Real > pp=Point3D< Real >(), Point3D< Real > nn=Point3D< Real >())