<!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/Filtering/vtkActor2DCollection.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/Filtering/vtkActor2DCollection.h</h1><a href="a02187.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: vtkActor2DCollection.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="l00027"></a>00027 <span class="preprocessor">#ifndef __vtkActor2DCollection_h</span> <a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define __vtkActor2DCollection_h</span> <a name="l00029"></a>00029 <span class="preprocessor"></span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="a02114.html">vtkPropCollection.h</a>"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="a02186.html">vtkActor2D.h</a>"</span> <span class="comment">// Needed for inline methods</span> <a name="l00033"></a>00033 <a name="l00034"></a>00034 <span class="keyword">class </span><a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>; <a name="l00035"></a>00035 <a name="l00036"></a><a class="code" href="a00094.html">00036</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a> : <span class="keyword">public</span> <a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> <a name="l00037"></a>00037 { <a name="l00038"></a>00038 <span class="keyword">public</span>: <a name="l00041"></a>00041 <span class="keyword">static</span> <a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a> *<a class="code" href="a01321.html#88d6590e55db3f86241a1b71e73084a8">New</a>(); <a name="l00042"></a>00042 <a name="l00043"></a><a class="code" href="a00094.html#a21e4d6f37cab9b1394f3ca3c7eea154">00043</a> vtkTypeRevisionMacro(<a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a>,<a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a>); <a name="l00044"></a>00044 <a name="l00047"></a>00047 <span class="keywordtype">void</span> Sort(); <a name="l00048"></a>00048 <a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="a01321.html#6dd962e765ce239e8158eb98ff432721">AddItem</a>(<a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *a); <a name="l00052"></a>00052 <a name="l00054"></a>00054 <a name="l00055"></a>00055 <span class="keywordtype">int</span> <a class="code" href="a00285.html#f856dc8f26e59779f2a27cb141394871">IsItemPresent</a>(<a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *a); <a name="l00056"></a>00056 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *GetNextActor2D(); <a name="l00057"></a>00057 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *GetLastActor2D(); <a name="l00059"></a>00059 <a name="l00061"></a>00061 <a name="l00064"></a>00064 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *GetNextItem(); <a name="l00065"></a>00065 <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *GetLastItem(); <a name="l00067"></a>00067 <a name="l00068"></a>00068 <a name="l00070"></a>00070 <span class="keywordtype">void</span> RenderOverlay(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a>* viewport); <a name="l00071"></a>00071 <a name="l00072"></a>00072 <span class="comment">//BTX</span> <a name="l00074"></a>00074 <span class="comment"></span> <a name="l00076"></a><a class="code" href="a00094.html#7643e3d67a2a84aadeb066f70e202fb1">00076</a> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *GetNextActor2D(<a class="code" href="a01997.html#e6d08cf20cab6c3fff58d3854486e9e4">vtkCollectionSimpleIterator</a> &cookie) { <a name="l00077"></a>00077 <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<span class="keyword">></span>(this-><a class="code" href="a00285.html#edfc4ec55e787ee7fd1620fd70259282">GetNextItemAsObject</a>(cookie));}; <a name="l00078"></a>00078 <span class="comment">//ETX</span> <a name="l00080"></a>00080 <span class="comment"></span> <a name="l00081"></a>00081 <span class="keyword">protected</span>: <a name="l00082"></a><a class="code" href="a00094.html#1316fc5efd40ae856524c9cf15f7087d">00082</a> <a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a>() {}; <a name="l00083"></a>00083 ~<a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a>(); <a name="l00084"></a>00084 <a name="l00085"></a>00085 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00285.html#ec656beb2adec8746dcd52b8cf3556cb">DeleteElement</a>(<a class="code" href="a00286.html">vtkCollectionElement</a> *); <a name="l00086"></a>00086 <a name="l00087"></a>00087 <span class="keyword">private</span>: <a name="l00088"></a>00088 <span class="comment">// hide the standard AddItem from the user and the compiler.</span> <a name="l00089"></a>00089 <span class="keywordtype">void</span> <a class="code" href="a01321.html#6dd962e765ce239e8158eb98ff432721">AddItem</a>(<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> *o) { this-><a class="code" href="a00285.html#a49956d40289c4fe91b28069284e835b">vtkCollection::AddItem</a>(o); }; <a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="a01321.html#6dd962e765ce239e8158eb98ff432721">AddItem</a>(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *o) { this-><a class="code" href="a01321.html#6dd962e765ce239e8158eb98ff432721">vtkPropCollection::AddItem</a>(o); }; <a name="l00091"></a>00091 <span class="keywordtype">int</span> <a class="code" href="a00285.html#f856dc8f26e59779f2a27cb141394871">IsItemPresent</a>(<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> *o) { <span class="keywordflow">return</span> this-><a class="code" href="a00285.html#f856dc8f26e59779f2a27cb141394871">vtkCollection::IsItemPresent</a>(o); }; <a name="l00092"></a>00092 <a name="l00093"></a>00093 <span class="keyword">private</span>: <a name="l00094"></a>00094 <a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a>(<span class="keyword">const</span> <a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a>&); <span class="comment">// Not implemented.</span> <a name="l00095"></a>00095 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00094.html" title="a list of 2D actors">vtkActor2DCollection</a>&); <span class="comment">// Not implemented.</span> <a name="l00096"></a>00096 }; <a name="l00097"></a>00097 <a name="l00098"></a><a class="code" href="a00094.html#f82f4af4f0546ee151c93c0eb36fc217">00098</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a00094.html#f82f4af4f0546ee151c93c0eb36fc217">vtkActor2DCollection::IsItemPresent</a>(<a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *a) <a name="l00099"></a>00099 { <a name="l00100"></a>00100 <span class="keywordflow">return</span> this-><a class="code" href="a00285.html#f856dc8f26e59779f2a27cb141394871">vtkCollection::IsItemPresent</a>(a); <a name="l00101"></a>00101 } <a name="l00102"></a>00102 <a name="l00103"></a><a class="code" href="a00094.html#e8260a483bdf1da89451d750ae76d9d3">00103</a> <span class="keyword">inline</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<a class="code" href="a00094.html#e8260a483bdf1da89451d750ae76d9d3">vtkActor2DCollection::GetNextActor2D</a>() <a name="l00104"></a>00104 { <a name="l00105"></a>00105 <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<span class="keyword">></span>(this-><a class="code" href="a00285.html#edfc4ec55e787ee7fd1620fd70259282">GetNextItemAsObject</a>()); <a name="l00106"></a>00106 } <a name="l00107"></a>00107 <a name="l00108"></a><a class="code" href="a00094.html#6dfe88002fe0e9221dd2b369379b6ce9">00108</a> <span class="keyword">inline</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<a class="code" href="a00094.html#6dfe88002fe0e9221dd2b369379b6ce9">vtkActor2DCollection::GetLastActor2D</a>() <a name="l00109"></a>00109 { <a name="l00110"></a>00110 <span class="keywordflow">if</span> ( this-><a class="code" href="a00285.html#9480ecd2de244222c1d4fd3b627e61b3">Bottom</a> == NULL ) <a name="l00111"></a>00111 { <a name="l00112"></a>00112 <span class="keywordflow">return</span> NULL; <a name="l00113"></a>00113 } <a name="l00114"></a>00114 <span class="keywordflow">else</span> <a name="l00115"></a>00115 { <a name="l00116"></a>00116 <span class="keywordflow">return</span> <span class="keyword">static_cast<</span><a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<span class="keyword">></span>(this-><a class="code" href="a00285.html#9480ecd2de244222c1d4fd3b627e61b3">Bottom</a>-><a class="code" href="a00286.html#76005ac8ef782f09232b3031f7c1c4b2">Item</a>); <a name="l00117"></a>00117 } <a name="l00118"></a>00118 } <a name="l00119"></a>00119 <a name="l00120"></a><a class="code" href="a00094.html#8dbcbc346d3659df65c32d7cb92af361">00120</a> <span class="keyword">inline</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<a class="code" href="a00094.html#8dbcbc346d3659df65c32d7cb92af361">vtkActor2DCollection::GetNextItem</a>() <a name="l00121"></a>00121 { <a name="l00122"></a>00122 <span class="keywordflow">return</span> this-><a class="code" href="a00094.html#e8260a483bdf1da89451d750ae76d9d3">GetNextActor2D</a>(); <a name="l00123"></a>00123 } <a name="l00124"></a>00124 <a name="l00125"></a><a class="code" href="a00094.html#fc9c26a502b859a6ee6bd775d166d02e">00125</a> <span class="keyword">inline</span> <a class="code" href="a00093.html" title="a actor that draws 2D data">vtkActor2D</a> *<a class="code" href="a00094.html#fc9c26a502b859a6ee6bd775d166d02e">vtkActor2DCollection::GetLastItem</a>() <a name="l00126"></a>00126 { <a name="l00127"></a>00127 <span class="keywordflow">return</span> this-><a class="code" href="a00094.html#6dfe88002fe0e9221dd2b369379b6ce9">GetLastActor2D</a>(); <a name="l00128"></a>00128 } <a name="l00129"></a>00129 <a name="l00130"></a>00130 <span class="preprocessor">#endif</span> <a name="l00131"></a>00131 <span class="preprocessor"></span> <a name="l00132"></a>00132 <a name="l00133"></a>00133 <a name="l00134"></a>00134 <a name="l00135"></a>00135 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:13 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>