Commit 8d5b5b1cdbfc7962ea94a66aabc1a9928900e786

henry 2002-12-16T20:11:27

Made pointList private and removed size()

diff --git a/include/FTContour.h b/include/FTContour.h
index f27352f..0b08914 100644
--- a/include/FTContour.h
+++ b/include/FTContour.h
@@ -34,28 +34,22 @@ class FTGL_EXPORT FTContour
         {
             pointList.clear();
         }
-
+        
         /**
-         * How many points define this contour
+         * Return a point at index.
          *
-         * @return the number of points in this contour
+         * @param the index in the curve of the point.
+         * @return const point reference
          */
-        size_t size() const { return pointList.size();}
-        
+        const FTPoint& Point( unsigned int index) const { return pointList[index];}
+
         /**
          * How many points define this contour
          *
          * @return the number of points in this contour
          */
-        size_t Points() const { return size();}
+        size_t Points() const { return pointList.size();}
 
-        // FIXME make private
-        /**
-         *  The list of points in this contour
-         */
-        typedef FTVector<FTPoint> PointVector;
-        PointVector pointList;
-        
     private:
         /**
          * Add a point to this contour. This function tests for duplicate
@@ -78,6 +72,12 @@ class FTGL_EXPORT FTContour
         void evaluateCubicCurve();
 
         /**
+         *  The list of points in this contour
+         */
+        typedef FTVector<FTPoint> PointVector;
+        PointVector pointList;
+        
+        /**
          * 2D array storing values of de Casteljau algorithm.
          */
         float bValues[4][2];