<!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: vtkPNMWriter Class Reference</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 class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>vtkPNMWriter Class Reference</h1><!-- doxytag: class="vtkPNMWriter" --><!-- doxytag: inherits="vtkImageWriter" --><code>#include <<a class="el" href="a04967.html">vtkPNMWriter.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkPNMWriter:</div> <div class="dynsection"> <p><center><img src="a13120.png" border="0" usemap="#a13121" alt="Inheritance graph"></center> <map name="a13121"> <area shape="rect" href="a00851.html" title="Writes images to files." alt="" coords="16,304,131,331"><area shape="rect" href="a00727.html" title="Generic algorithm superclass for image algs." alt="" coords="6,230,142,256"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="24,155,123,182"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="34,80,114,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="19,6,128,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for vtkPNMWriter:</div> <div class="dynsection"> <p><center><img src="a13122.png" border="0" usemap="#a13123" alt="Collaboration graph"></center> <map name="a13123"> <area shape="rect" href="a00851.html" title="Writes images to files." alt="" coords="193,576,308,603"><area shape="rect" href="a00727.html" title="Generic algorithm superclass for image algs." alt="" coords="183,499,319,525"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="281,381,380,408"><area shape="rect" href="a00472.html" title="Superclass for all pipeline executives in VTK." alt="" coords="477,499,576,525"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="407,173,487,200"><area shape="rect" href="a00895.html" title="Store zero or more vtkInformation instances." alt="" coords="404,264,553,291"><area shape="rect" href="a00872.html" title="Store vtkAlgorithm input/output information." alt="" coords="212,264,321,291"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="164,5,273,32"><area shape="rect" href="a00884.html" title="internal structure for vtkInformation" alt="" coords="5,173,168,200"><area shape="rect" href="a00886.html" title="Superclass for vtkInformation keys." alt="" coords="153,83,284,109"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="308,83,417,109"><area shape="rect" href="a00891.html" title="Key for pointer to pointer." alt="" coords="192,173,373,200"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="a13124.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> Writes PNM (portable any map) files. <p> <a class="el" href="a01241.html" title="Writes PNM (portable any map) files.">vtkPNMWriter</a> writes PNM file. The data type of the file is unsigned char regardless of the input type.<p> <dl class="user" compact><dt><b>Tests:</b></dt><dd><a class="el" href="c2_vtk_t_12.html#c2_vtk_t_vtkPNMWriter">vtkPNMWriter (Tests)</a> </dd></dl> <p>Definition at line <a class="el" href="a04967.html#l00030">30</a> of file <a class="el" href="a04967.html">vtkPNMWriter.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <a class="el" href="a00851.html">vtkImageWriter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#47dfd8ca1d3be4a33ac48b7f8d16038e">Superclass</a></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#d90d34946b70851ba17523663396ad50">GetClassName</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#24eda1cac049d34a9ed93ea7a8a525dc">IsA</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#955188179fd073d53e78cfaf550d19db">PrintSelf</a> (ostream &os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01241.html">vtkPNMWriter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#395b8f1604366467dd0a97f9bfc9f07a">New</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#0e982bc8362d1b5ec160d183ca6e2585">IsTypeOf</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01241.html">vtkPNMWriter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#45a13becfbb69189a58de6770c54c440">SafeDownCast</a> (<a class="el" href="a01084.html">vtkObject</a> *o)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#b41c5fc8887253b7259e1f6788d88bab">vtkPNMWriter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#4f1df3c13a6e9f6940b8da252c2d10e5">~vtkPNMWriter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#d13e78f389b04fe37f34e0ec1c48e414">WriteFile</a> (ofstream *file, <a class="el" href="a00751.html">vtkImageData</a> *data, int extent[6])</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01241.html#02c7664fe535acb9d1373cd005749127">WriteFileHeader</a> (ofstream *, <a class="el" href="a00751.html">vtkImageData</a> *)</td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="47dfd8ca1d3be4a33ac48b7f8d16038e"></a><!-- doxytag: member="vtkPNMWriter::Superclass" ref="47dfd8ca1d3be4a33ac48b7f8d16038e" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="a00851.html">vtkImageWriter</a> <a class="el" href="a00851.html">vtkPNMWriter::Superclass</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00851.html#d46fb666d388feb51154e5f89f8db802">vtkImageWriter</a>.</p> <p>Definition at line <a class="el" href="a04967.html#l00034">34</a> of file <a class="el" href="a04967.html">vtkPNMWriter.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="b41c5fc8887253b7259e1f6788d88bab"></a><!-- doxytag: member="vtkPNMWriter::vtkPNMWriter" ref="b41c5fc8887253b7259e1f6788d88bab" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkPNMWriter::vtkPNMWriter </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="a04967.html#l00038">38</a> of file <a class="el" href="a04967.html">vtkPNMWriter.h</a>.</p> </div> </div><p> <a class="anchor" name="4f1df3c13a6e9f6940b8da252c2d10e5"></a><!-- doxytag: member="vtkPNMWriter::~vtkPNMWriter" ref="4f1df3c13a6e9f6940b8da252c2d10e5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkPNMWriter::~vtkPNMWriter </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="a04967.html#l00039">39</a> of file <a class="el" href="a04967.html">vtkPNMWriter.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="395b8f1604366467dd0a97f9bfc9f07a"></a><!-- doxytag: member="vtkPNMWriter::New" ref="395b8f1604366467dd0a97f9bfc9f07a" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01241.html">vtkPNMWriter</a>* vtkPNMWriter::New </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Create an object with Debug turned off, modified time initialized to zero, and reference counting on. <p>Reimplemented from <a class="el" href="a00851.html#5114cbf67bc22e348935cf2b682540f8">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="d90d34946b70851ba17523663396ad50"></a><!-- doxytag: member="vtkPNMWriter::GetClassName" ref="d90d34946b70851ba17523663396ad50" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkPNMWriter::GetClassName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00851.html#86a176a5502bab7d009b1f2f70bdfe77">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="0e982bc8362d1b5ec160d183ca6e2585"></a><!-- doxytag: member="vtkPNMWriter::IsTypeOf" ref="0e982bc8362d1b5ec160d183ca6e2585" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int vtkPNMWriter::IsTypeOf </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. <p>Reimplemented from <a class="el" href="a00851.html#1e0f8d99e62e4a9754b7f08a34f50f21">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="24eda1cac049d34a9ed93ea7a8a525dc"></a><!-- doxytag: member="vtkPNMWriter::IsA" ref="24eda1cac049d34a9ed93ea7a8a525dc" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkPNMWriter::IsA </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeRevisionMacro found in vtkSetGet.h. <p>Reimplemented from <a class="el" href="a00851.html#74ee6ec43cb11c5fe41c8837e9588001">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="45a13becfbb69189a58de6770c54c440"></a><!-- doxytag: member="vtkPNMWriter::SafeDownCast" ref="45a13becfbb69189a58de6770c54c440" args="(vtkObject *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01241.html">vtkPNMWriter</a>* vtkPNMWriter::SafeDownCast </td> <td>(</td> <td class="paramtype"><a class="el" href="a01084.html">vtkObject</a> * </td> <td class="paramname"> <em>o</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00851.html#e98e39d577982a7247c42e8d8cbbf2e5">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="955188179fd073d53e78cfaf550d19db"></a><!-- doxytag: member="vtkPNMWriter::PrintSelf" ref="955188179fd073d53e78cfaf550d19db" args="(ostream &os, vtkIndent indent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkPNMWriter::PrintSelf </td> <td>(</td> <td class="paramtype">ostream & </td> <td class="paramname"> <em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00869.html">vtkIndent</a> </td> <td class="paramname"> <em>indent</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use <a class="el" href="a01085.html#edadf6378465fd81c2592ef64262e2a5">Print()</a> instead) but used in the hierarchical print process to combine the output of several classes. <p>Reimplemented from <a class="el" href="a00851.html#9af63bfc6f3d3f46be94ac4e57478447">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="d13e78f389b04fe37f34e0ec1c48e414"></a><!-- doxytag: member="vtkPNMWriter::WriteFile" ref="d13e78f389b04fe37f34e0ec1c48e414" args="(ofstream *file, vtkImageData *data, int extent[6])" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkPNMWriter::WriteFile </td> <td>(</td> <td class="paramtype">ofstream * </td> <td class="paramname"> <em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00751.html">vtkImageData</a> * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>extent</em>[6]</td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00851.html#92b8a7bc7bd2c517a4a176239131007c">vtkImageWriter</a>.</p> </div> </div><p> <a class="anchor" name="02c7664fe535acb9d1373cd005749127"></a><!-- doxytag: member="vtkPNMWriter::WriteFileHeader" ref="02c7664fe535acb9d1373cd005749127" args="(ofstream *, vtkImageData *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkPNMWriter::WriteFileHeader </td> <td>(</td> <td class="paramtype">ofstream * </td> <td class="paramname">, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00751.html">vtkImageData</a> * </td> <td class="paramname"></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00851.html#ceb3fee16c5a5d923621aef16f4f6c2e">vtkImageWriter</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>dox/IO/<a class="el" href="a04967.html">vtkPNMWriter.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:24:42 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>