source: OGRE/trunk/ogrenew/Docs/api/html/OgreNode_8h-source.html @ 692

Revision 692, 31.5 KB checked in by mattausch, 19 years ago (diff)

adding ogre 1.2 and dependencies

Line 
1<html>
2<head>
3<title>OgreNode.h Source File - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4<link type="text/css" rel="stylesheet" href="style.css">
5</head>
6
7<body>
8<!-- Generated by Doxygen 1.3.6 -->
9<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
10<h1>OgreNode.h</h1><a href="OgreNode_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
1100002 <span class="comment">-----------------------------------------------------------------------------</span>
1200003 <span class="comment">This source file is part of OGRE</span>
1300004 <span class="comment">    (Object-oriented Graphics Rendering Engine)</span>
1400005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span>
1500006 <span class="comment"></span>
1600007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span>
1700008 <span class="comment">Also see acknowledgements in Readme.html</span>
1800009 <span class="comment"></span>
1900010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span>
2000011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span>
2100012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span>
2200013 <span class="comment">version.</span>
2300014 <span class="comment"></span>
2400015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span>
2500016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
2600017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span>
2700018 <span class="comment"></span>
2800019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span>
2900020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span>
3000021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span>
3100022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span>
3200023 <span class="comment">-----------------------------------------------------------------------------</span>
3300024 <span class="comment">*/</span>
3400025 <span class="preprocessor">#ifndef _Node_H__</span>
3500026 <span class="preprocessor"></span><span class="preprocessor">#define _Node_H__</span>
3600027 <span class="preprocessor"></span>
3700028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span>
3800029
3900030 <span class="preprocessor">#include "<a class="code" href="OgreMatrix3_8h.html">OgreMatrix3.h</a>"</span>
4000031 <span class="preprocessor">#include "<a class="code" href="OgreMatrix4_8h.html">OgreMatrix4.h</a>"</span>
4100032 <span class="preprocessor">#include "<a class="code" href="OgreQuaternion_8h.html">OgreQuaternion.h</a>"</span>
4200033 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span>
4300034 <span class="preprocessor">#include "<a class="code" href="OgreRenderable_8h.html">OgreRenderable.h</a>"</span>
4400035 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span>
4500036
4600037 <span class="keyword">namespace </span>Ogre {
4700038
4800039
49<a name="l00050"></a><a class="code" href="classOgre_1_1Node.html">00050</a>     <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> Node : <span class="keyword">public</span> <a class="code" href="classOgre_1_1Renderable.html">Renderable</a>
5000051     {
5100052     <span class="keyword">public</span>:
52<a name="l00055"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw6">00055</a>         <span class="keyword">enum</span> TransformSpace
5300056         {
5400058             TS_LOCAL,
5500060             TS_PARENT,
5600062             TS_WORLD
5700063         };
58<a name="l00064"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw0">00064</a>         <span class="keyword">typedef</span> HashMap&lt;String, Node*&gt; <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw0">ChildNodeMap</a>;
59<a name="l00065"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw1">00065</a>         <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1MapIterator.html">MapIterator&lt;ChildNodeMap&gt;</a> <a class="code" href="classOgre_1_1MapIterator.html">ChildNodeIterator</a>;
60<a name="l00066"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw2">00066</a>         <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1ConstMapIterator.html">ConstMapIterator&lt;ChildNodeMap&gt;</a> <a class="code" href="classOgre_1_1ConstMapIterator.html">ConstChildNodeIterator</a>;
6100067
62<a name="l00070"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html">00070</a>         <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> Listener
6300071         {
6400072         <span class="keyword">public</span>:
65<a name="l00073"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html#Ogre_1_1Node_1_1Listenera0">00073</a>             Listener() {}
66<a name="l00074"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html#Ogre_1_1Node_1_1Listenera1">00074</a>             <span class="keyword">virtual</span> ~Listener() {}
67<a name="l00082"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html#Ogre_1_1Node_1_1Listenera2">00082</a>             <span class="keyword">virtual</span> <span class="keywordtype">void</span> nodeUpdated(<span class="keyword">const</span> Node* node) {}
68<a name="l00084"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html#Ogre_1_1Node_1_1Listenera3">00084</a>             <span class="keyword">virtual</span> <span class="keywordtype">void</span> nodeDestroyed(<span class="keyword">const</span> Node* node) {};
69<a name="l00086"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html#Ogre_1_1RibbonTraila104">00086</a>             <span class="keyword">virtual</span> <span class="keywordtype">void</span> nodeAttached(<span class="keyword">const</span> Node* node) {};
70<a name="l00088"></a><a class="code" href="classOgre_1_1Node_1_1Listener.html#Ogre_1_1RibbonTraila105">00088</a>             <span class="keyword">virtual</span> <span class="keywordtype">void</span> nodeDetached(<span class="keyword">const</span> Node* node) {};
7100089         };
7200090
7300091     <span class="keyword">protected</span>:
74<a name="l00093"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp4">00093</a>         Node* mParent;
75<a name="l00095"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp5">00095</a>         <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw0">ChildNodeMap</a> mChildren;
7600096
77<a name="l00097"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx0">00097</a>         <span class="keyword">typedef</span> std::set&lt;Node*&gt; <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx0">ChildUpdateSet</a>;
78<a name="l00099"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp6">00099</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx0">ChildUpdateSet</a> mChildrenToUpdate;
79<a name="l00101"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp7">00101</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mNeedParentUpdate;
80<a name="l00103"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp8">00103</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mNeedChildUpdate;
81<a name="l00105"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp9">00105</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mParentNotified ;
8200106
83<a name="l00108"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp10">00108</a>         <a class="code" href="namespaceOgre.html#a471">String</a> mName;
8400109
85<a name="l00111"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointt0">00111</a>         <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> msNextGeneratedNameExt;
8600112
87<a name="l00114"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp11">00114</a>         <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mOrientation;
8800115
89<a name="l00117"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp12">00117</a>         <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mPosition;
9000118
91<a name="l00120"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp13">00120</a>         <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mScale;
9200121
93<a name="l00123"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp14">00123</a>         <span class="keywordtype">bool</span> mInheritOrientation;
9400124
95<a name="l00126"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp15">00126</a>         <span class="keywordtype">bool</span> mInheritScale;
9600127
97<a name="l00129"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp16">00129</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a> mpMaterial;
9800130
9900132         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setParent(Node* parent);
10000133
101<a name="l00141"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp17">00141</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mDerivedOrientation;
10200142
103<a name="l00150"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp18">00150</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mDerivedPosition;
10400151
105<a name="l00159"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp19">00159</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mDerivedScale;
10600160
10700167         <span class="keyword">virtual</span> <span class="keywordtype">void</span> _updateFromParent(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
10800168
10900170         <span class="keyword">virtual</span> Node* createChildImpl(<span class="keywordtype">void</span>) = 0;
11000171
11100173         <span class="keyword">virtual</span> Node* createChildImpl(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name) = 0;
11200174
113<a name="l00176"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp20">00176</a>         <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mInitialPosition;
114<a name="l00178"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp21">00178</a>         <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mInitialOrientation;
115<a name="l00180"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp22">00180</a>         <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mInitialScale;
11600181
11700182         <span class="comment">// Weight of applied animations so far, used for blending</span>
118<a name="l00183"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp23">00183</a>         <a class="code" href="namespaceOgre.html#a465">Real</a> mAccumAnimWeight;
11900184         <span class="comment">// The total weighted translation from the initial state so far</span>
120<a name="l00185"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp24">00185</a>         <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mTransFromInitial;
12100186         <span class="comment">// The total weighted rotation from the initial state so far</span>
122<a name="l00187"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp25">00187</a>         <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mRotFromInitial;
12300188         <span class="comment">// The total weighted scale from the initial state so far</span>
124<a name="l00189"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp26">00189</a>         <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mScaleFromInitial;
12500190
126<a name="l00192"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp27">00192</a>         <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> mCachedTransform;
127<a name="l00193"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp28">00193</a>         <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mCachedTransformOutOfDate;
12800194
129<a name="l00196"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp29">00196</a>         Listener* mListener;
13000197
131<a name="l00198"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx1">00198</a>         <span class="keyword">typedef</span> std::vector&lt;Node*&gt; <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx1">QueuedUpdates</a>;
132<a name="l00199"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointt1">00199</a>         <span class="keyword">static</span> <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx1">QueuedUpdates</a> msQueuedUpdates;
13300200
13400201
13500202     <span class="keyword">public</span>:
13600207         Node();
13700212         Node(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; name);
13800213
13900214         <span class="keyword">virtual</span> ~Node(); 
14000215
14100217         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>&amp; getName(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
14200218
14300221         <span class="keyword">virtual</span> Node* getParent(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
14400222
14500225         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> &amp; getOrientation() <span class="keyword">const</span>;
14600226
14700240         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setOrientation( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>&amp; q );
14800241
14900255         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setOrientation( <a class="code" href="namespaceOgre.html#a465">Real</a> w, <a class="code" href="namespaceOgre.html#a465">Real</a> x, <a class="code" href="namespaceOgre.html#a465">Real</a> y, <a class="code" href="namespaceOgre.html#a465">Real</a> z);
15000256
15100270         <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetOrientation(<span class="keywordtype">void</span>);
15200271
15300274         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPosition(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; pos);
15400275
15500278         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPosition(<a class="code" href="namespaceOgre.html#a465">Real</a> x, <a class="code" href="namespaceOgre.html#a465">Real</a> y, <a class="code" href="namespaceOgre.html#a465">Real</a> z);
15600279
15700282         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> &amp; getPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
15800283
15900296         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setScale(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; scale);
16000297
16100310         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setScale(<a class="code" href="namespaceOgre.html#a465">Real</a> x, <a class="code" href="namespaceOgre.html#a465">Real</a> y, <a class="code" href="namespaceOgre.html#a465">Real</a> z);
16200311
16300314         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> &amp; getScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16400315
16500329         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInheritOrientation(<span class="keywordtype">bool</span> inherit);
16600330
16700344         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getInheritOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
16800345
16900358         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInheritScale(<span class="keywordtype">bool</span> inherit);
17000359
17100364         <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getInheritScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
17200365
17300375         <span class="keyword">virtual</span> <span class="keywordtype">void</span> scale(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; scale);
17400376
17500386         <span class="keyword">virtual</span> <span class="keywordtype">void</span> scale(<a class="code" href="namespaceOgre.html#a465">Real</a> x, <a class="code" href="namespaceOgre.html#a465">Real</a> y, <a class="code" href="namespaceOgre.html#a465">Real</a> z);
17600387
17700397         <span class="keyword">virtual</span> <span class="keywordtype">void</span> translate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; d, TransformSpace relativeTo = TS_PARENT);
17800411         <span class="keyword">virtual</span> <span class="keywordtype">void</span> translate(<a class="code" href="namespaceOgre.html#a465">Real</a> x, <a class="code" href="namespaceOgre.html#a465">Real</a> y, <a class="code" href="namespaceOgre.html#a465">Real</a> z, TransformSpace relativeTo = TS_PARENT);
17900431         <span class="keyword">virtual</span> <span class="keywordtype">void</span> translate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix3.html">Matrix3</a>&amp; axes, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; move, TransformSpace relativeTo = TS_PARENT);
18000451         <span class="keyword">virtual</span> <span class="keywordtype">void</span> translate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Matrix3.html">Matrix3</a>&amp; axes, <a class="code" href="namespaceOgre.html#a465">Real</a> x, <a class="code" href="namespaceOgre.html#a465">Real</a> y, <a class="code" href="namespaceOgre.html#a465">Real</a> z, TransformSpace relativeTo = TS_PARENT);
18100452
18200455         <span class="keyword">virtual</span> <span class="keywordtype">void</span> roll(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>&amp; angle, TransformSpace relativeTo = TS_LOCAL);
18300456 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span>
18400457 <span class="preprocessor"></span>        <span class="keyword">inline</span> <span class="keywordtype">void</span> roll(<a class="code" href="namespaceOgre.html#a465">Real</a> degrees, TransformSpace relativeTo = TS_LOCAL) {
18500458             roll ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees), relativeTo );
18600459         }
18700460 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span>
18800461 <span class="preprocessor"></span>
18900464         <span class="keyword">virtual</span> <span class="keywordtype">void</span> pitch(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>&amp; angle, TransformSpace relativeTo = TS_LOCAL);
19000465 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span>
19100466 <span class="preprocessor"></span>        <span class="keyword">inline</span> <span class="keywordtype">void</span> pitch(<a class="code" href="namespaceOgre.html#a465">Real</a> degrees, TransformSpace relativeTo = TS_LOCAL) {
19200467             pitch ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees), relativeTo );
19300468         }
19400469 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span>
19500470 <span class="preprocessor"></span>
19600473         <span class="keyword">virtual</span> <span class="keywordtype">void</span> yaw(<span class="keyword">const</span> Radian&amp; angle, TransformSpace relativeTo = TS_LOCAL);
19700474 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span>
19800475 <span class="preprocessor"></span>        <span class="keyword">inline</span> <span class="keywordtype">void</span> yaw(Real degrees, TransformSpace relativeTo = TS_LOCAL) {
19900476             yaw ( Angle(degrees), relativeTo );
20000477         }
20100478 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span>
20200479 <span class="preprocessor"></span>
20300482         <span class="keyword">virtual</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Vector3&amp; axis, <span class="keyword">const</span> Radian&amp; angle, TransformSpace relativeTo = TS_LOCAL);
20400483 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span>
20500484 <span class="preprocessor"></span>        <span class="keyword">inline</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Vector3&amp; axis, Real degrees, TransformSpace relativeTo = TS_LOCAL) {
20600485             rotate ( axis, Angle(degrees), relativeTo );
20700486         }
20800487 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span>
20900488 <span class="preprocessor"></span>
21000491         <span class="keyword">virtual</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Quaternion&amp; q, TransformSpace relativeTo = TS_LOCAL);
21100492
21200495         <span class="keyword">virtual</span> Matrix3 getLocalAxes(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
21300496
21400503         <span class="keyword">virtual</span> Node* createChild(
21500504             <span class="keyword">const</span> Vector3&amp; translate = Vector3::ZERO,
21600505             <span class="keyword">const</span> Quaternion&amp; rotate = Quaternion::IDENTITY );
21700506
21800516         <span class="keyword">virtual</span> Node* createChild(<span class="keyword">const</span> String&amp; name, <span class="keyword">const</span> Vector3&amp; translate = Vector3::ZERO, <span class="keyword">const</span> Quaternion&amp; rotate = Quaternion::IDENTITY);
21900517
22000522         <span class="keyword">virtual</span> <span class="keywordtype">void</span> addChild(Node* child);
22100523
22200526         <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> numChildren(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
22300527
22400532         <span class="keyword">virtual</span> Node* getChild(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>;   
22500533
22600536         <span class="keyword">virtual</span> Node* getChild(<span class="keyword">const</span> String&amp; name) <span class="keyword">const</span>;
22700537
22800548         <span class="keyword">virtual</span> ChildNodeIterator getChildIterator(<span class="keywordtype">void</span>);
22900549
23000560         <span class="keyword">virtual</span> ConstChildNodeIterator getChildIterator(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
23100561
23200569         <span class="keyword">virtual</span> Node* removeChild(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index);
23300577         <span class="keyword">virtual</span> Node* removeChild(Node* child);
23400578
23500584         <span class="keyword">virtual</span> Node* removeChild(<span class="keyword">const</span> String&amp; name);
23600588         <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllChildren(<span class="keywordtype">void</span>);
23700589
23800592         <span class="keyword">virtual</span> <span class="keyword">const</span> Quaternion &amp; _getDerivedOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
23900593
24000596         <span class="keyword">virtual</span> <span class="keyword">const</span> Vector3 &amp; _getDerivedPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
24100597
24200600         <span class="keyword">virtual</span> <span class="keyword">const</span> Vector3 &amp; _getDerivedScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
24300601
24400611         <span class="keyword">virtual</span> Matrix4 _getFullTransform(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
24500612
24600625         <span class="keyword">virtual</span> <span class="keywordtype">void</span> _update(<span class="keywordtype">bool</span> updateChildren, <span class="keywordtype">bool</span> parentHasChanged);
24700626
248<a name="l00632"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointa64">00632</a>         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setListener(Listener* listener) { mListener = listener; }
24900633         
250<a name="l00636"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointa65">00636</a>         <span class="keyword">virtual</span> Listener* getListener(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mListener; }
25100637         
25200644         <span class="keyword">const</span> <a class="code" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a>&amp; getMaterial(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
25300651         <span class="keywordtype">void</span> getRenderOperation(<a class="code" href="classOgre_1_1RenderOperation.html">RenderOperation</a>&amp; op);
25400658         <span class="keywordtype">void</span> getWorldTransforms(<a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>* xform) <span class="keyword">const</span>;
25500660         <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>&amp; getWorldOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
25600662         <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; getWorldPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
25700663
25800674         <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInitialState(<span class="keywordtype">void</span>);
25900675
26000677         <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetToInitialState(<span class="keywordtype">void</span>);
26100678
26200683         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; getInitialPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
26300684
26400686         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>&amp; getInitialOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
26500687
26600689         <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; getInitialScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
26700690
26800699         <span class="keyword">virtual</span> <span class="keywordtype">void</span> _weightedTransform(<a class="code" href="namespaceOgre.html#a465">Real</a> weight, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; translate,
26900700             <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>&amp; rotate, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>&amp; scale);
27000701
27100703         <a class="code" href="namespaceOgre.html#a465">Real</a> getSquaredViewDepth(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Camera.html">Camera</a>* cam) <span class="keyword">const</span>;
27200704
27300712         <span class="keyword">virtual</span> <span class="keywordtype">void</span> needUpdate(<span class="keywordtype">bool</span> forceParentUpdate = <span class="keyword">false</span>);
27400717         <span class="keyword">virtual</span> <span class="keywordtype">void</span> requestUpdate(Node* child, <span class="keywordtype">bool</span> forceParentUpdate = <span class="keyword">false</span>);
27500719         <span class="keyword">virtual</span> <span class="keywordtype">void</span> cancelUpdate(Node* child);
27600720
27700728         <span class="keyword">static</span> <span class="keywordtype">void</span> queueNeedUpdate(Node* n);
27800730         <span class="keyword">static</span> <span class="keywordtype">void</span> processQueuedUpdates(<span class="keywordtype">void</span>);
27900731
28000733         <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a73">LightList</a>&amp; getLights(<span class="keywordtype">void</span>) <span class="keyword">const</span>;
28100734
28200735
28300736
28400737     };
28500738
28600739 } <span class="comment">//namespace</span>
28700740
28800741 <span class="preprocessor">#endif</span>
289</pre></div><hr>
290<p>
291Copyright &copy; 2000-2005 by The OGRE Team<br />
292<!--Creative Commons License--><a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights20.png"/></a><br/>
293This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons Attribution-ShareAlike 2.5 License</a>.<br/>
294                <!--/Creative Commons License--><!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
295                <Work rdf:about="">
296                        <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" />
297        <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" />
298                </Work>
299                <License rdf:about="http://creativecommons.org/licenses/by-sa/2.5/"><permits rdf:resource="http://web.resource.org/cc/Reproduction"/><permits rdf:resource="http://web.resource.org/cc/Distribution"/><requires rdf:resource="http://web.resource.org/cc/Notice"/><requires rdf:resource="http://web.resource.org/cc/Attribution"/><permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/><requires rdf:resource="http://web.resource.org/cc/ShareAlike"/></License></rdf:RDF> -->
300
301Last modified Sun Mar 12 14:37:44 2006
302</p>
303</body>
304</html>
Note: See TracBrowser for help on using the repository browser.