<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: dox/Common/vtkAnimationScene.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>dox/Common/vtkAnimationScene.h</h1><a href="a01972.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Visualization Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkAnimationScene.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span> <a name="l00007"></a>00007 <span class="comment"> All rights reserved.</span> <a name="l00008"></a>00008 <span class="comment"> See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00011"></a>00011 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00012"></a>00012 <span class="comment"> PURPOSE. See the above copyright notice for more information.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span> <a name="l00029"></a>00029 <span class="preprocessor">#ifndef __vtkAnimationScene_h</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define __vtkAnimationScene_h</span> <a name="l00031"></a>00031 <span class="preprocessor"></span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="a01971.html">vtkAnimationCue.h</a>"</span> <a name="l00033"></a>00033 <a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="a00109.html" title="a seqin an animation.">vtkAnimationCue</a>; <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a00285.html" title="create and manipulate unsorted lists of objects">vtkCollection</a>; <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00287.html" title="iterator through a vtkCollection.">vtkCollectionIterator</a>; <a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a01715.html" title="Timer support and logging.">vtkTimerLog</a>; <a name="l00038"></a>00038 <a name="l00039"></a><a class="code" href="a00111.html">00039</a> <span class="keyword">class </span><a class="code" href="a02170.html#873ca0b83d0838a1df577536068a1730">VTK_COMMON_EXPORT</a> <a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>: <span class="keyword">public</span> <a class="code" href="a00109.html" title="a seqin an animation.">vtkAnimationCue</a> <a name="l00040"></a>00040 { <a name="l00041"></a>00041 <span class="keyword">public</span>: <a name="l00042"></a><a class="code" href="a00111.html#a557574b4681b827887911e2e6f8b362">00042</a> vtkTypeRevisionMacro(<a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>, <a class="code" href="a00109.html" title="a seqin an animation.">vtkAnimationCue</a>); <a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="a00109.html#36a3f09480a1aa9a10ee71531ac55a09">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00044"></a>00044 <span class="keyword">static</span> <a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>* <a class="code" href="a00109.html#08c05216c72d61e4a536970a13b11d20">New</a>(); <a name="l00045"></a>00045 <a name="l00047"></a>00047 <a name="l00052"></a>00052 vtkSetMacro(PlayMode, <span class="keywordtype">int</span>); <a name="l00053"></a><a class="code" href="a00111.html#0446ed5cb62d168fcd410023b849d389">00053</a> <span class="keywordtype">void</span> SetModeToSequence() { this->SetPlayMode(PLAYMODE_SEQUENCE); } <a name="l00054"></a><a class="code" href="a00111.html#b90a6e302d21bc60651b9cd08d3ece0d">00054</a> <span class="keywordtype">void</span> SetModeToRealTime() { this->SetPlayMode(PLAYMODE_REALTIME); } <a name="l00055"></a>00055 vtkGetMacro(PlayMode, <span class="keywordtype">int</span>); <a name="l00057"></a>00057 <a name="l00059"></a>00059 <a name="l00062"></a>00062 vtkSetMacro(FrameRate, <span class="keywordtype">double</span>); <a name="l00063"></a>00063 vtkGetMacro(FrameRate, <span class="keywordtype">double</span>); <a name="l00065"></a>00065 <a name="l00067"></a>00067 <a name="l00069"></a>00069 <span class="keywordtype">void</span> AddCue(<a class="code" href="a00109.html" title="a seqin an animation.">vtkAnimationCue</a>* cue); <a name="l00070"></a>00070 <span class="keywordtype">void</span> RemoveCue(<a class="code" href="a00109.html" title="a seqin an animation.">vtkAnimationCue</a>* cue); <a name="l00071"></a>00071 <span class="keywordtype">void</span> RemoveAllCues(); <a name="l00072"></a>00072 <span class="keywordtype">int</span> GetNumberOfCues(); <a name="l00074"></a>00074 <a name="l00077"></a>00077 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Play(); <a name="l00078"></a>00078 <a name="l00080"></a>00080 <span class="keywordtype">void</span> Stop(); <a name="l00081"></a>00081 <a name="l00083"></a>00083 <a name="l00084"></a>00084 vtkSetMacro(Loop, <span class="keywordtype">int</span>); <a name="l00085"></a>00085 vtkGetMacro(Loop, <span class="keywordtype">int</span>); <a name="l00087"></a>00087 <a name="l00089"></a>00089 <a name="l00090"></a>00090 <span class="keywordtype">void</span> SetAnimationTime(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2107b83992a2109ab18b82ba0228887498e">time</a>); <a name="l00091"></a>00091 vtkGetMacro(AnimationTime, <span class="keywordtype">double</span>); <a name="l00093"></a>00093 <a name="l00096"></a>00096 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00109.html#e70b57b071bef19cefc06ba4830ae60e">SetTimeMode</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210608db9ad4c08b9eb2e8e8353b79225da">mode</a>); <a name="l00097"></a>00097 <a name="l00099"></a><a class="code" href="a00111.html#0959863f7380f8110f213456db1d1ef5">00099</a> <span class="keywordtype">int</span> IsInPlay() { <span class="keywordflow">return</span> this->InPlay; } <a name="l00100"></a>00100 <a name="l00101"></a>00101 <span class="comment">//BTX</span> <a name="l00102"></a><a class="code" href="a00111.html#ee9d0b285187613104a6b52a99ffefdd">00102</a> <span class="keyword">enum</span> <a class="code" href="a00111.html#ee9d0b285187613104a6b52a99ffefdd">PlayModes</a> <a name="l00103"></a>00103 { <a name="l00104"></a><a class="code" href="a00111.html#ee9d0b285187613104a6b52a99ffefdd7ea585274e7978dc0792c8f485960366">00104</a> PLAYMODE_SEQUENCE=0, <a name="l00105"></a><a class="code" href="a00111.html#ee9d0b285187613104a6b52a99ffefdd40739f9672ca6ee6287129c141093a80">00105</a> PLAYMODE_REALTIME=1 <a name="l00106"></a>00106 }; <a name="l00107"></a>00107 <span class="comment">//ETX</span> <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="keyword">protected</span>: <a name="l00110"></a>00110 <a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>(); <a name="l00111"></a>00111 ~<a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>(); <a name="l00112"></a>00112 <a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00109.html#a8f9f58121f80be9292f085989aae352">TickInternal</a>(<span class="keywordtype">double</span> currenttime, <span class="keywordtype">double</span> deltatime, <span class="keywordtype">double</span> clocktime); <a name="l00116"></a>00116 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00109.html#3f35686515716d32f4c53d9f2c969e12">StartCueInternal</a>(); <a name="l00117"></a>00117 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00109.html#443a9839516d1a134bced731b1a795b4">EndCueInternal</a>(); <a name="l00119"></a>00119 <a name="l00120"></a>00120 <span class="keywordtype">void</span> InitializeChildren(); <a name="l00121"></a>00121 <span class="keywordtype">void</span> FinalizeChildren(); <a name="l00122"></a>00122 <a name="l00123"></a><a class="code" href="a00111.html#13a2eda935513c51fc14c44e701d5301">00123</a> <span class="keywordtype">int</span> PlayMode; <a name="l00124"></a><a class="code" href="a00111.html#1a5b149d9e3eded752ce8bdcefbe7ff9">00124</a> <span class="keywordtype">double</span> FrameRate; <a name="l00125"></a><a class="code" href="a00111.html#6bc16aa4075aa684b103f674a4b85176">00125</a> <span class="keywordtype">int</span> Loop; <a name="l00126"></a><a class="code" href="a00111.html#8be064d24570d6403334f296632da08f">00126</a> <span class="keywordtype">int</span> InPlay; <a name="l00127"></a><a class="code" href="a00111.html#c79ba7e38dd5a24d360a9fb59833cefa">00127</a> <span class="keywordtype">int</span> StopPlay; <a name="l00128"></a><a class="code" href="a00111.html#393a6c23092a547fee93de0916f93c97">00128</a> <span class="keywordtype">double</span> AnimationTime; <a name="l00129"></a>00129 <a name="l00130"></a><a class="code" href="a00111.html#dab7b80ba405c240688ea2dc921a2198">00130</a> <a class="code" href="a00285.html" title="create and manipulate unsorted lists of objects">vtkCollection</a>* AnimationCues; <a name="l00131"></a><a class="code" href="a00111.html#f36873b95f6cc74355281e5321de3836">00131</a> <a class="code" href="a00287.html" title="iterator through a vtkCollection.">vtkCollectionIterator</a>* AnimationCuesIterator; <a name="l00132"></a><a class="code" href="a00111.html#9a17e43da28ededcc5987858c54f092e">00132</a> <a class="code" href="a01715.html" title="Timer support and logging.">vtkTimerLog</a>* AnimationTimer; <a name="l00133"></a>00133 <a name="l00134"></a>00134 <span class="keyword">private</span>: <a name="l00135"></a>00135 <a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>(<span class="keyword">const</span> <a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>&); <span class="comment">// Not implemented.</span> <a name="l00136"></a>00136 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00111.html" title="the animation scene manager.">vtkAnimationScene</a>&); <span class="comment">// Not implemented.</span> <a name="l00137"></a>00137 }; <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:08 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>