Made pointList private and removed size()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
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];