00001 #ifndef __FTContour__
00002 #define __FTContour__
00003
00004 #include "FTPoint.h"
00005 #include "FTVector.h"
00006 #include "FTGL.h"
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 class FTGL_EXPORT FTContour
00019 {
00020 public:
00021
00022
00023
00024
00025
00026
00027
00028 FTContour( FT_Vector* contour, char* pointTags, unsigned int numberOfPoints);
00029
00030
00031
00032
00033 ~FTContour()
00034 {
00035 pointList.clear();
00036 }
00037
00038
00039
00040
00041
00042
00043
00044 const FTPoint& Point( unsigned int index) const { return pointList[index];}
00045
00046
00047
00048
00049
00050
00051 size_t PointCount() const { return pointList.size();}
00052
00053 private:
00054
00055
00056
00057
00058
00059
00060 inline void AddPoint( FTPoint point);
00061
00062 inline void AddPoint( float x, float y);
00063
00064
00065
00066
00067
00068 inline void evaluateQuadraticCurve();
00069
00070
00071
00072
00073
00074 inline void evaluateCubicCurve();
00075
00076
00077
00078
00079 typedef FTVector<FTPoint> PointVector;
00080 PointVector pointList;
00081
00082
00083
00084
00085 float controlPoints[4][2];
00086 };
00087
00088 #endif // __FTContour__