1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreMovableObject.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>OgreMovableObject.h</h1><a href="OgreMovableObject_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 |
---|
35 | 00026 <span class="preprocessor">#ifndef __MovableObject_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span><span class="preprocessor">#define __MovableObject_H__</span> |
---|
37 | 00028 <span class="preprocessor"></span> |
---|
38 | 00029 <span class="comment">// Precompiler options</span> |
---|
39 | 00030 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreRenderQueue_8h.html">OgreRenderQueue.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreAxisAlignedBox_8h.html">OgreAxisAlignedBox.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreSphere_8h.html">OgreSphere.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreShadowCaster_8h.html">OgreShadowCaster.h</a>"</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreFactoryObj_8h.html">OgreFactoryObj.h</a>"</span> |
---|
45 | 00036 <span class="preprocessor">#include "<a class="code" href="OgreAnimable_8h.html">OgreAnimable.h</a>"</span> |
---|
46 | 00037 <span class="preprocessor">#include "<a class="code" href="OgreAny_8h.html">OgreAny.h</a>"</span> |
---|
47 | 00038 <span class="preprocessor">#include "<a class="code" href="OgreUserDefinedObject_8h.html">OgreUserDefinedObject.h</a>"</span> |
---|
48 | 00039 |
---|
49 | 00040 <span class="keyword">namespace </span>Ogre { |
---|
50 | 00041 |
---|
51 | 00042 <span class="comment">// Forward declaration</span> |
---|
52 | 00043 <span class="keyword">class </span>MovableObjectFactory; |
---|
53 | 00044 |
---|
54 | <a name="l00050"></a><a class="code" href="classOgre_1_1MovableObject.html">00050</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> MovableObject : <span class="keyword">public</span> <a class="code" href="classOgre_1_1ShadowCaster.html">ShadowCaster</a>, <span class="keyword">public</span> <a class="code" href="classOgre_1_1AnimableObject.html">AnimableObject</a> |
---|
55 | 00051 { |
---|
56 | 00052 <span class="keyword">protected</span>: |
---|
57 | <a name="l00054"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp8">00054</a> <a class="code" href="namespaceOgre.html#a471">String</a> mName; |
---|
58 | <a name="l00056"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp9">00056</a> <a class="code" href="classOgre_1_1MovableObjectFactory.html">MovableObjectFactory</a>* mCreator; |
---|
59 | <a name="l00058"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp10">00058</a> <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* mManager; |
---|
60 | <a name="l00060"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp11">00060</a> <a class="code" href="classOgre_1_1Node.html">Node</a>* mParentNode; |
---|
61 | <a name="l00061"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp12">00061</a> <span class="keywordtype">bool</span> mParentIsTagPoint; |
---|
62 | <a name="l00063"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp13">00063</a> <span class="keywordtype">bool</span> mVisible; |
---|
63 | <a name="l00065"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp14">00065</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mUpperDistance; |
---|
64 | <a name="l00066"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp15">00066</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mSquaredUpperDistance; |
---|
65 | <a name="l00068"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp16">00068</a> <span class="keywordtype">bool</span> mBeyondFarDistance; |
---|
66 | <a name="l00070"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp17">00070</a> <a class="code" href="classOgre_1_1Any.html">Any</a> mUserAny; |
---|
67 | <a name="l00072"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp18">00072</a> <a class="code" href="namespaceOgre.html#a457">uint8</a> mRenderQueueID; |
---|
68 | <a name="l00074"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp19">00074</a> <span class="keywordtype">bool</span> mRenderQueueIDSet; |
---|
69 | <a name="l00076"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp20">00076</a> <a class="code" href="namespaceOgre.html#a455">uint32</a> mQueryFlags; |
---|
70 | <a name="l00078"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp21">00078</a> <a class="code" href="namespaceOgre.html#a455">uint32</a> mVisibilityFlags; |
---|
71 | <a name="l00080"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp22">00080</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> mWorldAABB; |
---|
72 | 00081 <span class="comment">// Cached world bounding sphere</span> |
---|
73 | <a name="l00082"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp23">00082</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Sphere.html">Sphere</a> mWorldBoundingSphere; |
---|
74 | <a name="l00084"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp24">00084</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a> mWorldDarkCapBounds; |
---|
75 | <a name="l00086"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxp25">00086</a> <span class="keywordtype">bool</span> mCastShadows; |
---|
76 | 00087 |
---|
77 | 00088 <span class="comment">// Static members</span> |
---|
78 | <a name="l00090"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxt1">00090</a> <span class="comment"></span> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> msDefaultQueryFlags; |
---|
79 | <a name="l00092"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxt2">00092</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> msDefaultVisibilityFlags; |
---|
80 | 00093 |
---|
81 | 00094 |
---|
82 | 00095 |
---|
83 | 00096 <span class="keyword">public</span>: |
---|
84 | 00098 MovableObject(); |
---|
85 | 00099 |
---|
86 | 00101 MovableObject(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name); |
---|
87 | 00104 <span class="keyword">virtual</span> ~MovableObject(); |
---|
88 | 00105 |
---|
89 | <a name="l00107"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa16">00107</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyCreator(<a class="code" href="classOgre_1_1MovableObjectFactory.html">MovableObjectFactory</a>* fact) { mCreator = fact; } |
---|
90 | <a name="l00109"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa17">00109</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyManager(<a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* man) { mManager = man; } |
---|
91 | <a name="l00111"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa18">00111</a> <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* _getManager(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mManager; } |
---|
92 | 00112 |
---|
93 | <a name="l00114"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa19">00114</a> <span class="keyword">virtual</span> <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>{ <span class="keywordflow">return</span> mName; } |
---|
94 | 00115 |
---|
95 | 00117 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getMovableType(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; |
---|
96 | 00118 |
---|
97 | 00125 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Node.html">Node</a>* getParentNode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
98 | 00126 |
---|
99 | 00134 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1SceneNode.html">SceneNode</a>* getParentSceneNode(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
100 | 00135 |
---|
101 | 00138 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyAttached(<a class="code" href="classOgre_1_1Node.html">Node</a>* parent, <span class="keywordtype">bool</span> isTagPoint = <span class="keyword">false</span>); |
---|
102 | 00139 |
---|
103 | 00141 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isAttached(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
104 | 00142 |
---|
105 | 00146 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isInScene(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
106 | 00147 |
---|
107 | 00153 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _notifyCurrentCamera(<a class="code" href="classOgre_1_1Camera.html">Camera</a>* cam); |
---|
108 | 00154 |
---|
109 | 00159 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getBoundingBox(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; |
---|
110 | 00160 |
---|
111 | 00164 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getBoundingRadius(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; |
---|
112 | 00165 |
---|
113 | 00167 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getWorldBoundingBox(<span class="keywordtype">bool</span> derive = <span class="keyword">false</span>) <span class="keyword">const</span>; |
---|
114 | 00169 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Sphere.html">Sphere</a>& getWorldBoundingSphere(<span class="keywordtype">bool</span> derive = <span class="keyword">false</span>) <span class="keyword">const</span>; |
---|
115 | 00175 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _updateRenderQueue(<a class="code" href="classOgre_1_1RenderQueue.html">RenderQueue</a>* queue) = 0; |
---|
116 | 00176 |
---|
117 | 00191 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setVisible(<span class="keywordtype">bool</span> visible); |
---|
118 | 00192 |
---|
119 | 00197 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isVisible(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
120 | <a name="l00202"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa29">00202</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRenderingDistance(<a class="code" href="namespaceOgre.html#a465">Real</a> dist) { |
---|
121 | 00203 mUpperDistance = dist; |
---|
122 | 00204 mSquaredUpperDistance = mUpperDistance * mUpperDistance; |
---|
123 | 00205 } |
---|
124 | 00206 |
---|
125 | <a name="l00208"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa30">00208</a> <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getRenderingDistance(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mUpperDistance; } |
---|
126 | 00209 |
---|
127 | <a name="l00216"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa31">00216</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setUserObject(<a class="code" href="classOgre_1_1UserDefinedObject.html">UserDefinedObject</a>* obj) { mUserAny = <a class="code" href="classOgre_1_1Any.html">Any</a>(obj); } |
---|
128 | <a name="l00220"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa32">00220</a> <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1UserDefinedObject.html">UserDefinedObject</a>* getUserObject(<span class="keywordtype">void</span>) |
---|
129 | 00221 { |
---|
130 | 00222 <span class="keywordflow">return</span> mUserAny.isEmpty() ? 0 : any_cast<UserDefinedObject*>(mUserAny); |
---|
131 | 00223 } |
---|
132 | 00224 |
---|
133 | <a name="l00232"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa33">00232</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setUserAny(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Any.html">Any</a>& anything) { mUserAny = anything; } |
---|
134 | 00233 |
---|
135 | <a name="l00236"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa34">00236</a> <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Any.html">Any</a>& getUserAny(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mUserAny; } |
---|
136 | 00237 |
---|
137 | 00249 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setRenderQueueGroup(<a class="code" href="namespaceOgre.html#a457">uint8</a> queueID); |
---|
138 | 00250 |
---|
139 | 00252 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a457">uint8</a> getRenderQueueGroup(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
140 | 00253 |
---|
141 | 00255 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1Matrix4.html">Matrix4</a> _getParentNodeFullTransform(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
142 | 00256 |
---|
143 | <a name="l00264"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa38">00264</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setQueryFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { mQueryFlags = flags; } |
---|
144 | 00265 |
---|
145 | <a name="l00268"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa39">00268</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> addQueryFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { mQueryFlags |= flags; } |
---|
146 | 00269 |
---|
147 | <a name="l00272"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa40">00272</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeQueryFlags(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> flags) { mQueryFlags &= ~flags; } |
---|
148 | 00273 |
---|
149 | <a name="l00275"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa41">00275</a> <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> getQueryFlags(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mQueryFlags; } |
---|
150 | 00276 |
---|
151 | <a name="l00279"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxe0">00279</a> <span class="keyword">static</span> <span class="keywordtype">void</span> setDefaultQueryFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { msDefaultQueryFlags = flags; } |
---|
152 | 00280 |
---|
153 | <a name="l00283"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxe1">00283</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> getDefaultQueryFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { <span class="keywordflow">return</span> msDefaultQueryFlags; } |
---|
154 | 00284 |
---|
155 | 00285 |
---|
156 | <a name="l00292"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa42">00292</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> setVisibilityFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { mVisibilityFlags = flags; } |
---|
157 | 00293 |
---|
158 | <a name="l00296"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa43">00296</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> addVisibilityFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { mVisibilityFlags |= flags; } |
---|
159 | 00297 |
---|
160 | <a name="l00300"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa44">00300</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeVisibilityFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { mVisibilityFlags &= ~flags; } |
---|
161 | 00301 |
---|
162 | <a name="l00303"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa45">00303</a> <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> getVisibilityFlags(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mVisibilityFlags; } |
---|
163 | 00304 |
---|
164 | <a name="l00307"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxe2">00307</a> <span class="keyword">static</span> <span class="keywordtype">void</span> setDefaultVisibilityFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { msDefaultVisibilityFlags = flags; } |
---|
165 | 00308 |
---|
166 | <a name="l00311"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxe3">00311</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> getDefaultVisibilityFlags(<a class="code" href="namespaceOgre.html#a455">uint32</a> flags) { <span class="keywordflow">return</span> msDefaultVisibilityFlags; } |
---|
167 | 00312 |
---|
168 | <a name="l00314"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa46">00314</a> <a class="code" href="classOgre_1_1EdgeData.html">EdgeData</a>* getEdgeList(<span class="keywordtype">void</span>) { <span class="keywordflow">return</span> NULL; } |
---|
169 | 00316 ShadowRenderableListIterator getShadowVolumeRenderableIterator( |
---|
170 | 00317 ShadowTechnique shadowTechnique, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Light.html">Light</a>* light, |
---|
171 | 00318 <a class="code" href="classOgre_1_1HardwareIndexBufferSharedPtr.html">HardwareIndexBufferSharedPtr</a>* indexBuffer, |
---|
172 | 00319 <span class="keywordtype">bool</span> extrudeVertices, <a class="code" href="namespaceOgre.html#a465">Real</a> extrusionDist, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> flags = 0); |
---|
173 | 00320 |
---|
174 | 00322 <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getLightCapBounds(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
175 | 00324 <span class="keyword">const</span> <a class="code" href="classOgre_1_1AxisAlignedBox.html">AxisAlignedBox</a>& getDarkCapBounds(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Light.html">Light</a>& light, <a class="code" href="namespaceOgre.html#a465">Real</a> dirLightExtrusionDist) <span class="keyword">const</span>; |
---|
176 | <a name="l00337"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa50">00337</a> <span class="keywordtype">void</span> setCastShadows(<span class="keywordtype">bool</span> enabled) { mCastShadows = enabled; } |
---|
177 | <a name="l00339"></a><a class="code" href="classOgre_1_1MovableObject.html#Ogre_1_1WireBoundingBoxa51">00339</a> <span class="keywordtype">bool</span> getCastShadows(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mCastShadows; } |
---|
178 | 00341 <a class="code" href="namespaceOgre.html#a465">Real</a> getPointExtrusionDistance(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Light.html">Light</a>* l) <span class="keyword">const</span>; |
---|
179 | 00352 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a455">uint32</a> getTypeFlags(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
180 | 00353 |
---|
181 | 00354 |
---|
182 | 00355 |
---|
183 | 00356 |
---|
184 | 00357 |
---|
185 | 00358 }; |
---|
186 | 00359 |
---|
187 | <a name="l00365"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html">00365</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> MovableObjectFactory |
---|
188 | 00366 { |
---|
189 | 00367 <span class="keyword">protected</span>: |
---|
190 | <a name="l00369"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html#Ogre_1_1RibbonTrailFactoryp0">00369</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> mTypeFlag; |
---|
191 | 00370 |
---|
192 | 00372 <span class="keyword">virtual</span> MovableObject* createInstanceImpl( |
---|
193 | 00373 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a>* params = 0) = 0; |
---|
194 | 00374 <span class="keyword">public</span>: |
---|
195 | <a name="l00375"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html#Ogre_1_1MovableObjectFactorya0">00375</a> MovableObjectFactory() : mTypeFlag(0xFFFFFFFF) {} |
---|
196 | <a name="l00376"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html#Ogre_1_1MovableObjectFactorya1">00376</a> <span class="keyword">virtual</span> ~MovableObjectFactory() {} |
---|
197 | 00378 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& getType(<span class="keywordtype">void</span>) <span class="keyword">const</span> = 0; |
---|
198 | 00379 |
---|
199 | 00387 <span class="keyword">virtual</span> MovableObject* createInstance( |
---|
200 | 00388 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* manager, |
---|
201 | 00389 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a76">NameValuePairList</a>* params = 0); |
---|
202 | 00391 <span class="keyword">virtual</span> <span class="keywordtype">void</span> destroyInstance(MovableObject* obj) = 0; |
---|
203 | 00392 |
---|
204 | <a name="l00406"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html#Ogre_1_1RibbonTrailFactorya5">00406</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> requestTypeFlags(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; } |
---|
205 | <a name="l00415"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html#Ogre_1_1RibbonTrailFactorya6">00415</a> <span class="keywordtype">void</span> _notifyTypeFlags(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> flag) { mTypeFlag = flag; } |
---|
206 | 00416 |
---|
207 | <a name="l00422"></a><a class="code" href="classOgre_1_1MovableObjectFactory.html#Ogre_1_1RibbonTrailFactorya7">00422</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> getTypeFlags(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTypeFlag; } |
---|
208 | 00423 |
---|
209 | 00424 }; |
---|
210 | 00425 |
---|
211 | 00426 } |
---|
212 | 00427 <span class="preprocessor">#endif</span> |
---|
213 | </pre></div><hr> |
---|
214 | <p> |
---|
215 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
216 | <!--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/> |
---|
217 | 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/> |
---|
218 | <!--/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#"> |
---|
219 | <Work rdf:about=""> |
---|
220 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
221 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
222 | </Work> |
---|
223 | <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> --> |
---|
224 | |
---|
225 | Last modified Sun Mar 12 14:37:44 2006 |
---|
226 | </p> |
---|
227 | </body> |
---|
228 | </html> |
---|