<!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/Rendering/vtkActor.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/Rendering/vtkActor.h</h1><a href="a03362.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: vtkActor.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="l00034"></a>00034 <span class="preprocessor">#ifndef __vtkActor_h</span> <a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define __vtkActor_h</span> <a name="l00036"></a>00036 <span class="preprocessor"></span> <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="a03522.html">vtkProp3D.h</a>"</span> <a name="l00038"></a>00038 <a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>; <a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a>; <a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a00095.html" title="a list of actors">vtkActorCollection</a>; <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>; <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00984.html" title="abstract class specifies interface to map data to graphics primitives">vtkMapper</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>; <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="a00092.html">00046</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> : <span class="keyword">public</span> <a class="code" href="a01318.html" title="represents an 3D object for placement in a rendered scene">vtkProp3D</a> <a name="l00047"></a>00047 { <a name="l00048"></a>00048 <span class="keyword">public</span>: <a name="l00049"></a><a class="code" href="a00092.html#af95bad325f46645de0b93a965ddf942">00049</a> vtkTypeRevisionMacro(<a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>,<a class="code" href="a01318.html" title="represents an 3D object for placement in a rendered scene">vtkProp3D</a>); <a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="a01318.html#fc4c78b78843229db37631fdb24481f9">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00051"></a>00051 <a name="l00055"></a>00055 <span class="keyword">static</span> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00056"></a>00056 <a name="l00060"></a>00060 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01317.html#d4cbf8fa634a622b9e1419d897a4bd7f">GetActors</a>(<a class="code" href="a01321.html" title="a list of Props">vtkPropCollection</a> *); <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00064"></a>00064 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01317.html#4d7c8be45744400fba096728ce81f33a">RenderOpaqueGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport); <a name="l00065"></a>00065 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01317.html#cf64ca8da81629df108f095c6535548e">RenderTranslucentPolygonalGeometry</a>(<a class="code" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> *viewport); <a name="l00067"></a>00067 <a name="l00069"></a>00069 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01317.html#6e32af79f4756a287a61017b7c2f7364">HasTranslucentPolygonalGeometry</a>(); <a name="l00070"></a>00070 <a name="l00076"></a><a class="code" href="a00092.html#17573109904b49ca82bd75c420c2fdfb">00076</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> Render(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *, <a class="code" href="a00984.html" title="abstract class specifies interface to map data to graphics primitives">vtkMapper</a> *) {} <a name="l00077"></a>00077 <a name="l00079"></a>00079 <span class="keywordtype">void</span> <a class="code" href="a01318.html#6a5879b988966e8e357f76622ef2e59e">ShallowCopy</a>(<a class="code" href="a01317.html" title="abstract superclass for all actors, volumes and annotations">vtkProp</a> *prop); <a name="l00080"></a>00080 <a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="a01317.html#f2034bece75524dfa42553396d208a22">ReleaseGraphicsResources</a>(<a class="code" href="a01886.html" title="window superclass for vtkRenderWindow">vtkWindow</a> *); <a name="l00085"></a>00085 <a name="l00087"></a>00087 <a name="l00092"></a>00092 <span class="keywordtype">void</span> SetProperty(<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *lut); <a name="l00093"></a>00093 <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *GetProperty(); <a name="l00095"></a>00095 <a name="l00099"></a>00099 <span class="keyword">virtual</span> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>* MakeProperty(); <a name="l00100"></a>00100 <a name="l00102"></a>00102 <a name="l00106"></a>00106 <span class="keywordtype">void</span> SetBackfaceProperty(<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *lut); <a name="l00107"></a>00107 vtkGetObjectMacro(BackfaceProperty,<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>); <a name="l00109"></a>00109 <a name="l00111"></a>00111 <a name="l00114"></a>00114 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetTexture(<a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>*); <a name="l00115"></a>00115 vtkGetObjectMacro(Texture,<a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>); <a name="l00117"></a>00117 <a name="l00122"></a>00122 <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetMapper(<a class="code" href="a00984.html" title="abstract class specifies interface to map data to graphics primitives">vtkMapper</a> *); <a name="l00123"></a>00123 <a name="l00125"></a>00125 <a name="l00126"></a>00126 vtkGetObjectMacro(Mapper,<a class="code" href="a00984.html" title="abstract class specifies interface to map data to graphics primitives">vtkMapper</a>); <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a name="l00133"></a><a class="code" href="a00092.html#65b0a469a62bb01862777a47784c3dbc">00133</a> <span class="keywordtype">void</span> <a class="code" href="a01318.html#ac58a1c4708c1e130f65f2330ab31fb6">GetBounds</a>(<span class="keywordtype">double</span> bounds[6]) {this-><a class="code" href="a01318.html#ac58a1c4708c1e130f65f2330ab31fb6">vtkProp3D::GetBounds</a>( bounds );} <a name="l00134"></a>00134 <span class="keywordtype">double</span> *<a class="code" href="a01318.html#ac58a1c4708c1e130f65f2330ab31fb6">GetBounds</a>(); <a name="l00136"></a>00136 <a name="l00143"></a><a class="code" href="a00092.html#7ab05fab4845e28158c8d36154f768e1">00143</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> ApplyProperties() {} <a name="l00144"></a>00144 <a name="l00146"></a>00146 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> <a class="code" href="a01318.html#f0fcdb7fa72e053d7fb32a1828117c62">GetMTime</a>(); <a name="l00147"></a>00147 <a name="l00152"></a>00152 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01317.html#06aa1f37a3832c8870e8a10127b32012">GetRedrawMTime</a>(); <a name="l00153"></a>00153 <a name="l00155"></a>00155 <a name="l00159"></a>00159 VTK_LEGACY(<span class="keyword">virtual</span> <span class="keywordtype">void</span> InitPartTraversal()); <a name="l00160"></a>00160 VTK_LEGACY(<span class="keyword">virtual</span> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *GetNextPart()); <a name="l00161"></a>00161 VTK_LEGACY(<span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNumberOfParts()); <a name="l00163"></a>00163 <a name="l00168"></a>00168 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="a01317.html#674d853f698ede97b0be950920fd43b5">GetSupportsSelection</a>(); <a name="l00169"></a>00169 <a name="l00170"></a>00170 <span class="keyword">protected</span>: <a name="l00171"></a>00171 <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>(); <a name="l00172"></a>00172 ~<a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>(); <a name="l00173"></a>00173 <a name="l00174"></a><a class="code" href="a00092.html#a34a56a3a7c5d30942ec3abf4cb377f2">00174</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *Property; <a name="l00175"></a><a class="code" href="a00092.html#65ff8aa95e26e84c5d858dca9b944d5f">00175</a> <a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *BackfaceProperty; <a name="l00176"></a><a class="code" href="a00092.html#a14ecd12710fb207475498edb1ff76ca">00176</a> <a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a> *Texture; <a name="l00177"></a><a class="code" href="a00092.html#a7c713df0b6efffd0383de7e716e1284">00177</a> <a class="code" href="a00984.html" title="abstract class specifies interface to map data to graphics primitives">vtkMapper</a> *Mapper; <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="comment">// is this actor opaque</span> <a name="l00180"></a>00180 <span class="keywordtype">int</span> GetIsOpaque(); <a name="l00181"></a>00181 <a name="l00182"></a>00182 <span class="comment">// Bounds are cached in an actor - the MapperBounds are also cache to</span> <a name="l00183"></a>00183 <span class="comment">// help know when the Bounds need to be recomputed.</span> <a name="l00184"></a><a class="code" href="a00092.html#344507e3fcb29a46287e65b06f7162a7">00184</a> <span class="keywordtype">double</span> MapperBounds[6]; <a name="l00185"></a><a class="code" href="a00092.html#823f62f1f9b10272987ecdc17ef79f7d">00185</a> <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> BoundsMTime; <a name="l00186"></a>00186 <a name="l00187"></a>00187 <span class="keyword">private</span>: <a name="l00188"></a>00188 <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>(<span class="keyword">const</span> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>&); <span class="comment">// Not implemented.</span> <a name="l00189"></a>00189 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>&); <span class="comment">// Not implemented.</span> <a name="l00190"></a>00190 }; <a name="l00191"></a>00191 <a name="l00192"></a>00192 <span class="preprocessor">#endif</span> <a name="l00193"></a>00193 <span class="preprocessor"></span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:44 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>