| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>FTGL: FTContour.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.3.6 --> |
| <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div> |
| <h1>FTContour.h</h1><a href="FTContour_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef __FTContour__</span> |
| 00002 <span class="preprocessor"></span><span class="preprocessor">#define __FTContour__</span> |
| 00003 <span class="preprocessor"></span> |
| 00004 <span class="preprocessor">#include "<a class="code" href="FTPoint_8h.html">FTPoint.h</a>"</span> |
| 00005 <span class="preprocessor">#include "<a class="code" href="FTVector_8h.html">FTVector.h</a>"</span> |
| 00006 <span class="preprocessor">#include "<a class="code" href="FTGL_8h.html">FTGL.h</a>"</span> |
| 00007 |
| 00008 |
| <a name="l00018"></a><a class="code" href="classFTContour.html">00018</a> <span class="keyword">class </span><a class="code" href="FTGL_8h.html#a3">FTGL_EXPORT</a> FTContour |
| 00019 { |
| 00020 <span class="keyword">public</span>: |
| 00028 FTContour( FT_Vector* contour, <span class="keywordtype">char</span>* pointTags, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numberOfPoints); |
| 00029 |
| <a name="l00033"></a><a class="code" href="classFTContour.html#a1">00033</a> ~FTContour() |
| 00034 { |
| 00035 pointList.clear(); |
| 00036 } |
| 00037 |
| <a name="l00044"></a><a class="code" href="classFTContour.html#a2">00044</a> <span class="keyword">const</span> <a class="code" href="classFTPoint.html">FTPoint</a>& Point( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> index)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> pointList[index];} |
| 00045 |
| <a name="l00051"></a><a class="code" href="classFTContour.html#a3">00051</a> size_t PointCount()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> pointList.size();} |
| 00052 |
| 00053 <span class="keyword">private</span>: |
| 00060 <span class="keyword">inline</span> <span class="keywordtype">void</span> AddPoint( <a class="code" href="classFTPoint.html">FTPoint</a> point); |
| 00061 |
| 00062 <span class="keyword">inline</span> <span class="keywordtype">void</span> AddPoint( <span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y); |
| 00063 |
| 00068 <span class="keyword">inline</span> <span class="keywordtype">void</span> evaluateQuadraticCurve(); |
| 00069 |
| 00074 <span class="keyword">inline</span> <span class="keywordtype">void</span> evaluateCubicCurve(); |
| 00075 |
| 00079 <span class="keyword">typedef</span> <a class="code" href="classFTVector.html">FTVector<FTPoint></a> PointVector; |
| 00080 PointVector pointList; |
| 00081 |
| 00085 <span class="keywordtype">float</span> controlPoints[4][2]; |
| 00086 }; |
| 00087 |
| 00088 <span class="preprocessor">#endif // __FTContour__</span> |
| </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Dec 5 22:24:05 2004 for FTGL by |
| <a href="http://www.doxygen.org/index.html"> |
| <img src="doxygen.png" alt="doxygen" align="middle" border=0 > |
| </a>1.3.6 </small></address> |
| </body> |
| </html> |