1 | <html> |
---|
2 | <head> |
---|
3 | <title>OgreRibbonTrail.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>OgreRibbonTrail.h</h1><a href="OgreRibbonTrail_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 __RibbonTrail_H__</span> |
---|
36 | 00027 <span class="preprocessor"></span><span class="preprocessor">#define __RibbonTrail_H__</span> |
---|
37 | 00028 <span class="preprocessor"></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="OgreBillboardChain_8h.html">OgreBillboardChain.h</a>"</span> |
---|
41 | 00032 <span class="preprocessor">#include "<a class="code" href="OgreNode_8h.html">OgreNode.h</a>"</span> |
---|
42 | 00033 <span class="preprocessor">#include "<a class="code" href="OgreIteratorWrappers_8h.html">OgreIteratorWrappers.h</a>"</span> |
---|
43 | 00034 <span class="preprocessor">#include "<a class="code" href="OgreFrameListener_8h.html">OgreFrameListener.h</a>"</span> |
---|
44 | 00035 <span class="preprocessor">#include "<a class="code" href="OgreControllerManager_8h.html">OgreControllerManager.h</a>"</span> |
---|
45 | 00036 |
---|
46 | 00037 <span class="keyword">namespace </span>Ogre { |
---|
47 | 00038 |
---|
48 | <a name="l00061"></a><a class="code" href="classOgre_1_1RibbonTrail.html">00061</a> <span class="keyword">class </span><a class="code" href="OgrePlatform_8h.html#a16">_OgreExport</a> RibbonTrail : <span class="keyword">public</span> <a class="code" href="classOgre_1_1BillboardChain.html">BillboardChain</a>, <span class="keyword">public</span> <a class="code" href="classOgre_1_1Node.html">Node</a>::Listener |
---|
49 | 00062 { |
---|
50 | 00063 <span class="keyword">public</span>: |
---|
51 | 00073 RibbonTrail(<span class="keyword">const</span> <a class="code" href="namespaceOgre.html#a471">String</a>& name, size_t maxElements = 20, size_t numberOfChains = 1, |
---|
52 | 00074 <span class="keywordtype">bool</span> useTextureCoords = <span class="keyword">true</span>, <span class="keywordtype">bool</span> useColours = <span class="keyword">true</span>); |
---|
53 | 00076 <span class="keyword">virtual</span> ~RibbonTrail(); |
---|
54 | 00077 |
---|
55 | <a name="l00078"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailw0">00078</a> <span class="keyword">typedef</span> std::vector<Node*> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailw0">NodeList</a>; |
---|
56 | <a name="l00079"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailw1">00079</a> <span class="keyword">typedef</span> <a class="code" href="classOgre_1_1ConstVectorIterator.html">ConstVectorIterator<NodeList></a> <a class="code" href="classOgre_1_1ConstVectorIterator.html">NodeIterator</a>; |
---|
57 | 00080 |
---|
58 | 00084 <span class="keyword">virtual</span> <span class="keywordtype">void</span> addNode(<a class="code" href="classOgre_1_1Node.html">Node</a>* n); |
---|
59 | 00086 <span class="keyword">virtual</span> <span class="keywordtype">void</span> removeNode(<a class="code" href="classOgre_1_1Node.html">Node</a>* n); |
---|
60 | 00088 <span class="keyword">virtual</span> <a class="code" href="classOgre_1_1ConstVectorIterator.html">NodeIterator</a> getNodeIterator(<span class="keywordtype">void</span>) <span class="keyword">const</span>; |
---|
61 | 00089 |
---|
62 | 00096 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setTrailLength(<a class="code" href="namespaceOgre.html#a465">Real</a> len); |
---|
63 | <a name="l00098"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTraila6">00098</a> <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getTrailLength(<span class="keywordtype">void</span>)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mTrailLength; } |
---|
64 | 00099 |
---|
65 | 00101 <span class="keywordtype">void</span> setMaxChainElements(size_t maxElements); |
---|
66 | 00103 <span class="keywordtype">void</span> setNumberOfChains(size_t numChains); |
---|
67 | 00104 |
---|
68 | 00111 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInitialColour(size_t chainIndex, <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& col); |
---|
69 | 00118 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInitialColour(size_t chainIndex, <a class="code" href="namespaceOgre.html#a465">Real</a> r, <a class="code" href="namespaceOgre.html#a465">Real</a> g, <a class="code" href="namespaceOgre.html#a465">Real</a> b, <a class="code" href="namespaceOgre.html#a465">Real</a> a = 1.0); |
---|
70 | 00120 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& getInitialColour(size_t chainIndex) <span class="keyword">const</span>; |
---|
71 | 00121 |
---|
72 | 00126 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setColourChange(size_t chainIndex, <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& valuePerSecond); |
---|
73 | 00127 |
---|
74 | 00132 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setInitialWidth(size_t chainIndex, <a class="code" href="namespaceOgre.html#a465">Real</a> width); |
---|
75 | 00134 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getInitialWidth(size_t chainIndex) <span class="keyword">const</span>; |
---|
76 | 00135 |
---|
77 | 00140 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setWidthChange(size_t chainIndex, <a class="code" href="namespaceOgre.html#a465">Real</a> widthDeltaPerSecond); |
---|
78 | 00142 <span class="keyword">virtual</span> <a class="code" href="namespaceOgre.html#a465">Real</a> getWidthChange(size_t chainIndex) <span class="keyword">const</span>; |
---|
79 | 00143 |
---|
80 | 00148 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setColourChange(size_t chainIndex, <a class="code" href="namespaceOgre.html#a465">Real</a> r, <a class="code" href="namespaceOgre.html#a465">Real</a> g, <a class="code" href="namespaceOgre.html#a465">Real</a> b, <a class="code" href="namespaceOgre.html#a465">Real</a> a); |
---|
81 | 00149 |
---|
82 | 00151 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classOgre_1_1ColourValue.html">ColourValue</a>& getColourChange(size_t chainIndex) <span class="keyword">const</span>; |
---|
83 | 00152 |
---|
84 | 00154 <span class="keywordtype">void</span> nodeUpdated(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Node.html">Node</a>* node); |
---|
85 | 00156 <span class="keywordtype">void</span> nodeDestroyed(<span class="keyword">const</span> <a class="code" href="classOgre_1_1Node.html">Node</a>* node); |
---|
86 | 00157 |
---|
87 | 00159 <span class="keyword">virtual</span> <span class="keywordtype">void</span> _timeUpdate(<a class="code" href="namespaceOgre.html#a465">Real</a> time); |
---|
88 | 00160 |
---|
89 | 00161 <span class="keyword">protected</span>: |
---|
90 | <a name="l00163"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp0">00163</a> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailw0">NodeList</a> mNodeList; |
---|
91 | <a name="l00165"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp1">00165</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mTrailLength; |
---|
92 | <a name="l00167"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp2">00167</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mElemLength; |
---|
93 | <a name="l00169"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp3">00169</a> <a class="code" href="namespaceOgre.html#a465">Real</a> mSquaredElemLength; |
---|
94 | <a name="l00170"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx0">00170</a> <span class="keyword">typedef</span> std::vector<ColourValue> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx0">ColourValueList</a>; |
---|
95 | <a name="l00171"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx1">00171</a> <span class="keyword">typedef</span> std::vector<Real> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx1">RealList</a>; |
---|
96 | <a name="l00173"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp4">00173</a> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx0">ColourValueList</a> mInitialColour; |
---|
97 | <a name="l00175"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp5">00175</a> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx0">ColourValueList</a> mDeltaColour; |
---|
98 | <a name="l00177"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp6">00177</a> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx1">RealList</a> mInitialWidth; |
---|
99 | <a name="l00179"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp7">00179</a> <a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailx1">RealList</a> mDeltaWidth; |
---|
100 | <a name="l00181"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp8">00181</a> <a class="code" href="classOgre_1_1Controller.html">Controller<Real></a>* mFadeController; |
---|
101 | <a name="l00183"></a><a class="code" href="classOgre_1_1RibbonTrail.html#Ogre_1_1RibbonTrailp9">00183</a> <a class="code" href="classOgre_1_1SharedPtr.html">ControllerValueRealPtr</a> mTimeControllerValue; |
---|
102 | 00184 |
---|
103 | 00186 <span class="keyword">virtual</span> <span class="keywordtype">void</span> manageController(<span class="keywordtype">void</span>); |
---|
104 | 00188 <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateTrail(size_t index, <span class="keyword">const</span> <a class="code" href="classOgre_1_1Node.html">Node</a>* node); |
---|
105 | 00189 |
---|
106 | 00190 |
---|
107 | 00191 }; |
---|
108 | 00192 |
---|
109 | 00193 |
---|
110 | <a name="l00195"></a><a class="code" href="classOgre_1_1RibbonTrailFactory.html">00195</a> <span class="keyword">class </span><a class="code" href="class__OgreExport.html">_OgreExport</a> RibbonTrailFactory : <span class="keyword">public</span> <a class="code" href="classOgre_1_1MovableObjectFactory.html">MovableObjectFactory</a> |
---|
111 | 00196 { |
---|
112 | 00197 <span class="keyword">protected</span>: |
---|
113 | 00198 <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* createInstanceImpl( <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); |
---|
114 | 00199 <span class="keyword">public</span>: |
---|
115 | <a name="l00200"></a><a class="code" href="classOgre_1_1RibbonTrailFactory.html#Ogre_1_1RibbonTrailFactorya0">00200</a> RibbonTrailFactory() {} |
---|
116 | <a name="l00201"></a><a class="code" href="classOgre_1_1RibbonTrailFactory.html#Ogre_1_1RibbonTrailFactorya1">00201</a> ~RibbonTrailFactory() {} |
---|
117 | 00202 |
---|
118 | <a name="l00203"></a><a class="code" href="classOgre_1_1RibbonTrailFactory.html#Ogre_1_1RibbonTrailFactorys0">00203</a> <span class="keyword">static</span> <a class="code" href="namespaceOgre.html#a471">String</a> FACTORY_TYPE_NAME; |
---|
119 | 00204 |
---|
120 | 00205 <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>; |
---|
121 | 00206 <span class="keywordtype">void</span> destroyInstance( <a class="code" href="classOgre_1_1MovableObject.html">MovableObject</a>* obj); |
---|
122 | 00207 |
---|
123 | 00208 }; |
---|
124 | 00209 |
---|
125 | 00210 } |
---|
126 | 00211 |
---|
127 | 00212 <span class="preprocessor">#endif</span> |
---|
128 | </pre></div><hr> |
---|
129 | <p> |
---|
130 | Copyright © 2000-2005 by The OGRE Team<br /> |
---|
131 | <!--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/> |
---|
132 | 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/> |
---|
133 | <!--/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#"> |
---|
134 | <Work rdf:about=""> |
---|
135 | <license rdf:resource="http://creativecommons.org/licenses/by-sa/2.5/" /> |
---|
136 | <dc:type rdf:resource="http://purl.org/dc/dcmitype/Text" /> |
---|
137 | </Work> |
---|
138 | <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> --> |
---|
139 | |
---|
140 | Last modified Sun Mar 12 14:37:48 2006 |
---|
141 | </p> |
---|
142 | </body> |
---|
143 | </html> |
---|