1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreCamera.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>OgreCamera.h</h1><a href="OgreCamera_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://ogre.sourceforge.net/</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 __Camera_H__</span> |
---|
35 | 00026 <span class="preprocessor"></span><span class="preprocessor">#define __Camera_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span> |
---|
37 | 00028 <span class="comment">// Default options</span> |
---|
38 | 00029 <span class="preprocessor">#include "<a class="code" href="OgrePrerequisites_8h.html">OgrePrerequisites.h</a>"</span> |
---|
39 | 00030 |
---|
40 | 00031 <span class="preprocessor">#include "<a class="code" href="OgreString_8h.html">OgreString.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreMovableObject_8h.html">OgreMovableObject.h</a>"</span> |
---|
42 | 00033 |
---|
43 | 00034 <span class="comment">// Matrices & Vectors</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreMatrix4_8h.html">OgreMatrix4.h</a>"</span> |
---|
45 | 00036 <span class="preprocessor">#include "<a class="code" href="OgreVector3_8h.html">OgreVector3.h</a>"</span> |
---|
46 | 00037 <span class="preprocessor">#include "<a class="code" href="OgrePlane_8h.html">OgrePlane.h</a>"</span> |
---|
47 | 00038 <span class="preprocessor">#include "<a class="code" href="OgreQuaternion_8h.html">OgreQuaternion.h</a>"</span> |
---|
48 | 00039 <span class="preprocessor">#include "<a class="code" href="OgreCommon_8h.html">OgreCommon.h</a>"</span> |
---|
49 | 00040 <span class="preprocessor">#include "<a class="code" href="OgreFrustum_8h.html">OgreFrustum.h</a>"</span> |
---|
50 | 00041 <span class="preprocessor">#include "<a class="code" href="OgreRay_8h.html">OgreRay.h</a>"</span> |
---|
51 | 00042 |
---|
52 | 00043 |
---|
53 | 00044 <span class="keyword">namespace </span>Ogre { |
---|
54 | 00045 |
---|
55 | 00046 |
---|
56 | 00047 |
---|
57 | <a name="l00076"></a><a class="code" href="classOgre_1_1Camera.html">00076</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> Camera : <span class="keyword">public</span> <a class="code" href="classOgre_1_1Frustum.html">Frustum</a> |
---|
58 | 00077 { |
---|
59 | 00078 <span class="keyword">protected</span>: |
---|
60 | <a name="l00080"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap0">00080</a> <a class="code" href="namespaceOgre.html#a426">String</a> mName; |
---|
61 | <a name="l00082"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap1">00082</a> <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a> *mSceneMgr; |
---|
62 | 00083 |
---|
63 | <a name="l00085"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap2">00085</a> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mOrientation; |
---|
64 | 00086 |
---|
65 | <a name="l00088"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap3">00088</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mPosition; |
---|
66 | 00089 |
---|
67 | <a name="l00091"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap4">00091</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a> mDerivedOrientation; |
---|
68 | <a name="l00092"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap5">00092</a> <span class="keyword">mutable</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mDerivedPosition; |
---|
69 | 00093 |
---|
70 | <a name="l00095"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap6">00095</a> <span class="keywordtype">bool</span> mYawFixed; |
---|
71 | <a name="l00097"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap7">00097</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mYawFixedAxis; |
---|
72 | 00098 |
---|
73 | <a name="l00100"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap8">00100</a> <a class="code" href="namespaceOgre.html#a646">SceneDetailLevel</a> mSceneDetail; |
---|
74 | 00101 |
---|
75 | <a name="l00103"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap9">00103</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> mVisFacesLastRender; |
---|
76 | 00104 |
---|
77 | <a name="l00106"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerat0">00106</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a426">String</a> msMovableType; |
---|
78 | 00107 |
---|
79 | <a name="l00109"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap10">00109</a> <a class="code" href="classOgre_1_1SceneNode.html">SceneNode</a>* mAutoTrackTarget; |
---|
80 | <a name="l00111"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap11">00111</a> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> mAutoTrackOffset; |
---|
81 | 00112 |
---|
82 | 00113 <span class="comment">// Scene LOD factor used to adjust overall LOD</span> |
---|
83 | <a name="l00114"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap12">00114</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mSceneLodFactor; |
---|
84 | <a name="l00116"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap13">00116</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mSceneLodFactorInv; |
---|
85 | 00117 |
---|
86 | 00118 |
---|
87 | <a name="l00123"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap15">00123</a> <a class="code" href="namespaceOgre.html#a420">Real</a> mWLeft, mWTop, mWRight, mWBottom; |
---|
88 | <a name="l00125"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap18">00125</a> <span class="keywordtype">bool</span> mWindowSet; |
---|
89 | <a name="l00127"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap19">00127</a> <span class="keyword">mutable</span> std::vector<Plane> mWindowClipPlanes; |
---|
90 | 00128 <span class="comment">// Was viewing window changed.</span> |
---|
91 | <a name="l00129"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap20">00129</a> <span class="keyword">mutable</span> <span class="keywordtype">bool</span> mRecalcWindow; |
---|
92 | <a name="l00131"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap21">00131</a> <a class="code" href="classOgre_1_1Viewport.html">Viewport</a>* mLastViewport; |
---|
93 | <a name="l00135"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCamerap22">00135</a> <span class="keywordtype">bool</span> mAutoAspectRatio; |
---|
94 | 00136 |
---|
95 | 00137 <span class="comment">// Internal functions for calcs</span> |
---|
96 | 00138 <span class="keywordtype">void</span> updateFrustum(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
97 | 00139 <span class="keywordtype">void</span> updateView(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
98 | 00140 <span class="keywordtype">bool</span> isViewOutOfDate(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
99 | 00142 <span class="keywordtype">void</span> invalidateFrustum(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
100 | 00144 <span class="keywordtype">void</span> invalidateView(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
101 | 00145 |
---|
102 | 00146 |
---|
103 | 00151 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setWindowImpl(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
104 | 00153 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getPositionForViewUpdate(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
105 | 00155 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Quaternion.html">Quaternion</a>& getOrientationForViewUpdate(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
106 | 00156 |
---|
107 | 00157 |
---|
108 | 00158 <span class="keyword">public</span>: |
---|
109 | 00161 Camera( <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& name, <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* sm); |
---|
110 | 00162 |
---|
111 | 00165 <span class="keyword">virtual</span> ~Camera(); |
---|
112 | 00166 |
---|
113 | 00167 |
---|
114 | 00170 <a class="code" href="classOgre_1_1SceneManager.html">SceneManager</a>* getSceneManager(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
115 | 00171 |
---|
116 | 00174 <span class="keyword">virtual</span> <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>; |
---|
117 | 00175 |
---|
118 | 00176 |
---|
119 | 00184 <span class="keywordtype">void</span> setDetailLevel(SceneDetailLevel sd); |
---|
120 | 00185 |
---|
121 | 00188 <a class="code" href="namespaceOgre.html#a646">SceneDetailLevel</a> getDetailLevel(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
122 | 00189 |
---|
123 | 00192 <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); |
---|
124 | 00193 |
---|
125 | 00196 <span class="keywordtype">void</span> setPosition(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& vec); |
---|
126 | 00197 |
---|
127 | 00200 <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>; |
---|
128 | 00201 |
---|
129 | 00204 <span class="keywordtype">void</span> move(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& vec); |
---|
130 | 00205 |
---|
131 | 00208 <span class="keywordtype">void</span> moveRelative(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& vec); |
---|
132 | 00209 |
---|
133 | 00215 <span class="keywordtype">void</span> setDirection(<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); |
---|
134 | 00216 |
---|
135 | 00219 <span class="keywordtype">void</span> setDirection(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& vec); |
---|
136 | 00220 |
---|
137 | 00221 <span class="comment">/* Gets the camera's direction.</span> |
---|
138 | 00222 <span class="comment"> */</span> |
---|
139 | 00223 <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> getDirection(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
140 | 00224 |
---|
141 | 00227 <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> getUp(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
142 | 00228 |
---|
143 | 00231 <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> getRight(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
144 | 00232 |
---|
145 | 00241 <span class="keywordtype">void</span> lookAt( <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& targetPoint ); |
---|
146 | 00254 <span class="keywordtype">void</span> lookAt(<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); |
---|
147 | 00255 |
---|
148 | 00258 <span class="keywordtype">void</span> roll(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>& angle); |
---|
149 | 00259 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
150 | 00260 <span class="preprocessor"></span> <span class="keywordtype">void</span> roll(<a class="code" href="namespaceOgre.html#a420">Real</a> degrees) { roll ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees) ); } |
---|
151 | 00261 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
152 | 00262 <span class="preprocessor"></span> |
---|
153 | 00265 <span class="keywordtype">void</span> yaw(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Radian.html">Radian</a>& angle); |
---|
154 | 00266 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
155 | 00267 <span class="preprocessor"></span> <span class="keywordtype">void</span> yaw(<a class="code" href="namespaceOgre.html#a420">Real</a> degrees) { yaw ( <a class="code" href="classOgre_1_1Angle.html">Angle</a>(degrees) ); } |
---|
156 | 00268 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
157 | 00269 <span class="preprocessor"></span> |
---|
158 | 00272 <span class="keywordtype">void</span> pitch(<span class="keyword">const</span> Radian& angle); |
---|
159 | 00273 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
160 | 00274 <span class="preprocessor"></span> <span class="keywordtype">void</span> pitch(<a class="code" href="namespaceOgre.html#a420">Real</a> degrees) { pitch ( Angle(degrees) ); } |
---|
161 | 00275 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
162 | 00276 <span class="preprocessor"></span> |
---|
163 | 00279 <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); |
---|
164 | 00280 <span class="preprocessor">#ifndef OGRE_FORCE_ANGLE_TYPES</span> |
---|
165 | 00281 <span class="preprocessor"></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) { rotate ( axis, Angle(degrees) ); } |
---|
166 | 00282 <span class="preprocessor">#endif//OGRE_FORCE_ANGLE_TYPES</span> |
---|
167 | 00283 <span class="preprocessor"></span> |
---|
168 | 00286 <span class="keywordtype">void</span> rotate(<span class="keyword">const</span> Quaternion& q); |
---|
169 | 00287 |
---|
170 | 00307 <span class="keywordtype">void</span> setFixedYawAxis( <span class="keywordtype">bool</span> useFixed, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& fixedAxis = Vector3::UNIT_Y ); |
---|
171 | 00308 |
---|
172 | 00309 |
---|
173 | 00312 <span class="keyword">const</span> Quaternion& getOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
174 | 00313 |
---|
175 | 00316 <span class="keywordtype">void</span> setOrientation(<span class="keyword">const</span> Quaternion& q); |
---|
176 | 00317 |
---|
177 | 00322 <span class="keywordtype">void</span> _renderScene(Viewport *vp, <span class="keywordtype">bool</span> includeOverlays); |
---|
178 | 00323 |
---|
179 | 00326 <span class="keyword">friend</span> std::ostream& operator<<(std::ostream& o, Camera& c); |
---|
180 | 00327 |
---|
181 | 00330 <span class="keywordtype">void</span> _notifyRenderedFaces(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> numfaces); |
---|
182 | 00331 |
---|
183 | 00334 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _getNumRenderedFaces(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
184 | 00335 |
---|
185 | 00338 <span class="keyword">const</span> Quaternion& getDerivedOrientation(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
186 | 00341 <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>; |
---|
187 | 00344 <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> getDerivedDirection(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
188 | 00347 <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> getDerivedUp(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
189 | 00350 <a class="code" href="classOgre_1_1Vector3.html">Vector3</a> getDerivedRight(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
190 | 00351 |
---|
191 | 00353 <span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a426">String</a>& getMovableType(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
192 | 00354 |
---|
193 | 00374 <span class="keywordtype">void</span> setAutoTracking(<span class="keywordtype">bool</span> enabled, <a class="code" href="classOgre_1_1SceneNode.html">SceneNode</a>* target = 0, |
---|
194 | 00375 <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& offset = Vector3::ZERO); |
---|
195 | 00376 |
---|
196 | 00377 |
---|
197 | 00393 <span class="keywordtype">void</span> setLodBias(<a class="code" href="namespaceOgre.html#a420">Real</a> factor = 1.0); |
---|
198 | 00394 |
---|
199 | 00399 <a class="code" href="namespaceOgre.html#a420">Real</a> getLodBias(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
200 | 00400 |
---|
201 | 00401 |
---|
202 | 00402 |
---|
203 | 00407 Ray getCameraToViewportRay(<a class="code" href="namespaceOgre.html#a420">Real</a> screenx, <a class="code" href="namespaceOgre.html#a420">Real</a> screeny) <span class="keyword">const</span>; |
---|
204 | 00408 |
---|
205 | 00410 <a class="code" href="namespaceOgre.html#a420">Real</a> _getLodBiasInverse(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
206 | 00411 |
---|
207 | 00412 |
---|
208 | 00414 <span class="keywordtype">void</span> _autoTrack(<span class="keywordtype">void</span>); |
---|
209 | 00415 |
---|
210 | 00416 |
---|
211 | 00426 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setWindow (<a class="code" href="namespaceOgre.html#a420">Real</a> Left, <a class="code" href="namespaceOgre.html#a420">Real</a> Top, <a class="code" href="namespaceOgre.html#a420">Real</a> Right, <a class="code" href="namespaceOgre.html#a420">Real</a> Bottom); |
---|
212 | 00428 <span class="keyword">virtual</span> <span class="keywordtype">void</span> resetWindow (<span class="keywordtype">void</span>); |
---|
213 | <a name="l00430"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCameraa44">00430</a> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> isWindowSet(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mWindowSet; } |
---|
214 | 00432 <span class="keyword">const</span> std::vector<Plane>& getWindowPlanes(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
215 | 00433 |
---|
216 | 00435 <a class="code" href="namespaceOgre.html#a420">Real</a> getBoundingRadius(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
217 | <a name="l00437"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCameraa47">00437</a> <a class="code" href="classOgre_1_1SceneNode.html">SceneNode</a>* getAutoTrackTarget(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAutoTrackTarget; } |
---|
218 | <a name="l00439"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCameraa48">00439</a> <span class="keyword">const</span> <a class="code" href="classOgre_1_1Vector3.html">Vector3</a>& getAutoTrackOffset(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mAutoTrackOffset; } |
---|
219 | 00440 |
---|
220 | <a name="l00446"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCameraa49">00446</a> <a class="code" href="classOgre_1_1Viewport.html">Viewport</a>* getViewport(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{<span class="keywordflow">return</span> mLastViewport;} |
---|
221 | <a name="l00448"></a><a class="code" href="classOgre_1_1Camera.html#Ogre_1_1OctreeCameraa50">00448</a> <span class="keywordtype">void</span> _notifyViewport(<a class="code" href="classOgre_1_1Viewport.html">Viewport</a>* viewport) {mLastViewport = viewport;} |
---|
222 | 00449 |
---|
223 | 00457 <span class="keywordtype">void</span> setAutoAspectRatio(<span class="keywordtype">bool</span> autoratio); |
---|
224 | 00458 |
---|
225 | 00461 <span class="keywordtype">bool</span> getAutoAspectRatio(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
226 | 00462 }; |
---|
227 | 00463 |
---|
228 | 00464 } <span class="comment">// namespace Ogre</span> |
---|
229 | 00465 <span class="preprocessor">#endif</span> |
---|
230 | </pre></div><hr> |
---|
231 | <p> |
---|
232 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
233 | <!--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/> |
---|
234 | 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/> |
---|
235 | <!--/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#"> |
---|
236 | <Work rdf:about=""> |
---|
237 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
238 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
239 | </Work> |
---|
240 | <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> --> |
---|
241 | |
---|
242 | Last modified Sun Feb 12 12:59:42 2006 |
---|
243 | </p> |
---|
244 | </body> |
---|
245 | </html> |
---|