<!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/vtkPOVExporter.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/vtkPOVExporter.h</h1><a href="a03520.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: vtkPOVExporter.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="l00015"></a>00015 <span class="comment">/*=========================================================================</span> <a name="l00016"></a>00016 <span class="comment"></span> <a name="l00017"></a>00017 <span class="comment"> Program: VTK/ParaView Los Alamos National Laboratory Modules (PVLANL)</span> <a name="l00018"></a>00018 <span class="comment"> Module: $RCSfile: vtkPOVExporter.h,v $</span> <a name="l00019"></a>00019 <span class="comment"></span> <a name="l00020"></a>00020 <span class="comment">Copyright (c) 2007, Los Alamos National Security, LLC</span> <a name="l00021"></a>00021 <span class="comment"></span> <a name="l00022"></a>00022 <span class="comment">All rights reserved.</span> <a name="l00023"></a>00023 <span class="comment"></span> <a name="l00024"></a>00024 <span class="comment">Copyright 2007. Los Alamos National Security, LLC. </span> <a name="l00025"></a>00025 <span class="comment">This software was produced under U.S. Government contract DE-AC52-06NA25396 </span> <a name="l00026"></a>00026 <span class="comment">for Los Alamos National Laboratory (LANL), which is operated by </span> <a name="l00027"></a>00027 <span class="comment">Los Alamos National Security, LLC for the U.S. Department of Energy. </span> <a name="l00028"></a>00028 <span class="comment">The U.S. Government has rights to use, reproduce, and distribute this software. </span> <a name="l00029"></a>00029 <span class="comment">NEITHER THE GOVERNMENT NOR LOS ALAMOS NATIONAL SECURITY, LLC MAKES ANY WARRANTY,</span> <a name="l00030"></a>00030 <span class="comment">EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITY FOR THE USE OF THIS SOFTWARE. </span> <a name="l00031"></a>00031 <span class="comment">If software is modified to produce derivative works, such modified software </span> <a name="l00032"></a>00032 <span class="comment">should be clearly marked, so as not to confuse it with the version available </span> <a name="l00033"></a>00033 <span class="comment">from LANL.</span> <a name="l00034"></a>00034 <span class="comment"> </span> <a name="l00035"></a>00035 <span class="comment">Additionally, redistribution and use in source and binary forms, with or </span> <a name="l00036"></a>00036 <span class="comment">without modification, are permitted provided that the following conditions </span> <a name="l00037"></a>00037 <span class="comment">are met:</span> <a name="l00038"></a>00038 <span class="comment">- Redistributions of source code must retain the above copyright notice, </span> <a name="l00039"></a>00039 <span class="comment"> this list of conditions and the following disclaimer. </span> <a name="l00040"></a>00040 <span class="comment">- Redistributions in binary form must reproduce the above copyright notice,</span> <a name="l00041"></a>00041 <span class="comment"> this list of conditions and the following disclaimer in the documentation</span> <a name="l00042"></a>00042 <span class="comment"> and/or other materials provided with the distribution. </span> <a name="l00043"></a>00043 <span class="comment">- Neither the name of Los Alamos National Security, LLC, Los Alamos National</span> <a name="l00044"></a>00044 <span class="comment"> Laboratory, LANL, the U.S. Government, nor the names of its contributors</span> <a name="l00045"></a>00045 <span class="comment"> may be used to endorse or promote products derived from this software </span> <a name="l00046"></a>00046 <span class="comment"> without specific prior written permission. </span> <a name="l00047"></a>00047 <span class="comment"></span> <a name="l00048"></a>00048 <span class="comment">THIS SOFTWARE IS PROVIDED BY LOS ALAMOS NATIONAL SECURITY, LLC AND CONTRIBUTORS</span> <a name="l00049"></a>00049 <span class="comment">"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, </span> <a name="l00050"></a>00050 <span class="comment">THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE </span> <a name="l00051"></a>00051 <span class="comment">ARE DISCLAIMED. IN NO EVENT SHALL LOS ALAMOS NATIONAL SECURITY, LLC OR </span> <a name="l00052"></a>00052 <span class="comment">CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, </span> <a name="l00053"></a>00053 <span class="comment">EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, </span> <a name="l00054"></a>00054 <span class="comment">PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; </span> <a name="l00055"></a>00055 <span class="comment">OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, </span> <a name="l00056"></a>00056 <span class="comment">WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR </span> <a name="l00057"></a>00057 <span class="comment">OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF </span> <a name="l00058"></a>00058 <span class="comment">ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span> <a name="l00059"></a>00059 <span class="comment"></span> <a name="l00060"></a>00060 <span class="comment">=========================================================================*/</span> <a name="l00061"></a>00061 <a name="l00078"></a>00078 <span class="preprocessor">#ifndef __vtkPOVExporter_h</span> <a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#define __vtkPOVExporter_h</span> <a name="l00080"></a>00080 <span class="preprocessor"></span> <a name="l00081"></a>00081 <span class="preprocessor">#include "<a class="code" href="a03397.html">vtkExporter.h</a>"</span> <a name="l00082"></a>00082 <a name="l00083"></a>00083 <span class="keyword">class </span><a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a>; <a name="l00084"></a>00084 <span class="keyword">class </span><a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a>; <a name="l00085"></a>00085 <span class="keyword">class </span><a class="code" href="a00227.html" title="a virtual camera for 3D rendering">vtkCamera</a>; <a name="l00086"></a>00086 <span class="keyword">class </span><a class="code" href="a00954.html" title="a virtual light for 3D rendering">vtkLight</a>; <a name="l00087"></a>00087 <span class="keyword">class </span><a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a>; <a name="l00088"></a>00088 <span class="keyword">class </span><a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a>; <a name="l00089"></a>00089 <span class="keyword">class </span><a class="code" href="a01695.html" title="handles properties associated with a texture map">vtkTexture</a>; <a name="l00090"></a>00090 <span class="keyword">class </span>vtkPOVInternals; <a name="l00091"></a>00091 <a name="l00092"></a><a class="code" href="a01294.html">00092</a> <span class="keyword">class </span><a class="code" href="a02170.html#4019f67b2e7d601f2cf984e448308dbb">VTK_RENDERING_EXPORT</a> <a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a> : <span class="keyword">public</span> <a class="code" href="a00494.html" title="abstract class to write a scene to a file">vtkExporter</a> <a name="l00093"></a>00093 { <a name="l00094"></a>00094 <span class="keyword">public</span>: <a name="l00095"></a>00095 <span class="keyword">static</span> <a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00096"></a><a class="code" href="a01294.html#275d62292f5c05556007b76783d66883">00096</a> vtkTypeRevisionMacro(<a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a>, <a class="code" href="a00494.html" title="abstract class to write a scene to a file">vtkExporter</a>); <a name="l00097"></a>00097 <span class="keywordtype">void</span> <a class="code" href="a00494.html#6642c99a0b13d525bae79db800f188b0">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00098"></a>00098 <a name="l00100"></a>00100 <a name="l00101"></a>00101 vtkSetStringMacro(FileName); <a name="l00102"></a>00102 vtkGetStringMacro(FileName); <a name="l00104"></a>00104 <a name="l00105"></a>00105 <span class="keyword">protected</span>: <a name="l00106"></a>00106 <a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a>(); <a name="l00107"></a>00107 ~<a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a>(); <a name="l00108"></a>00108 <a name="l00109"></a>00109 <span class="keywordtype">void</span> <a class="code" href="a00494.html#55f34866b2d869f02f0360fbe1823984">WriteData</a>(); <a name="l00110"></a>00110 <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteHeader(<a class="code" href="a01480.html" title="abstract specification for renderers">vtkRenderer</a> *renderer); <a name="l00111"></a>00111 <span class="keywordtype">void</span> WriteCamera(<a class="code" href="a00227.html" title="a virtual camera for 3D rendering">vtkCamera</a> *camera); <a name="l00112"></a>00112 <span class="keywordtype">void</span> WriteLight(<a class="code" href="a00954.html" title="a virtual light for 3D rendering">vtkLight</a> *light); <a name="l00113"></a>00113 <span class="keywordtype">void</span> WriteProperty(<a class="code" href="a01322.html" title="represent surface properties of a geometric object">vtkProperty</a> *property); <a name="l00114"></a>00114 <span class="keywordtype">void</span> WritePolygons(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *polydata, <span class="keywordtype">bool</span> scalar_visible); <a name="l00115"></a>00115 <span class="keywordtype">void</span> WriteTriangleStrips(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *strip, <span class="keywordtype">bool</span> scalar_visible); <a name="l00116"></a>00116 <a name="l00117"></a>00117 <span class="keyword">virtual</span> <span class="keywordtype">void</span> WriteActor(<a class="code" href="a00092.html" title="represents an object (geometry &amp; properties) in a rendered scene">vtkActor</a> *actor); <a name="l00118"></a>00118 <a name="l00119"></a><a class="code" href="a01294.html#e07d542300f4ff4de8cb5cc2a84deef4">00119</a> <span class="keywordtype">char</span> *FileName; <a name="l00120"></a><a class="code" href="a01294.html#336d14395220c3c89b394dc92a3f8c46">00120</a> FILE *FilePtr; <a name="l00121"></a>00121 <a name="l00122"></a>00122 <span class="keyword">private</span>: <a name="l00123"></a>00123 <a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a>(<span class="keyword">const</span> <a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a>&); <span class="comment">// Not implemented.</span> <a name="l00124"></a>00124 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01294.html" title="Export scene into povray format.">vtkPOVExporter</a>&); <span class="comment">// Not implemented. </span> <a name="l00125"></a>00125 <a name="l00126"></a>00126 vtkPOVInternals *Internals; <a name="l00127"></a>00127 }; <a name="l00128"></a>00128 <a name="l00129"></a>00129 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:48 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>