Sophie

Sophie

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

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: cstool/mapnode.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>cstool/mapnode.h</h1><a href="cstool_2mapnode_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) 2001 by Jorrit Tyberghein</span>
<a name="l00003"></a>00003 <span class="comment">    Copyright (C) 2000 by Thomas Hieber</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</span>
<a name="l00006"></a>00006 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment">    License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment">    Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
<a name="l00016"></a>00016 <span class="comment">    License along with this library; if not, write to the Free</span>
<a name="l00017"></a>00017 <span class="comment">    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __CS_MAPNODE_H__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __CS_MAPNODE_H__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "csextern.h"</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#include "<a class="code" href="vector3_8h.html" title="3D vector.">csgeom/vector3.h</a>"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="csobject_8h.html" title="Implementation for iObject.">csutil/csobject.h</a>"</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="scf__implementation_8h.html" title="Crystal Space Shared Class Facility (SCF) - implementation creation support.">csutil/scf_implementation.h</a>"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="ivaria_2mapnode_8h.html" title="Map node interface.">ivaria/mapnode.h</a>"</span>
<a name="l00033"></a>00033 
<a name="l00038"></a><a class="code" href="classcsMapNode.html">00038</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsMapNode.html" title="A node.">csMapNode</a> : 
<a name="l00039"></a>00039   <span class="keyword">public</span> <a class="code" href="classscfImplementationExt1.html">scfImplementationExt1</a>&lt;csMapNode, csObject, iMapNode&gt;
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041 <span class="keyword">public</span>:
<a name="l00043"></a>00043   <a class="code" href="classcsMapNode.html" title="A node.">csMapNode</a> (<span class="keyword">const</span> <span class="keywordtype">char</span> *Name);
<a name="l00045"></a>00045   <span class="keyword">virtual</span> ~<a class="code" href="classcsMapNode.html" title="A node.">csMapNode</a> ();
<a name="l00046"></a>00046 
<a name="l00048"></a>00048   <span class="keyword">static</span> <a class="code" href="structiMapNode.html" title="A node.">iMapNode</a> *GetNode (<a class="code" href="structiSector.html" title="The iSector interface is used to work with &amp;quot;sectors&amp;quot;.">iSector</a> *pSector, <span class="keyword">const</span> <span class="keywordtype">char</span> *name,
<a name="l00049"></a>00049     <span class="keyword">const</span> <span class="keywordtype">char</span> *classname = 0);
<a name="l00050"></a>00050 
<a name="l00051"></a>00051   <span class="comment">//----------------------- iMapNode --------------------------</span>
<a name="l00052"></a><a class="code" href="classcsMapNode.html#fad30d54e55b125a3787c1cc345ff688">00052</a>   <span class="keyword">virtual</span> <a class="code" href="structiObject.html" title="This interface is an SCF interface for encapsulating csObject.">iObject</a> *QueryObject() { <span class="keywordflow">return</span> (<a class="code" href="classcsObject.html" title="A generic csObject class.">csObject</a>*)<span class="keyword">this</span>; }
<a name="l00053"></a><a class="code" href="classcsMapNode.html#01eae0831dcdc66124c25018250fe61d">00053</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetPosition (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; pos) { position = pos; }
<a name="l00054"></a><a class="code" href="classcsMapNode.html#ca3af07877181de149972417dd939311">00054</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; GetPosition ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> position; }
<a name="l00055"></a><a class="code" href="classcsMapNode.html#417b7021e3e01d0d429801919512e085">00055</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetXVector (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; vec) { xvector = vec; }
<a name="l00056"></a><a class="code" href="classcsMapNode.html#f761b5e784fbbae7d0c3a53334f427a9">00056</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; GetXVector ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> xvector; }
<a name="l00057"></a><a class="code" href="classcsMapNode.html#d7676197e97e6d9dcdc0baa362ff36a2">00057</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetYVector (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; vec) { yvector = vec; }
<a name="l00058"></a><a class="code" href="classcsMapNode.html#51e5043ddd997a27d7975169a51443fc">00058</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; GetYVector ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> yvector; }
<a name="l00059"></a><a class="code" href="classcsMapNode.html#2f943921fcec228fa46b81f9427e4eda">00059</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetZVector (<span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; vec) { zvector = vec; }
<a name="l00060"></a><a class="code" href="classcsMapNode.html#8b1f4b5e5fa48c5424164de28e2c2c2c">00060</a>   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>&amp; GetZVector ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> zvector; }
<a name="l00061"></a>00061 
<a name="l00062"></a>00062   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetSector (<a class="code" href="structiSector.html" title="The iSector interface is used to work with &amp;quot;sectors&amp;quot;.">iSector</a> *sec);
<a name="l00063"></a><a class="code" href="classcsMapNode.html#5618ff6289318b123816b7465412b334">00063</a>   <span class="keyword">virtual</span> <a class="code" href="structiSector.html" title="The iSector interface is used to work with &amp;quot;sectors&amp;quot;.">iSector</a> *GetSector ()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sector; }
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="keyword">private</span>:
<a name="l00066"></a>00066   <a class="code" href="structiSector.html" title="The iSector interface is used to work with &amp;quot;sectors&amp;quot;.">iSector</a> *sector;
<a name="l00067"></a>00067   <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> position;
<a name="l00068"></a>00068   <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> xvector;
<a name="l00069"></a>00069   <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> yvector;
<a name="l00070"></a>00070   <a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a> zvector;
<a name="l00071"></a>00071 };
<a name="l00072"></a>00072 
<a name="l00076"></a><a class="code" href="classcsNodeIterator.html">00076</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="classcsNodeIterator.html" title="A node iterator.">csNodeIterator</a>
<a name="l00077"></a>00077 {
<a name="l00078"></a>00078 <span class="keyword">public</span>:
<a name="l00090"></a>00090   <a class="code" href="classcsNodeIterator.html" title="A node iterator.">csNodeIterator</a> (<a class="code" href="structiSector.html" title="The iSector interface is used to work with &amp;quot;sectors&amp;quot;.">iSector</a> *pSector, <span class="keyword">const</span> <span class="keywordtype">char</span> *classname = 0);
<a name="l00091"></a>00091 
<a name="l00093"></a>00093   ~<a class="code" href="classcsNodeIterator.html" title="A node iterator.">csNodeIterator</a> ();
<a name="l00094"></a>00094 
<a name="l00096"></a>00096   <span class="keywordtype">void</span> Reset (<a class="code" href="structiSector.html" title="The iSector interface is used to work with &amp;quot;sectors&amp;quot;.">iSector</a> *pSector, <span class="keyword">const</span> <span class="keywordtype">char</span> *classname = 0);
<a name="l00098"></a>00098   <a class="code" href="structiMapNode.html" title="A node.">iMapNode</a>* Next ();
<a name="l00100"></a>00100   <span class="keywordtype">bool</span> HasNext () <span class="keyword">const</span>;
<a name="l00101"></a>00101 
<a name="l00102"></a>00102 <span class="keyword">protected</span>:
<a name="l00104"></a>00104   <span class="keywordtype">void</span> SkipWrongClassname ();
<a name="l00106"></a>00106   <span class="keywordtype">void</span> NextNode ();
<a name="l00107"></a>00107 
<a name="l00108"></a><a class="code" href="classcsNodeIterator.html#590780d545f9ebce6f28df72a6cf53d3">00108</a>   <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iObjectIterator&gt;</a> Iterator;
<a name="l00109"></a><a class="code" href="classcsNodeIterator.html#58ee3885a802a583465d7a9b7d6a4845">00109</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> *Classname;
<a name="l00110"></a><a class="code" href="classcsNodeIterator.html#ffc0fa16362c194b21442c07f0867968">00110</a>   <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iMapNode&gt;</a> CurrentNode;
<a name="l00111"></a>00111 };
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="preprocessor">#endif // __CS_MAPNODE_H__</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>