#ifndef LiPoint2_HH #define LiPoint2_HH /////////////////////////////////////////////////////////////////// //! file="amma/Geometry/AGList/LiPoint2.hh" //! lib=Maglist //! author="Radek Marik" //! docentry="Geometry.Types.Specialized Lists;Containers.Lists.Specialized Lists" //! rcsid="$Id: LiPoint2.hh,v 1.6 1999/05/24 10:32:47 ees1cg Exp $" //! date="06/08/95" #include "amma/DList.hh" #include "amma/CDLIter.hh" #include "amma/DLIter.hh" #include "amma/Point2d.hh" class Mean2dC; //==================================================================== //======= Point2dListC ================================================ //==================================================================== class istream; class ostream; //! userlevel=Normal //: A data set created as a list of data class Point2dListC: public DListC { public: inline Point2dListC(); // Empty list of points. Point2dListC(const char * filename); // Creates a list of points from the input file 'filename'. Point2dListC(istream & s); // Creates a list of points from the input stream s. inline Point2dListC(const DListC & points); // Constructs a list of points from the list (as a big object). inline Point2dListC(const Point2dListC & points); // Another access to the list of points. Mean2dC Mean() const; // Returns the mean of the points (e.g. the centroid). void SeparatingLines() const; // For each pair of points finds the separating line. // All points must be different. NOT IMPLEMENTED. }; istream & operator>>(istream & s, Point2dListC & points); // Reads the list of data from the input stream ostream & operator<<(ostream & s, const Point2dListC & points); // Sends the list of data into the output stream typedef ConstDLIterC Point2dCLIterC; typedef DLIterC Point2dLIterC; inline Point2dListC::Point2dListC() //========================== : DListC() {} inline Point2dListC::Point2dListC(const DListC & points) //========================================================= : DListC(points) {} inline Point2dListC::Point2dListC(const Point2dListC & points) //===================================================== : DListC(points) {} #endif // IAPS - Image analysis program system. // End of include file LiPoint2.hh