Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 45

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Crystal Space 1.2.1: imesh/bezier.h Source File (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>imesh/bezier.h</h1><a href="bezier_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 1998-2001 by Jorrit Tyberghein</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">    This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment">    License as published by the Free Software Foundation; either</span>
<a name="l00007"></a>00007 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00012"></a>00012 <span class="comment">    Library General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
<a name="l00015"></a>00015 <span class="comment">    License along with this library; if not, write to the Free</span>
<a name="l00016"></a>00016 <span class="comment">    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00017"></a>00017 <span class="comment">*/</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef __CS_IMESH_BEZIER_H__</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_IMESH_BEZIER_H__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include "<a class="code" href="scf_8h.html" title="Crystal Space Shared Class Facility (SCF).">csutil/scf.h</a>"</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span>csCurve;
<a name="l00029"></a>00029 <span class="keyword">class </span><a class="code" href="classcsFlags.html" title="Set of flags which can be accessed through masks.">csFlags</a>;
<a name="l00030"></a>00030 <span class="keyword">class </span><a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>;
<a name="l00031"></a>00031 <span class="keyword">class </span><a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a>;
<a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>;
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keyword">struct </span><a class="code" href="structiMaterialWrapper.html" title="A material wrapper is an engine-level object that wraps around an actual material...">iMaterialWrapper</a>;
<a name="l00035"></a>00035 <span class="keyword">struct </span><a class="code" href="structiObject.html" title="This interface is an SCF interface for encapsulating csObject.">iObject</a>;
<a name="l00036"></a>00036 
<a name="l00050"></a><a class="code" href="structiCurve.html">00050</a> <span class="keyword">struct </span><a class="code" href="structiCurve.html" title="This is the interface for a curve.">iCurve</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a>
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052   SCF_INTERFACE (<a class="code" href="structiCurve.html" title="This is the interface for a curve.">iCurve</a>,  1, 0, 0);
<a name="l00053"></a>00053   
<a name="l00055"></a>00055   <span class="keyword">virtual</span> <a class="code" href="structiObject.html" title="This interface is an SCF interface for encapsulating csObject.">iObject</a> *<a class="code" href="structiCurve.html#0ad33cf538ff9c797fe5b3d142e8799d" title="Get the iObject for this curve.">QueryObject</a>() = 0;
<a name="l00057"></a>00057   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiCurve.html#e2af40f781041ce789abdeaa51cf05d7" title="Set the material wrapper.">SetMaterial</a> (<a class="code" href="structiMaterialWrapper.html" title="A material wrapper is an engine-level object that wraps around an actual material...">iMaterialWrapper</a>* mat) = 0;
<a name="l00059"></a>00059   <span class="keyword">virtual</span> <a class="code" href="structiMaterialWrapper.html" title="A material wrapper is an engine-level object that wraps around an actual material...">iMaterialWrapper</a>* <a class="code" href="structiCurve.html#84f282fd3c16d5f029b100c74d3e3062" title="Get the material wrapper.">GetMaterial</a> () <span class="keyword">const</span> = 0;
<a name="l00061"></a>00061   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiCurve.html#da52ba5b489e2cbe8b8c88c610c90e95" title="Set a control point.">SetControlPoint</a> (<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> control_id) = 0;
<a name="l00062"></a>00062 
<a name="l00064"></a>00064   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiCurve.html#6db99d9123a2e9cd0d22587d280db1c2" title="Get the number of vertices.">GetVertexCount</a> () <span class="keyword">const</span> = 0;
<a name="l00066"></a>00066   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiCurve.html#34a1a09abaac1cac2340780a12d02730" title="Get a vertex.">GetVertex</a> (<span class="keywordtype">int</span> idx) <span class="keyword">const</span> = 0;
<a name="l00068"></a>00068   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiCurve.html#679bc94ae18719583f9c71926f0f1d5e" title="Set a vertex.">SetVertex</a> (<span class="keywordtype">int</span> idx, <span class="keywordtype">int</span> vt) = 0;
<a name="l00069"></a>00069 };
<a name="l00070"></a>00070 
<a name="l00086"></a><a class="code" href="structiBezierFactoryState.html">00086</a> <span class="keyword">struct </span><a class="code" href="structiBezierFactoryState.html" title="This is the state interface to access the internals of a bezier mesh factory.">iBezierFactoryState</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a>
<a name="l00087"></a>00087 {
<a name="l00088"></a>00088   SCF_INTERFACE (<a class="code" href="structiBezierFactoryState.html" title="This is the state interface to access the internals of a bezier mesh factory.">iBezierFactoryState</a>, 1, 0, 0);
<a name="l00089"></a>00089   
<a name="l00093"></a>00093   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; <a class="code" href="structiBezierFactoryState.html#e9fc3cefee252e00aa936293a9004a7a" title="Get the center of the curves.">GetCurvesCenter</a> () <span class="keyword">const</span> = 0;
<a name="l00097"></a>00097   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#90c4bdb96f5cd0ae55255ca99b008780" title="Set the center of the curves.">SetCurvesCenter</a> (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; cen) = 0;
<a name="l00098"></a>00098 
<a name="l00102"></a>00102   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="structiBezierFactoryState.html#6b4e6c1388fa4a0844bdb95c2b782f85" title="Get the scale of the curves.">GetCurvesScale</a> () <span class="keyword">const</span> = 0;
<a name="l00106"></a>00106   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#c0ae094dd9fdf178a46f3f4ccb36ac45" title="Set the scale of the curves.">SetCurvesScale</a> (<span class="keywordtype">float</span> scale) = 0;
<a name="l00107"></a>00107 
<a name="l00109"></a>00109   <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="structiBezierFactoryState.html#16389930aede538d60634ee97a81ae02" title="Add a curve vertex.">AddCurveVertex</a> (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; v, <span class="keyword">const</span> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a>&amp; uv) = 0;
<a name="l00111"></a>00111   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiBezierFactoryState.html#c60acabed9238583d9a55b6749cfb321" title="Get the number of curves.">GetCurveCount</a> () <span class="keyword">const</span> = 0;
<a name="l00113"></a>00113   <span class="keyword">virtual</span> <a class="code" href="structiCurve.html" title="This is the interface for a curve.">iCurve</a>* <a class="code" href="structiBezierFactoryState.html#b93cd093ea50a35e8d2b2e93b43f6fad" title="Get the curve.">GetCurve</a> (<span class="keywordtype">int</span> idx) <span class="keyword">const</span> = 0;
<a name="l00115"></a>00115   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiBezierFactoryState.html#44781e23fb1451f7c22e2e489f4c009b" title="Get the number of curve vertices.">GetCurveVertexCount</a> () <span class="keyword">const</span> = 0;
<a name="l00117"></a>00117   <span class="keyword">virtual</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; <a class="code" href="structiBezierFactoryState.html#34aefea88895bfb05898b3e5b59ed535" title="Get the specified curve vertex.">GetCurveVertex</a> (<span class="keywordtype">int</span> i) <span class="keyword">const</span> = 0;
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>* <a class="code" href="structiBezierFactoryState.html#02b087ea2e27ac150be9f85c452626bb" title="Get the curve vertices.">GetCurveVertices</a> () <span class="keyword">const</span> = 0;
<a name="l00121"></a>00121   <span class="keyword">virtual</span> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a>&amp; <a class="code" href="structiBezierFactoryState.html#2885e02539337e23cd4edb359e94b33e" title="Get the specified curve texture coordinate (texel).">GetCurveTexel</a> (<span class="keywordtype">int</span> i) <span class="keyword">const</span> = 0;
<a name="l00123"></a>00123   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#9f74fa8dcbaedc4d91244a927a83ea9e" title="Set a curve vertex.">SetCurveVertex</a> (<span class="keywordtype">int</span> idx, <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; vt) = 0;
<a name="l00125"></a>00125   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#fd2cad88791eec54fee34f0c1c663267" title="Set a curve texel.">SetCurveTexel</a> (<span class="keywordtype">int</span> idx, <span class="keyword">const</span> <a class="code" href="classcsVector2.html" title="A 2D vector.">csVector2</a>&amp; vt) = 0;
<a name="l00127"></a>00127   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#db64a22e2bc6dc0b1b7df6c6d2ee784c" title="Clear all curve vertices (and texels too).">ClearCurveVertices</a> () = 0;
<a name="l00128"></a>00128 
<a name="l00130"></a>00130   <span class="keyword">virtual</span> <a class="code" href="structiCurve.html" title="This is the interface for a curve.">iCurve</a>* <a class="code" href="structiBezierFactoryState.html#0ff86bee48e3b44c3d71fc9342327556" title="Create a new curve for this thing.">CreateCurve</a> () = 0;
<a name="l00132"></a>00132   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiBezierFactoryState.html#543ea463a30f31ebade398808f59596e" title="Find the index for a curve. Returns -1 if curve cannot be found.">FindCurveIndex</a> (<a class="code" href="structiCurve.html" title="This is the interface for a curve.">iCurve</a>* curve) <span class="keyword">const</span> = 0;
<a name="l00134"></a>00134   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#e3628af13d3b1dab1a96eff794a4a31c" title="Delete a curve given an index.">RemoveCurve</a> (<span class="keywordtype">int</span> idx) = 0;
<a name="l00136"></a>00136   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#bb1e180b979d543a15df34cc77f26442" title="Delete all curves.">RemoveCurves</a> () = 0;
<a name="l00137"></a>00137 
<a name="l00141"></a>00141   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="structiBezierFactoryState.html#ae264f45204377c1f56f4c39f4dfa029" title="Get cosinus factor.">GetCosinusFactor</a> () <span class="keyword">const</span> = 0;
<a name="l00147"></a>00147   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#0c40a1bc2f9a564f48e55103b7bbd622" title="Set cosinus factor.">SetCosinusFactor</a> (<span class="keywordtype">float</span> cosfact) = 0;
<a name="l00148"></a>00148 
<a name="l00152"></a>00152   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiBezierFactoryState.html#ef201b4cc4b62c2ece1da70fd23420e9" title="Add polygons and vertices from the specified thing (seen as template).">MergeTemplate</a> (<a class="code" href="structiBezierFactoryState.html" title="This is the state interface to access the internals of a bezier mesh factory.">iBezierFactoryState</a>* tpl,
<a name="l00153"></a>00153         <a class="code" href="structiMaterialWrapper.html" title="A material wrapper is an engine-level object that wraps around an actual material...">iMaterialWrapper</a>* default_material = 0,
<a name="l00154"></a>00154         <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>* shift = 0, <a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>* transform = 0) = 0;
<a name="l00155"></a>00155 };
<a name="l00156"></a>00156 
<a name="l00171"></a><a class="code" href="structiBezierState.html">00171</a> <span class="keyword">struct </span><a class="code" href="structiBezierState.html" title="This is the state interface to access the internals of a bezier mesh object.">iBezierState</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a>
<a name="l00172"></a>00172 {
<a name="l00173"></a>00173   SCF_INTERFACE (<a class="code" href="structiBezierState.html" title="This is the state interface to access the internals of a bezier mesh object.">iBezierState</a>, 1, 0, 0);
<a name="l00174"></a>00174   
<a name="l00176"></a>00176   <span class="keyword">virtual</span> <a class="code" href="structiBezierFactoryState.html" title="This is the state interface to access the internals of a bezier mesh factory.">iBezierFactoryState</a>* <a class="code" href="structiBezierState.html#74edd8bcc930945a3c4df04bfc48b96e" title="Get the factory.">GetFactory</a> () = 0;
<a name="l00177"></a>00177 };
<a name="l00178"></a>00178 
<a name="l00181"></a>00181 <span class="preprocessor">#endif // __CS_IMESH_BEZIER_H__</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span>
</pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>