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 | 00068 <span class="keyword">protected</span>: |
---|
63 | <a name="l00070"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp4">00070</a> Node* mParent; |
---|
64 | <a name="l00072"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp5">00072</a> <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointw0">ChildNodeMap</a> mChildren; |
---|
65 | 00073 |
---|
66 | <a name="l00074"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx0">00074</a> <span class="keyword">typedef</span> std::set<Node*> <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx0">ChildUpdateSet</a>; |
---|
67 | <a name="l00076"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp6">00076</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointx0">ChildUpdateSet</a> mChildrenToUpdate; |
---|
68 | <a name="l00078"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp7">00078</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mNeedParentUpdate; |
---|
69 | <a name="l00080"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp8">00080</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mNeedChildUpdate; |
---|
70 | <a name="l00082"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp9">00082</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mParentNotified ; |
---|
71 | 00083 |
---|
72 | <a name="l00085"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp10">00085</a> <a class="code" href="namespaceOgre.html#a426">String</a> mName; |
---|
73 | 00086 |
---|
74 | <a name="l00088"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointt0">00088</a> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> msNextGeneratedNameExt; |
---|
75 | 00089 |
---|
76 | <a name="l00091"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp11">00091</a> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mOrientation; |
---|
77 | 00092 |
---|
78 | <a name="l00094"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp12">00094</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mPosition; |
---|
79 | 00095 |
---|
80 | <a name="l00097"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp13">00097</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mScale; |
---|
81 | 00098 |
---|
82 | <a name="l00100"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp14">00100</a> <span class="keywordtype">bool</span> mInheritScale; |
---|
83 | 00101 |
---|
84 | <a name="l00103"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp15">00103</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1MaterialPtr.html">MaterialPtr</a> mpMaterial; |
---|
85 | 00104 |
---|
86 | 00106 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setParent(Node* parent); |
---|
87 | 00107 |
---|
88 | <a name="l00115"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp16">00115</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mDerivedOrientation; |
---|
89 | 00116 |
---|
90 | <a name="l00124"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp17">00124</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mDerivedPosition; |
---|
91 | 00125 |
---|
92 | <a name="l00133"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp18">00133</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mDerivedScale; |
---|
93 | 00134 |
---|
94 | 00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _updateFromParent(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
95 | 00142 |
---|
96 | 00144 <span class="keyword">virtual</span> Node* createChildImpl(<span class="keywordtype">void</span>) = 0; |
---|
97 | 00145 |
---|
98 | 00147 <span class="keyword">virtual</span> Node* createChildImpl(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name) = 0; |
---|
99 | 00148 |
---|
100 | 00155 <span class="keywordtype">void</span> makeTransform( |
---|
101 | 00156 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& position, |
---|
102 | 00157 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& scale, |
---|
103 | 00158 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& orientation, |
---|
104 | 00159 <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>& destMatrix ) <span class="keyword">const</span>; |
---|
105 | 00160 |
---|
106 | 00166 <span class="keywordtype">void</span> makeInverseTransform( |
---|
107 | 00167 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& position, |
---|
108 | 00168 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& scale, |
---|
109 | 00169 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& orientation, |
---|
110 | 00170 <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a>& destMatrix ); |
---|
111 | 00171 |
---|
112 | <a name="l00173"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp19">00173</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mInitialPosition; |
---|
113 | <a name="l00175"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp20">00175</a> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mInitialOrientation; |
---|
114 | <a name="l00177"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp21">00177</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mInitialScale; |
---|
115 | 00178 |
---|
116 | 00179 <span class="comment">// Weight of applied animations so far, used for blending</span> |
---|
117 | <a name="l00180"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp22">00180</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mAccumAnimWeight; |
---|
118 | 00181 <span class="comment">// The total weighted translation from the initial state so far</span> |
---|
119 | <a name="l00182"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp23">00182</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mTransFromInitial; |
---|
120 | 00183 <span class="comment">// The total weighted rotation from the initial state so far</span> |
---|
121 | <a name="l00184"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp24">00184</a> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mRotFromInitial; |
---|
122 | 00185 <span class="comment">// The total weighted scale from the initial state so far</span> |
---|
123 | <a name="l00186"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp25">00186</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mScaleFromInitial; |
---|
124 | 00187 |
---|
125 | <a name="l00189"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp26">00189</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> mCachedTransform; |
---|
126 | <a name="l00190"></a><a class="code" href="classOgre_1_1Node.html#Ogre_1_1TagPointp27">00190</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mCachedTransformOutOfDate; |
---|
127 | 00191 |
---|
128 | 00192 |
---|
129 | 00193 <span class="keyword">public</span>: |
---|
130 | 00198 Node(); |
---|
131 | 00203 Node(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name); |
---|
132 | 00204 |
---|
133 | 00205 <span class="keyword">virtual</span> ~Node(); |
---|
134 | 00206 |
---|
135 | 00208 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getName(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
136 | 00209 |
---|
137 | 00212 <span class="keyword">virtual</span> Node* getParent(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
138 | 00213 |
---|
139 | 00216 <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>; |
---|
140 | 00217 |
---|
141 | 00220 <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 ); |
---|
142 | 00221 |
---|
143 | 00224 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setOrientation( <a class="code" href="namespaceOgre.html#a420">Real</a> w, <a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y, <a class="code" href="namespaceOgre.html#a420">Real</a> z); |
---|
144 | 00225 |
---|
145 | 00228 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetOrientation(<span class="keywordtype">void</span>); |
---|
146 | 00229 |
---|
147 | 00232 <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); |
---|
148 | 00233 |
---|
149 | 00236 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPosition(<a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y, <a class="code" href="namespaceOgre.html#a420">Real</a> z); |
---|
150 | 00237 |
---|
151 | 00240 <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>; |
---|
152 | 00241 |
---|
153 | 00255 <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); |
---|
154 | 00256 |
---|
155 | 00270 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setScale(<a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y, <a class="code" href="namespaceOgre.html#a420">Real</a> z); |
---|
156 | 00271 |
---|
157 | 00274 <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>; |
---|
158 | 00275 |
---|
159 | 00289 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInheritScale(<span class="keywordtype">bool</span> inherit); |
---|
160 | 00290 |
---|
161 | 00295 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getInheritScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
162 | 00296 |
---|
163 | 00306 <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); |
---|
164 | 00307 |
---|
165 | 00317 <span class="keyword">virtual</span> <span class="keywordtype">void</span> scale(<a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y, <a class="code" href="namespaceOgre.html#a420">Real</a> z); |
---|
166 | 00318 |
---|
167 | 00328 <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); |
---|
168 | 00342 <span class="keyword">virtual</span> <span class="keywordtype">void</span> translate(<a class="code" href="namespaceOgre.html#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y, <a class="code" href="namespaceOgre.html#a420">Real</a> z, TransformSpace relativeTo = TS_PARENT); |
---|
169 | 00362 <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); |
---|
170 | 00382 <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#a420">Real</a> x, <a class="code" href="namespaceOgre.html#a420">Real</a> y, <a class="code" href="namespaceOgre.html#a420">Real</a> z, TransformSpace relativeTo = TS_PARENT); |
---|
171 | 00383 |
---|
172 | 00386 <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); |
---|
173 | 00387 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
174 | 00388 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> roll(<a class="code" href="namespaceOgre.html#a420">Real</a> degrees, TransformSpace relativeTo = TS_LOCAL) { |
---|
175 | 00389 roll ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees), relativeTo ); |
---|
176 | 00390 } |
---|
177 | 00391 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
178 | 00392 <span class="preprocessor"></span> |
---|
179 | 00395 <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); |
---|
180 | 00396 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
181 | 00397 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> pitch(<a class="code" href="namespaceOgre.html#a420">Real</a> degrees, TransformSpace relativeTo = TS_LOCAL) { |
---|
182 | 00398 pitch ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees), relativeTo ); |
---|
183 | 00399 } |
---|
184 | 00400 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
185 | 00401 <span class="preprocessor"></span> |
---|
186 | 00404 <span class="keyword">virtual</span> <span class="keywordtype">void</span> yaw(<span class="keyword">const</span> Radian& angle, TransformSpace relativeTo = TS_LOCAL); |
---|
187 | 00405 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
188 | 00406 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> yaw(<a class="code" href="namespaceOgre.html#a420">Real</a> degrees, TransformSpace relativeTo = TS_LOCAL) { |
---|
189 | 00407 yaw ( Angle(degrees), relativeTo ); |
---|
190 | 00408 } |
---|
191 | 00409 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
192 | 00410 <span class="preprocessor"></span> |
---|
193 | 00413 <span class="keyword">virtual</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& axis, <span class="keyword">const</span> Radian& angle, TransformSpace relativeTo = TS_LOCAL); |
---|
194 | 00414 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
195 | 00415 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& axis, <a class="code" href="namespaceOgre.html#a420">Real</a> degrees, TransformSpace relativeTo = TS_LOCAL) { |
---|
196 | 00416 rotate ( axis, Angle(degrees), relativeTo ); |
---|
197 | 00417 } |
---|
198 | 00418 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
199 | 00419 <span class="preprocessor"></span> |
---|
200 | 00422 <span class="keyword">virtual</span> <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Quaternion& q, TransformSpace relativeTo = TS_LOCAL); |
---|
201 | 00423 |
---|
202 | 00426 <span class="keyword">virtual</span> Matrix3 getLocalAxes(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
203 | 00427 |
---|
204 | 00434 <span class="keyword">virtual</span> Node* createChild( |
---|
205 | 00435 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& translate = Vector3::ZERO, |
---|
206 | 00436 <span class="keyword">const</span> Quaternion& rotate = Quaternion::IDENTITY ); |
---|
207 | 00437 |
---|
208 | 00447 <span class="keyword">virtual</span> Node* createChild(<span class="keyword">const</span> String& name, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& translate = Vector3::ZERO, <span class="keyword">const</span> Quaternion& rotate = Quaternion::IDENTITY); |
---|
209 | 00448 |
---|
210 | 00453 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addChild(Node* child); |
---|
211 | 00454 |
---|
212 | 00457 <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>; |
---|
213 | 00458 |
---|
214 | 00463 <span class="keyword">virtual</span> Node* getChild(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index) <span class="keyword">const</span>; |
---|
215 | 00464 |
---|
216 | 00467 <span class="keyword">virtual</span> Node* getChild(<span class="keyword">const</span> String& name) <span class="keyword">const</span>; |
---|
217 | 00468 |
---|
218 | 00479 <span class="keyword">virtual</span> ChildNodeIterator getChildIterator(<span class="keywordtype">void</span>); |
---|
219 | 00480 |
---|
220 | 00491 <span class="keyword">virtual</span> ConstChildNodeIterator getChildIterator(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
221 | 00492 |
---|
222 | 00500 <span class="keyword">virtual</span> Node* removeChild(<span class="keywordtype">unsigned</span> <span class="keywordtype">short</span> index); |
---|
223 | 00508 <span class="keyword">virtual</span> Node* removeChild(Node* child); |
---|
224 | 00509 |
---|
225 | 00515 <span class="keyword">virtual</span> Node* removeChild(<span class="keyword">const</span> String& name); |
---|
226 | 00519 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeAllChildren(<span class="keywordtype">void</span>); |
---|
227 | 00520 |
---|
228 | 00523 <span class="keyword">virtual</span> <span class="keyword">const</span> Quaternion & _getDerivedOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
229 | 00524 |
---|
230 | 00527 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> & _getDerivedPosition(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
231 | 00528 |
---|
232 | 00531 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> & _getDerivedScale(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
233 | 00532 |
---|
234 | 00542 <span class="keyword">virtual</span> Matrix4 _getFullTransform(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
235 | 00543 |
---|
236 | 00556 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _update(<span class="keywordtype">bool</span> updateChildren, <span class="keywordtype">bool</span> parentHasChanged); |
---|
237 | 00557 |
---|
238 | 00564 <span class="keyword">const</span> MaterialPtr& getMaterial(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
239 | 00571 <span class="keywordtype">void</span> getRenderOperation(RenderOperation& op); |
---|
240 | 00578 <span class="keywordtype">void</span> getWorldTransforms(Matrix4* xform) <span class="keyword">const</span>; |
---|
241 | 00580 <span class="keyword">const</span> Quaternion& getWorldOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
242 | 00582 <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>; |
---|
243 | 00583 |
---|
244 | 00594 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInitialState(<span class="keywordtype">void</span>); |
---|
245 | 00595 |
---|
246 | 00597 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetToInitialState(<span class="keywordtype">void</span>); |
---|
247 | 00598 |
---|
248 | 00603 <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>; |
---|
249 | 00604 |
---|
250 | 00606 <span class="keyword">virtual</span> <span class="keyword">const</span> Quaternion& getInitialOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
251 | 00607 |
---|
252 | 00609 <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>; |
---|
253 | 00610 |
---|
254 | 00619 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _weightedTransform(<a class="code" href="namespaceOgre.html#a420">Real</a> weight, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& translate, |
---|
255 | 00620 <span class="keyword">const</span> Quaternion& rotate, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& scale); |
---|
256 | 00621 |
---|
257 | 00623 <a class="code" href="namespaceOgre.html#a420">Real</a> getSquaredViewDepth(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Camera.html">Camera</a>* cam) <span class="keyword">const</span>; |
---|
258 | 00624 |
---|
259 | 00630 <span class="keyword">virtual</span> <span class="keywordtype">void</span> needUpdate(); |
---|
260 | 00632 <span class="keyword">virtual</span> <span class="keywordtype">void</span> requestUpdate(Node* child); |
---|
261 | 00634 <span class="keyword">virtual</span> <span class="keywordtype">void</span> cancelUpdate(Node* child); |
---|
262 | 00635 |
---|
263 | 00637 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a59">LightList</a>& getLights(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
264 | 00638 |
---|
265 | 00639 |
---|
266 | 00640 |
---|
267 | 00641 }; |
---|
268 | 00642 |
---|
269 | 00643 } <span class="comment">//namespace</span> |
---|
270 | 00644 |
---|
271 | 00645 <span class="preprocessor">#endif</span> |
---|
272 | </pre></div><hr> |
---|
273 | <p> |
---|
274 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
275 | <!--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/> |
---|
276 | 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/> |
---|
277 | <!--/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#"> |
---|
278 | <Work rdf:about=""> |
---|
279 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
280 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
281 | </Work> |
---|
282 | <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> --> |
---|
283 | |
---|
284 | Last modified Sun Feb 12 12:59:48 2006 |
---|
285 | </p> |
---|
286 | </body> |
---|
287 | </html> |
---|