<html> <head> <title>OgreAreaEmitter.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.2.16 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>OgreAreaEmitter.h</h1><a href="OgreAreaEmitter_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font> 00002 <font class="comment">-----------------------------------------------------------------------------</font> 00003 <font class="comment">This source file is part of OGRE</font> 00004 <font class="comment"> (Object-oriented Graphics Rendering Engine)</font> 00005 <font class="comment">For the latest info, see http://www.ogre3d.org/</font> 00006 <font class="comment"></font> 00007 <font class="comment">Copyright ) 2000-2002 The OGRE Team</font> 00008 <font class="comment">Also see acknowledgements in Readme.html</font> 00009 <font class="comment"></font> 00010 <font class="comment">This program is free software; you can redistribute it and/or modify it under</font> 00011 <font class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</font> 00012 <font class="comment">Foundation; either version 2 of the License, or (at your option) any later</font> 00013 <font class="comment">version.</font> 00014 <font class="comment"></font> 00015 <font class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</font> 00016 <font class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</font> 00017 <font class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</font> 00018 <font class="comment"></font> 00019 <font class="comment">You should have received a copy of the GNU Lesser General Public License along with</font> 00020 <font class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</font> 00021 <font class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</font> 00022 <font class="comment">http://www.gnu.org/copyleft/lesser.txt.</font> 00023 <font class="comment">-----------------------------------------------------------------------------</font> 00024 <font class="comment">*/</font> 00025 <font class="preprocessor">#ifndef __AreaEmitter_H__</font> 00026 <font class="preprocessor"></font><font class="preprocessor">#define __AreaEmitter_H__</font> 00027 <font class="preprocessor"></font> 00028 <font class="preprocessor">#include "<a class="code" href="OgreParticleFXPrerequisites_8h.html">OgreParticleFXPrerequisites.h</a>"</font> 00029 <font class="preprocessor">#include "<a class="code" href="OgreParticleEmitter_8h.html">OgreParticleEmitter.h</a>"</font> 00030 00031 <font class="keyword">namespace </font>Ogre { 00032 <a name="l00044"></a><a class="code" href="classOgre_1_1AreaEmitter.html">00044</a> <font class="keyword">class </font><a class="code" href="OgreParticleFXPrerequisites_8h.html#a0">_OgreParticleFXExport</a> <a class="code" href="classOgre_1_1AreaEmitter.html">AreaEmitter</a> : <font class="keyword">public</font> <a class="code" href="classOgre_1_1ParticleEmitter.html">ParticleEmitter</a> 00045 { 00046 <font class="keyword">public</font>: <a name="l00048"></a><a class="code" href="classOgre_1_1AreaEmitter_1_1CmdWidth.html">00048</a> <font class="keyword">class </font><a class="code" href="classOgre_1_1AreaEmitter_1_1CmdWidth.html">CmdWidth</a> : <font class="keyword">public</font> <a class="code" href="classOgre_1_1ParamCommand.html">ParamCommand</a> 00049 { 00050 <font class="keyword">public</font>: 00051 <a class="code" href="classOgre_1_1String.html">String</a> doGet(<font class="keyword">const</font> <font class="keywordtype">void</font>* target) <font class="keyword">const</font>; 00052 <font class="keywordtype">void</font> doSet(<font class="keywordtype">void</font>* target, <font class="keyword">const</font> <a class="code" href="classOgre_1_1String.html">String</a>& val); 00053 }; <a name="l00055"></a><a class="code" href="classOgre_1_1AreaEmitter_1_1CmdHeight.html">00055</a> <font class="keyword">class </font><a class="code" href="classOgre_1_1AreaEmitter_1_1CmdHeight.html">CmdHeight</a> : <font class="keyword">public</font> <a class="code" href="classOgre_1_1ParamCommand.html">ParamCommand</a> 00056 { 00057 <font class="keyword">public</font>: 00058 <a class="code" href="classOgre_1_1String.html">String</a> doGet(<font class="keyword">const</font> <font class="keywordtype">void</font>* target) <font class="keyword">const</font>; 00059 <font class="keywordtype">void</font> doSet(<font class="keywordtype">void</font>* target, <font class="keyword">const</font> <a class="code" href="classOgre_1_1String.html">String</a>& val); 00060 }; <a name="l00062"></a><a class="code" href="classOgre_1_1AreaEmitter_1_1CmdDepth.html">00062</a> <font class="keyword">class </font><a class="code" href="classOgre_1_1AreaEmitter_1_1CmdDepth.html">CmdDepth</a> : <font class="keyword">public</font> <a class="code" href="classOgre_1_1ParamCommand.html">ParamCommand</a> 00063 { 00064 <font class="keyword">public</font>: 00065 <a class="code" href="classOgre_1_1String.html">String</a> doGet(<font class="keyword">const</font> <font class="keywordtype">void</font>* target) <font class="keyword">const</font>; 00066 <font class="keywordtype">void</font> doSet(<font class="keywordtype">void</font>* target, <font class="keyword">const</font> <a class="code" href="classOgre_1_1String.html">String</a>& val); 00067 }; 00068 00069 <a name="l00070"></a><a class="code" href="classOgre_1_1AreaEmitter.html#Ogre_1_1AreaEmittera0">00070</a> <a class="code" href="classOgre_1_1AreaEmitter.html">AreaEmitter</a>() {} 00071 00072 00074 <font class="keywordtype">unsigned</font> <font class="keywordtype">short</font> _getEmissionCount(<a class="code" href="namespaceOgre.html#a349">Real</a> timeElapsed); 00075 00077 <font class="keywordtype">void</font> setDirection( <font class="keyword">const</font> Vector3& direction ); 00078 00086 <font class="keywordtype">void</font> setSize(<font class="keyword">const</font> Vector3& size); 00087 00095 <font class="keywordtype">void</font> setSize(<a class="code" href="namespaceOgre.html#a349">Real</a> x, <a class="code" href="namespaceOgre.html#a349">Real</a> y, <a class="code" href="namespaceOgre.html#a349">Real</a> z); 00102 <font class="comment">// void setClearSpace(Real x, Real y, Real z);</font> 00103 00105 <font class="keywordtype">void</font> setWidth(<a class="code" href="namespaceOgre.html#a349">Real</a> width); 00107 <a class="code" href="namespaceOgre.html#a349">Real</a> getWidth(<font class="keywordtype">void</font>) <font class="keyword">const</font>; 00109 <font class="keywordtype">void</font> setHeight(<a class="code" href="namespaceOgre.html#a349">Real</a> Height); 00111 <a class="code" href="namespaceOgre.html#a349">Real</a> getHeight(<font class="keywordtype">void</font>) <font class="keyword">const</font>; 00113 <font class="keywordtype">void</font> setDepth(<a class="code" href="namespaceOgre.html#a349">Real</a> Depth); 00115 <a class="code" href="namespaceOgre.html#a349">Real</a> getDepth(<font class="keywordtype">void</font>) <font class="keyword">const</font>; 00116 00117 <font class="keyword">protected</font>: <a name="l00119"></a><a class="code" href="classOgre_1_1AreaEmitter.html#Ogre_1_1RingEmittern2">00119</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mSize; 00120 <a name="l00122"></a><a class="code" href="classOgre_1_1AreaEmitter.html#Ogre_1_1RingEmittern5">00122</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mXRange, mYRange, mZRange; 00123 00125 <font class="keywordtype">void</font> genAreaAxes(<font class="keywordtype">void</font>); 00127 <font class="keywordtype">void</font> initDefaults(<font class="keyword">const</font> <a class="code" href="classOgre_1_1String.html">String</a>& mType); 00128 00130 <font class="keyword">static</font> <a class="code" href="classOgre_1_1AreaEmitter_1_1CmdWidth.html">CmdWidth</a> msWidthCmd; 00131 <font class="keyword">static</font> <a class="code" href="classOgre_1_1AreaEmitter_1_1CmdHeight.html">CmdHeight</a> msHeightCmd; 00132 <font class="keyword">static</font> <a class="code" href="classOgre_1_1AreaEmitter_1_1CmdDepth.html">CmdDepth</a> msDepthCmd; 00133 00134 00135 00136 }; 00137 00138 } 00139 00140 <font class="preprocessor">#endif</font> 00141 <font class="preprocessor"></font> </pre></div><p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:10:02 2004 </p> </body> </html>