<!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: vtkPNGReader 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>vtkPNGReader Class Reference</h1><!-- doxytag: class="vtkPNGReader" --><!-- doxytag: inherits="vtkImageReader2" --><code>#include <<a class="el" href="a04964.html">vtkPNGReader.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkPNGReader:</div> <div class="dynsection"> <p><center><img src="a13105.png" border="0" usemap="#a13106" alt="Inheritance graph"></center> <map name="a13106"> <area shape="rect" href="a00815.html" title="Superclass of binary file readers." alt="" coords="8,304,139,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 vtkPNGReader:</div> <div class="dynsection"> <p><center><img src="a13107.png" border="0" usemap="#a13108" alt="Collaboration graph"></center> <map name="a13108"> <area shape="rect" href="a00815.html" title="Superclass of binary file readers." alt="" coords="416,590,547,616"><area shape="rect" href="a00727.html" title="Generic algorithm superclass for image algs." alt="" coords="328,499,464,526"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="259,382,357,408"><area shape="rect" href="a00472.html" title="Superclass for all pipeline executives in VTK." alt="" coords="52,499,151,526"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="264,174,344,200"><area shape="rect" href="a00895.html" title="Store zero or more vtkInformation instances." alt="" coords="77,264,227,291"><area shape="rect" href="a00872.html" title="Store vtkAlgorithm input/output information." alt="" coords="404,264,513,291"><area shape="rect" href="a00081.html" title="Abstract superclass for all arrays." alt="" coords="501,382,624,408"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="476,6,585,32"><area shape="rect" href="a00884.html" title="internal structure for vtkInformation" alt="" coords="573,174,736,200"><area shape="rect" href="a00886.html" title="Superclass for vtkInformation keys." alt="" coords="465,83,596,110"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="249,83,359,110"><area shape="rect" href="a00891.html" title="Key for pointer to pointer." alt="" coords="368,174,549,200"><area shape="rect" href="a01619.html" title="Subclass of vtkAbstractArray that holds vtkStdStrings." alt="" coords="488,499,597,526"><area shape="rect" href="a01607.html" title="Wrapper around vtkstd::string to keep symbols short." alt="" coords="381,382,477,408"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="a13109.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> read PNG files <p> <a class="el" href="a01238.html" title="read PNG files">vtkPNGReader</a> is a source object that reads PNG files. It should be able to read most any PNG file<p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="a01239.html" title="Writes PNG files.">vtkPNGWriter</a></dd></dl> <dl class="user" compact><dt><b>Tests:</b></dt><dd><a class="el" href="c2_vtk_t_12.html#c2_vtk_t_vtkPNGReader">vtkPNGReader (Tests)</a> </dd></dl> <p>Definition at line <a class="el" href="a04964.html#l00033">33</a> of file <a class="el" href="a04964.html">vtkPNGReader.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="a00815.html">vtkImageReader2</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#f8ac0b38ce256ecbd7d3a08fa24b77f2">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="a01238.html#0fa2132a045fb393bf266bb3999362ce">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="a01238.html#345d0acaf9dcdd9220950fddc0a5df66">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="a01238.html#50884eeea7200f6d4c85c3d0b5469d91">PrintSelf</a> (ostream &os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#c25325346a2ff7db2638c51508bc2bb6">CanReadFile</a> (const char *fname)</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#929aaa688ffb11930df5a0c565743997">GetFileExtensions</a> ()</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#6d1657e4af89b0b159aa6bc51254cc19">GetDescriptiveName</a> ()</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="a01238.html">vtkPNGReader</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#26718c118f544fd28ded208c183e29f0">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="a01238.html#4e33f97451875485ccc6f42ebbe152cc">IsTypeOf</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01238.html">vtkPNGReader</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#465f58093c9e635b55aa4e1875abccf6">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="a01238.html#40660fc2662cd07c2b96d5391cff9312">vtkPNGReader</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#94f76b465841ffa5ccd306c529d537da">~vtkPNGReader</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#92c4ab50ad0e483915e82c2d9739ffcd">ExecuteInformation</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01238.html#7d1cda6e65b0ab6347397dc7a531f41d">ExecuteData</a> (<a class="el" href="a00362.html">vtkDataObject</a> *out)</td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="f8ac0b38ce256ecbd7d3a08fa24b77f2"></a><!-- doxytag: member="vtkPNGReader::Superclass" ref="f8ac0b38ce256ecbd7d3a08fa24b77f2" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="a00815.html">vtkImageReader2</a> <a class="el" href="a00815.html">vtkPNGReader::Superclass</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00815.html#d65e9b397e94b7d25b8534dee1b83d71">vtkImageReader2</a>.</p> <p>Definition at line <a class="el" href="a04964.html#l00037">37</a> of file <a class="el" href="a04964.html">vtkPNGReader.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="40660fc2662cd07c2b96d5391cff9312"></a><!-- doxytag: member="vtkPNGReader::vtkPNGReader" ref="40660fc2662cd07c2b96d5391cff9312" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkPNGReader::vtkPNGReader </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="a04964.html#l00062">62</a> of file <a class="el" href="a04964.html">vtkPNGReader.h</a>.</p> </div> </div><p> <a class="anchor" name="94f76b465841ffa5ccd306c529d537da"></a><!-- doxytag: member="vtkPNGReader::~vtkPNGReader" ref="94f76b465841ffa5ccd306c529d537da" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkPNGReader::~vtkPNGReader </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="a04964.html#l00063">63</a> of file <a class="el" href="a04964.html">vtkPNGReader.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="26718c118f544fd28ded208c183e29f0"></a><!-- doxytag: member="vtkPNGReader::New" ref="26718c118f544fd28ded208c183e29f0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01238.html">vtkPNGReader</a>* vtkPNGReader::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="a00815.html#25a0c83fabafbf8a658f7373ee84986b">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="0fa2132a045fb393bf266bb3999362ce"></a><!-- doxytag: member="vtkPNGReader::GetClassName" ref="0fa2132a045fb393bf266bb3999362ce" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkPNGReader::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="a00815.html#595ce4dd3d011b414fcaa9dd6a4956c2">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="4e33f97451875485ccc6f42ebbe152cc"></a><!-- doxytag: member="vtkPNGReader::IsTypeOf" ref="4e33f97451875485ccc6f42ebbe152cc" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int vtkPNGReader::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="a00815.html#3c77a01fa1c4cb8b44ae68258191750a">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="345d0acaf9dcdd9220950fddc0a5df66"></a><!-- doxytag: member="vtkPNGReader::IsA" ref="345d0acaf9dcdd9220950fddc0a5df66" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkPNGReader::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="a00815.html#f767a1c18bcff32c317788bbeecabeba">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="465f58093c9e635b55aa4e1875abccf6"></a><!-- doxytag: member="vtkPNGReader::SafeDownCast" ref="465f58093c9e635b55aa4e1875abccf6" args="(vtkObject *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01238.html">vtkPNGReader</a>* vtkPNGReader::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="a00815.html#28718113a1efdd794f98aba37cca18c1">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="50884eeea7200f6d4c85c3d0b5469d91"></a><!-- doxytag: member="vtkPNGReader::PrintSelf" ref="50884eeea7200f6d4c85c3d0b5469d91" args="(ostream &os, vtkIndent indent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkPNGReader::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="a00815.html#75a81a26827763bb51f81dbc643da687">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="c25325346a2ff7db2638c51508bc2bb6"></a><!-- doxytag: member="vtkPNGReader::CanReadFile" ref="c25325346a2ff7db2638c51508bc2bb6" args="(const char *fname)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkPNGReader::CanReadFile </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>fname</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Is the given file a PNG file? </div> </div><p> <a class="anchor" name="929aaa688ffb11930df5a0c565743997"></a><!-- doxytag: member="vtkPNGReader::GetFileExtensions" ref="929aaa688ffb11930df5a0c565743997" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkPNGReader::GetFileExtensions </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get the file extensions for this format. Returns a string with a space separated list of extensions in the format .extension <p>Reimplemented from <a class="el" href="a00815.html#2846943a7802b3a62df51e0936542abb">vtkImageReader2</a>.</p> <p>Definition at line <a class="el" href="a04964.html#l00046">46</a> of file <a class="el" href="a04964.html">vtkPNGReader.h</a>.</p> </div> </div><p> <a class="anchor" name="6d1657e4af89b0b159aa6bc51254cc19"></a><!-- doxytag: member="vtkPNGReader::GetDescriptiveName" ref="6d1657e4af89b0b159aa6bc51254cc19" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkPNGReader::GetDescriptiveName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Return a descriptive name for the file format that might be useful in a GUI. <p>Reimplemented from <a class="el" href="a00815.html#e83ebabf18c670a314bb32eb50371f61">vtkImageReader2</a>.</p> <p>Definition at line <a class="el" href="a04964.html#l00055">55</a> of file <a class="el" href="a04964.html">vtkPNGReader.h</a>.</p> </div> </div><p> <a class="anchor" name="92c4ab50ad0e483915e82c2d9739ffcd"></a><!-- doxytag: member="vtkPNGReader::ExecuteInformation" ref="92c4ab50ad0e483915e82c2d9739ffcd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkPNGReader::ExecuteInformation </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00815.html#e31d4865f47029d0a63da3716bae2305">vtkImageReader2</a>.</p> </div> </div><p> <a class="anchor" name="7d1cda6e65b0ab6347397dc7a531f41d"></a><!-- doxytag: member="vtkPNGReader::ExecuteData" ref="7d1cda6e65b0ab6347397dc7a531f41d" args="(vtkDataObject *out)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkPNGReader::ExecuteData </td> <td>(</td> <td class="paramtype"><a class="el" href="a00362.html">vtkDataObject</a> * </td> <td class="paramname"> <em>output</em> </td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> This method is the old style execute method <p>Reimplemented from <a class="el" href="a00815.html#a26f5f16dd7178bea2d7608f0d5ed633">vtkImageReader2</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="a04964.html">vtkPNGReader.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:24:39 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>