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 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">Class 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">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related 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> |
---|
11 | 00002 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
12 | 00003 <span class="comment">This source file is part of OGRE</span> |
---|
13 | 00004 <span class="comment"> (Object-oriented Graphics Rendering Engine)</span> |
---|
14 | 00005 <span class="comment">For the latest info, see http://www.ogre3d.org/</span> |
---|
15 | 00006 <span class="comment"></span> |
---|
16 | 00007 <span class="comment">Copyright (c) 2000-2005 The OGRE Team</span> |
---|
17 | 00008 <span class="comment">Also see acknowledgements in Readme.html</span> |
---|
18 | 00009 <span class="comment"></span> |
---|
19 | 00010 <span class="comment">This program is free software; you can redistribute it and/or modify it under</span> |
---|
20 | 00011 <span class="comment">the terms of the GNU Lesser General Public License as published by the Free Software</span> |
---|
21 | 00012 <span class="comment">Foundation; either version 2 of the License, or (at your option) any later</span> |
---|
22 | 00013 <span class="comment">version.</span> |
---|
23 | 00014 <span class="comment"></span> |
---|
24 | 00015 <span class="comment">This program is distributed in the hope that it will be useful, but WITHOUT</span> |
---|
25 | 00016 <span class="comment">ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span> |
---|
26 | 00017 <span class="comment">FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</span> |
---|
27 | 00018 <span class="comment"></span> |
---|
28 | 00019 <span class="comment">You should have received a copy of the GNU Lesser General Public License along with</span> |
---|
29 | 00020 <span class="comment">this program; if not, write to the Free Software Foundation, Inc., 59 Temple</span> |
---|
30 | 00021 <span class="comment">Place - Suite 330, Boston, MA 02111-1307, USA, or go to</span> |
---|
31 | 00022 <span class="comment">http://www.gnu.org/copyleft/lesser.txt.</span> |
---|
32 | 00023 <span class="comment">-----------------------------------------------------------------------------</span> |
---|
33 | 00024 <span class="comment">*/</span> |
---|
34 | 00025 <span class="preprocessor">#ifndef _Node_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define _Node_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
38 | 00029 |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgreMatrix3_8h.html">OgreMatrix3.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreMatrix4_8h.html">OgreMatrix4.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreQuaternion_8h.html">OgreQuaternion.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreRenderable_8h.html">OgreRenderable.h</a>"</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span> |
---|
45 | 00036 |
---|
46 | 00037 <span class="keyword">namespace </span>Ogre { |
---|
47 | 00038 |
---|
48 | 00039 |
---|
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> |
---|
50 | 00051 { |
---|
51 | 00052 <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 |
---|
53 | 00056 { |
---|
54 | 00058 TS_LOCAL, |
---|
55 | 00060 TS_PARENT, |
---|
56 | 00062 TS_WORLD |
---|
57 | 00063 }; |
---|
58 | <a name="l00064"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw0">00064</a> <span class="keyword">typedef</span> HashMap<String, Node*> <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<ChildNodeMap></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<ChildNodeMap></a> <a class="code" href="classOgre_1_1ConstMapIterator.html">ConstChildNodeIterator</a>; |
---|
61 | 00067 |
---|
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 |
---|
63 | 00071 { |
---|
64 | 00072 <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) {}; |
---|
71 | 00089 }; |
---|
72 | 00090 |
---|
73 | 00091 <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; |
---|
76 | 00096 |
---|
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<Node*> <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 ; |
---|
82 | 00106 |
---|
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; |
---|
84 | 00109 |
---|
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; |
---|
86 | 00112 |
---|
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; |
---|
88 | 00115 |
---|
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; |
---|
90 | 00118 |
---|
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; |
---|
92 | 00121 |
---|
93 | <a name="l00123"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp14">00123</a> <span class="keywordtype">bool</span> mInheritOrientation; |
---|
94 | 00124 |
---|
95 | <a name="l00126"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp15">00126</a> <span class="keywordtype">bool</span> mInheritScale; |
---|
96 | 00127 |
---|
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; |
---|
98 | 00130 |
---|
99 | 00132 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setParent(Node* parent); |
---|
100 | 00133 |
---|
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; |
---|
102 | 00142 |
---|
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; |
---|
104 | 00151 |
---|
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; |
---|
106 | 00160 |
---|
107 | 00167 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _updateFromParent(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
108 | 00168 |
---|
109 | 00170 <span class="keyword">virtual</span> Node* createChildImpl(<span class="keywordtype">void</span>) = 0; |
---|
110 | 00171 |
---|
111 | 00173 <span class="keyword">virtual</span> Node* createChildImpl(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name) = 0; |
---|
112 | 00174 |
---|
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; |
---|
116 | 00181 |
---|
117 | 00182 <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; |
---|
119 | 00184 <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; |
---|
121 | 00186 <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; |
---|
123 | 00188 <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; |
---|
125 | 00190 |
---|
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; |
---|
128 | 00194 |
---|
129 | <a name="l00196"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp29">00196</a> Listener* mListener; |
---|
130 | 00197 |
---|
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<Node*> <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; |
---|
133 | 00200 |
---|
134 | 00201 |
---|
135 | 00202 <span class="keyword">public</span>: |
---|
136 | 00207 Node(); |
---|
137 | 00212 Node(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
138 | 00213 |
---|
139 | 00214 <span class="keyword">virtual</span> ~Node(); |
---|
140 | 00215 |
---|
141 | 00217 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
142 | 00218 |
---|
143 | 00221 <span class="keyword">virtual</span> Node* getParent(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
144 | 00222 |
---|
145 | 00225 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> & getOrientation() <span class="keyword">const</span>; |
---|
146 | 00226 |
---|
147 | 00240 <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>& q ); |
---|
148 | 00241 |
---|
149 | 00255 <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); |
---|
150 | 00256 |
---|
151 | 00270 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetOrientation(<span class="keywordtype">void</span>); |
---|
152 | 00271 |
---|
153 | 00274 <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>& pos); |
---|
154 | 00275 |
---|
155 | 00278 <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); |
---|
156 | 00279 |
---|
157 | 00282 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> & getPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
158 | 00283 |
---|
159 | 00296 <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>& scale); |
---|
160 | 00297 |
---|
161 | 00310 <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); |
---|
162 | 00311 |
---|
163 | 00314 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> & getScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
164 | 00315 |
---|
165 | 00329 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInheritOrientation(<span class="keywordtype">bool</span> inherit); |
---|
166 | 00330 |
---|
167 | 00344 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getInheritOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
168 | 00345 |
---|
169 | 00358 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInheritScale(<span class="keywordtype">bool</span> inherit); |
---|
170 | 00359 |
---|
171 | 00364 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getInheritScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
172 | 00365 |
---|
173 | 00375 <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>& scale); |
---|
174 | 00376 |
---|
175 | 00386 <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); |
---|
176 | 00387 |
---|
177 | 00397 <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>& d, TransformSpace relativeTo = TS_PARENT); |
---|
178 | 00411 <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); |
---|
179 | 00431 <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>& axes, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& move, TransformSpace relativeTo = TS_PARENT); |
---|
180 | 00451 <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>& 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); |
---|
181 | 00452 |
---|
182 | 00455 <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>& angle, TransformSpace relativeTo = TS_LOCAL); |
---|
183 | 00456 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
184 | 00457 <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) { |
---|
185 | 00458 roll ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees), relativeTo ); |
---|
186 | 00459 } |
---|
187 | 00460 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
188 | 00461 <span class="preprocessor"></span> |
---|
189 | 00464 <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>& angle, TransformSpace relativeTo = TS_LOCAL); |
---|
190 | 00465 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
191 | 00466 <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) { |
---|
192 | 00467 pitch ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees), relativeTo ); |
---|
193 | 00468 } |
---|
194 | 00469 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
195 | 00470 <span class="preprocessor"></span> |
---|
196 | 00473 <span class="keyword">virtual</span> <span class="keywordtype">void</span> yaw(<span class="keyword">const</span> Radian& angle, TransformSpace relativeTo = TS_LOCAL); |
---|
197 | 00474 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
198 | 00475 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> yaw(Real degrees, TransformSpace relativeTo = TS_LOCAL) { |
---|
199 | 00476 yaw ( Angle(degrees), relativeTo ); |
---|
200 | 00477 } |
---|
201 | 00478 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
202 | 00479 <span class="preprocessor"></span> |
---|
203 | 00482 <span class="keyword">virtual</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Vector3& axis, <span class="keyword">const</span> Radian& angle, TransformSpace relativeTo = TS_LOCAL); |
---|
204 | 00483 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
205 | 00484 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Vector3& axis, Real degrees, TransformSpace relativeTo = TS_LOCAL) { |
---|
206 | 00485 rotate ( axis, Angle(degrees), relativeTo ); |
---|
207 | 00486 } |
---|
208 | 00487 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
209 | 00488 <span class="preprocessor"></span> |
---|
210 | 00491 <span class="keyword">virtual</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Quaternion& q, TransformSpace relativeTo = TS_LOCAL); |
---|
211 | 00492 |
---|
212 | 00495 <span class="keyword">virtual</span> Matrix3 getLocalAxes(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
213 | 00496 |
---|
214 | 00503 <span class="keyword">virtual</span> Node* createChild( |
---|
215 | 00504 <span class="keyword">const</span> Vector3& translate = Vector3::ZERO, |
---|
216 | 00505 <span class="keyword">const</span> Quaternion& rotate = Quaternion::IDENTITY ); |
---|
217 | 00506 |
---|
218 | 00516 <span class="keyword">virtual</span> Node* createChild(<span class="keyword">const</span> String& name, <span class="keyword">const</span> Vector3& translate = Vector3::ZERO, <span class="keyword">const</span> Quaternion& rotate = Quaternion::IDENTITY); |
---|
219 | 00517 |
---|
220 | 00522 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addChild(Node* child); |
---|
221 | 00523 |
---|
222 | 00526 <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>; |
---|
223 | 00527 |
---|
224 | 00532 <span class="keyword">virtual</span> Node* getChild(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>; |
---|
225 | 00533 |
---|
226 | 00536 <span class="keyword">virtual</span> Node* getChild(<span class="keyword">const</span> String& name) <span class="keyword">const</span>; |
---|
227 | 00537 |
---|
228 | 00548 <span class="keyword">virtual</span> ChildNodeIterator getChildIterator(<span class="keywordtype">void</span>); |
---|
229 | 00549 |
---|
230 | 00560 <span class="keyword">virtual</span> ConstChildNodeIterator getChildIterator(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
231 | 00561 |
---|
232 | 00569 <span class="keyword">virtual</span> Node* removeChild(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index); |
---|
233 | 00577 <span class="keyword">virtual</span> Node* removeChild(Node* child); |
---|
234 | 00578 |
---|
235 | 00584 <span class="keyword">virtual</span> Node* removeChild(<span class="keyword">const</span> String& name); |
---|
236 | 00588 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllChildren(<span class="keywordtype">void</span>); |
---|
237 | 00589 |
---|
238 | 00592 <span class="keyword">virtual</span> <span class="keyword">const</span> Quaternion & _getDerivedOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
239 | 00593 |
---|
240 | 00596 <span class="keyword">virtual</span> <span class="keyword">const</span> Vector3 & _getDerivedPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
241 | 00597 |
---|
242 | 00600 <span class="keyword">virtual</span> <span class="keyword">const</span> Vector3 & _getDerivedScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
243 | 00601 |
---|
244 | 00611 <span class="keyword">virtual</span> Matrix4 _getFullTransform(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
245 | 00612 |
---|
246 | 00625 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _update(<span class="keywordtype">bool</span> updateChildren, <span class="keywordtype">bool</span> parentHasChanged); |
---|
247 | 00626 |
---|
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; } |
---|
249 | 00633 |
---|
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; } |
---|
251 | 00637 |
---|
252 | 00644 <span class="keyword">const</span> <a class="code" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a>& getMaterial(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
253 | 00651 <span class="keywordtype">void</span> getRenderOperation(<a class="code" href="classOgre_1_1RenderOperation.html">RenderOperation</a>& op); |
---|
254 | 00658 <span class="keywordtype">void</span> getWorldTransforms(<a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>* xform) <span class="keyword">const</span>; |
---|
255 | 00660 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& getWorldOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
256 | 00662 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getWorldPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
257 | 00663 |
---|
258 | 00674 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInitialState(<span class="keywordtype">void</span>); |
---|
259 | 00675 |
---|
260 | 00677 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetToInitialState(<span class="keywordtype">void</span>); |
---|
261 | 00678 |
---|
262 | 00683 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getInitialPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
263 | 00684 |
---|
264 | 00686 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& getInitialOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
265 | 00687 |
---|
266 | 00689 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getInitialScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
267 | 00690 |
---|
268 | 00699 <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>& translate, |
---|
269 | 00700 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& rotate, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& scale); |
---|
270 | 00701 |
---|
271 | 00703 <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>; |
---|
272 | 00704 |
---|
273 | 00712 <span class="keyword">virtual</span> <span class="keywordtype">void</span> needUpdate(<span class="keywordtype">bool</span> forceParentUpdate = <span class="keyword">false</span>); |
---|
274 | 00717 <span class="keyword">virtual</span> <span class="keywordtype">void</span> requestUpdate(Node* child, <span class="keywordtype">bool</span> forceParentUpdate = <span class="keyword">false</span>); |
---|
275 | 00719 <span class="keyword">virtual</span> <span class="keywordtype">void</span> cancelUpdate(Node* child); |
---|
276 | 00720 |
---|
277 | 00728 <span class="keyword">static</span> <span class="keywordtype">void</span> queueNeedUpdate(Node* n); |
---|
278 | 00730 <span class="keyword">static</span> <span class="keywordtype">void</span> processQueuedUpdates(<span class="keywordtype">void</span>); |
---|
279 | 00731 |
---|
280 | 00733 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a73">LightList</a>& getLights(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
281 | 00734 |
---|
282 | 00735 |
---|
283 | 00736 |
---|
284 | 00737 }; |
---|
285 | 00738 |
---|
286 | 00739 } <span class="comment">//namespace</span> |
---|
287 | 00740 |
---|
288 | 00741 <span class="preprocessor">#endif</span> |
---|
289 | </pre></div><hr> |
---|
290 | <p> |
---|
291 | Copyright © 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/> |
---|
293 | This 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 | |
---|
301 | Last modified Sun Mar 12 14:37:44 2006 |
---|
302 | </p> |
---|
303 | </body> |
---|
304 | </html> |
---|