<html> <head> <title>Cal3D: coremesh.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center"> <tr> <td class="md" align="center"> <small> <b>- Cal3D 0.11 API Reference -</b> </small> </td> </tr> </table> <br> <!-- Generated by Doxygen 1.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <h1>coremesh.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//****************************************************************************//</span> <a name="l00002"></a>00002 <span class="comment">// coremesh.h //</span> <a name="l00003"></a>00003 <span class="comment">// Copyright (C) 2001, 2002 Bruno 'Beosil' Heidelberger //</span> <a name="l00004"></a>00004 <span class="comment">//****************************************************************************//</span> <a name="l00005"></a>00005 <span class="comment">// This library is free software; you can redistribute it and/or modify it //</span> <a name="l00006"></a>00006 <span class="comment">// under the terms of the GNU Lesser General Public License as published by //</span> <a name="l00007"></a>00007 <span class="comment">// the Free Software Foundation; either version 2.1 of the License, or (at //</span> <a name="l00008"></a>00008 <span class="comment">// your option) any later version. //</span> <a name="l00009"></a>00009 <span class="comment">//****************************************************************************//</span> <a name="l00010"></a>00010 <a name="l00011"></a>00011 <span class="preprocessor">#ifndef CAL_COREMESH_H</span> <a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define CAL_COREMESH_H</span> <a name="l00013"></a>00013 <span class="preprocessor"></span> <a name="l00014"></a>00014 <a name="l00015"></a>00015 <span class="preprocessor">#include "cal3d/global.h"</span> <a name="l00016"></a>00016 <span class="preprocessor">#include "cal3d/refcounted.h"</span> <a name="l00017"></a>00017 <span class="preprocessor">#include "cal3d/refptr.h"</span> <a name="l00018"></a>00018 <a name="l00019"></a>00019 <a name="l00020"></a>00020 <span class="keyword">class </span>CalCoreSubmesh; <a name="l00021"></a>00021 <a name="l00022"></a>00022 <a name="l00023"></a>00023 <span class="keyword">class </span>CAL3D_API CalCoreMesh : <span class="keyword">public</span> cal3d::RefCounted <a name="l00024"></a>00024 { <a name="l00025"></a>00025 <span class="keyword">protected</span>: <a name="l00026"></a>00026 ~CalCoreMesh(); <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="keyword">public</span>: <a name="l00029"></a>00029 CalCoreMesh(); <a name="l00030"></a>00030 <a name="l00031"></a>00031 <span class="keywordtype">int</span> addCoreSubmesh(CalCoreSubmesh *pCoreSubmesh); <a name="l00032"></a>00032 CalCoreSubmesh *getCoreSubmesh(<span class="keywordtype">int</span> <span class="keywordtype">id</span>); <a name="l00033"></a>00033 <span class="keywordtype">int</span> getCoreSubmeshCount(); <a name="l00034"></a>00034 std::vector<CalCoreSubmesh *>& getVectorCoreSubmesh(); <a name="l00035"></a>00035 <span class="keywordtype">int</span> addAsMorphTarget(CalCoreMesh *pCoreMesh); <a name="l00036"></a>00036 <span class="keywordtype">void</span> scale(<span class="keywordtype">float</span> factor); <a name="l00037"></a>00037 <span class="keywordtype">void</span> setFilename(<span class="keyword">const</span> std::string& filename); <a name="l00038"></a>00038 <span class="keyword">const</span> std::string& getFilename(<span class="keywordtype">void</span>); <a name="l00039"></a>00039 <span class="keywordtype">void</span> setName(<span class="keyword">const</span> std::string& name); <a name="l00040"></a>00040 <span class="keyword">const</span> std::string& getName(<span class="keywordtype">void</span>); <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="keyword">private</span>: <a name="l00043"></a>00043 std::vector<CalCoreSubmesh *> m_vectorCoreSubmesh; <a name="l00044"></a>00044 std::string m_name; <a name="l00045"></a>00045 std::string m_filename; <a name="l00046"></a>00046 }; <a name="l00047"></a>00047 <span class="keyword">typedef</span> <a class="code" href="classcal3d_1_1RefPtr.html" title="A container-safe smart pointer used for refcounted classes.">cal3d::RefPtr<CalCoreMesh></a> <a class="code" href="classcal3d_1_1RefPtr.html" title="A container-safe smart pointer used for refcounted classes.">CalCoreMeshPtr</a>; <a name="l00048"></a>00048 <a name="l00049"></a>00049 <span class="preprocessor">#endif</span> </pre></div></div> <hr> <center> <small> Generated at Fri Jul 24 21:14:36 2009 by <a href="http://gna.org/projects/cal3d/">The Cal3D Team</a> with <a href="http://www.doxygen.org/index.html"> Doxygen 1.5.9 </a> </small> </center> </body> </html>