<!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: vtkGraphWriter 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>vtkGraphWriter Class Reference</h1><!-- doxytag: class="vtkGraphWriter" --><!-- doxytag: inherits="vtkDataWriter" --><code>#include <<a class="el" href="a04924.html">vtkGraphWriter.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkGraphWriter:</div> <div class="dynsection"> <p><center><img src="a10415.png" border="0" usemap="#a10416" alt="Inheritance graph"></center> <map name="a10416"> <area shape="rect" href="a00393.html" title="helper class for objects that write vtk data files" alt="" coords="9,304,116,331"><area shape="rect" href="a01891.html" title="abstract class to write data to file(s)" alt="" coords="24,230,101,256"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="13,155,112,182"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="23,80,103,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="8,6,117,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for vtkGraphWriter:</div> <div class="dynsection"> <p><center><img src="a10417.png" border="0" usemap="#a10418" alt="Collaboration graph"></center> <map name="a10418"> <area shape="rect" href="a00393.html" title="helper class for objects that write vtk data files" alt="" coords="679,576,786,603"><area shape="rect" href="a01891.html" title="abstract class to write data to file(s)" alt="" coords="694,499,771,525"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="579,381,678,408"><area shape="rect" href="a00472.html" title="Superclass for all pipeline executives in VTK." alt="" coords="372,499,471,525"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="398,173,478,200"><area shape="rect" href="a00895.html" title="Store zero or more vtkInformation instances." alt="" coords="363,264,512,291"><area shape="rect" href="a00872.html" title="Store vtkAlgorithm input/output information." alt="" coords="142,264,251,291"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="203,5,312,32"><area shape="rect" href="a00884.html" title="internal structure for vtkInformation" alt="" coords="6,173,168,200"><area shape="rect" href="a00886.html" title="Superclass for vtkInformation keys." alt="" coords="192,83,323,109"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="556,83,666,109"><area shape="rect" href="a00891.html" title="Key for pointer to pointer." alt="" coords="192,173,374,200"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="a10419.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> write <a class="el" href="a00654.html" title="Base class for graph data types.">vtkGraph</a> data to a file <p> <a class="el" href="a00673.html" title="write vtkGraph data to a file">vtkGraphWriter</a> is a sink object that writes ASCII or binary <a class="el" href="a00654.html" title="Base class for graph data types.">vtkGraph</a> data files in vtk format. See text for format details. <dl class="warning" compact><dt><b>Warning:</b></dt><dd>Binary files written on one system may not be readable on other systems. </dd></dl> <p>Definition at line <a class="el" href="a04924.html#l00031">31</a> of file <a class="el" href="a04924.html">vtkGraphWriter.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="a00393.html">vtkDataWriter</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#e2fcbda9c5bf034ebc0fedce927f7edf">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="a00673.html#d3e5fbc2f86723558577b0469312984d">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="a00673.html#951c1e0d1872b576d5241ae65fb02f7f">IsA</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#28b9a317fee80198190f4f0df376ff1d">PrintSelf</a> (ostream &os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00654.html">vtkGraph</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#d7c29b14103fc0f68e9c53ce699812b6">GetInput</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a00654.html">vtkGraph</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#9422bf247d2ba2533a847d4c4235ce83">GetInput</a> (int port)</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="a00673.html">vtkGraphWriter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#e30e3cc849d825a8762faf82a0bfb88b">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="a00673.html#376bc9e0d74f535aa079ed03b250fa14">IsTypeOf</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a00673.html">vtkGraphWriter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#cb51a80e10bcfc04b155f8f0c511b03e">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="a00673.html#f239017ad0939534f3f5a66e22f0d3e5">vtkGraphWriter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#566161a2a9c387af2f48d1f31783cb0d">~vtkGraphWriter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#89d02830fbfa2fb23197e0ec2d9a8a41">WriteData</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00673.html#26da65a36c4fbe1512c00b3219e61a03">FillInputPortInformation</a> (int port, <a class="el" href="a00872.html">vtkInformation</a> *info)</td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="e2fcbda9c5bf034ebc0fedce927f7edf"></a><!-- doxytag: member="vtkGraphWriter::Superclass" ref="e2fcbda9c5bf034ebc0fedce927f7edf" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="a00393.html">vtkDataWriter</a> <a class="el" href="a00393.html">vtkGraphWriter::Superclass</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a00393.html#fe9b465bc434e6cb4688211b259ef9d9">vtkDataWriter</a>.</p> <p>Definition at line <a class="el" href="a04924.html#l00035">35</a> of file <a class="el" href="a04924.html">vtkGraphWriter.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="f239017ad0939534f3f5a66e22f0d3e5"></a><!-- doxytag: member="vtkGraphWriter::vtkGraphWriter" ref="f239017ad0939534f3f5a66e22f0d3e5" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkGraphWriter::vtkGraphWriter </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="a04924.html#l00045">45</a> of file <a class="el" href="a04924.html">vtkGraphWriter.h</a>.</p> </div> </div><p> <a class="anchor" name="566161a2a9c387af2f48d1f31783cb0d"></a><!-- doxytag: member="vtkGraphWriter::~vtkGraphWriter" ref="566161a2a9c387af2f48d1f31783cb0d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkGraphWriter::~vtkGraphWriter </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="a04924.html#l00046">46</a> of file <a class="el" href="a04924.html">vtkGraphWriter.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e30e3cc849d825a8762faf82a0bfb88b"></a><!-- doxytag: member="vtkGraphWriter::New" ref="e30e3cc849d825a8762faf82a0bfb88b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a00673.html">vtkGraphWriter</a>* vtkGraphWriter::New </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates. <p>Reimplemented from <a class="el" href="a00393.html#90261b328a74f3f5a1daf515fb6f9cd1">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="d3e5fbc2f86723558577b0469312984d"></a><!-- doxytag: member="vtkGraphWriter::GetClassName" ref="d3e5fbc2f86723558577b0469312984d" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkGraphWriter::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="a00393.html#bef1afe605d22327dbcbf2eb61a975a7">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="376bc9e0d74f535aa079ed03b250fa14"></a><!-- doxytag: member="vtkGraphWriter::IsTypeOf" ref="376bc9e0d74f535aa079ed03b250fa14" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int vtkGraphWriter::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="a00393.html#afc9241a2bb6a13dd2928688036a2b37">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="951c1e0d1872b576d5241ae65fb02f7f"></a><!-- doxytag: member="vtkGraphWriter::IsA" ref="951c1e0d1872b576d5241ae65fb02f7f" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkGraphWriter::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="a00393.html#30d179cfddbdbdbeafec73eed2a78d9a">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="cb51a80e10bcfc04b155f8f0c511b03e"></a><!-- doxytag: member="vtkGraphWriter::SafeDownCast" ref="cb51a80e10bcfc04b155f8f0c511b03e" args="(vtkObject *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a00673.html">vtkGraphWriter</a>* vtkGraphWriter::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="a00393.html#33818d3abd31dade0bbb70ab747e3793">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="28b9a317fee80198190f4f0df376ff1d"></a><!-- doxytag: member="vtkGraphWriter::PrintSelf" ref="28b9a317fee80198190f4f0df376ff1d" args="(ostream &os, vtkIndent indent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkGraphWriter::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="a00393.html#05e8aedddc9b7ee4900b3f0d8f0c99ac">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="d7c29b14103fc0f68e9c53ce699812b6"></a><!-- doxytag: member="vtkGraphWriter::GetInput" ref="d7c29b14103fc0f68e9c53ce699812b6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00654.html">vtkGraph</a>* vtkGraphWriter::GetInput </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Get the input to this writer. <p>Reimplemented from <a class="el" href="a01891.html#6b5a81ff411ac4cbd30a705ba9dc38e1">vtkWriter</a>.</p> </div> </div><p> <a class="anchor" name="9422bf247d2ba2533a847d4c4235ce83"></a><!-- doxytag: member="vtkGraphWriter::GetInput" ref="9422bf247d2ba2533a847d4c4235ce83" args="(int port)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="a00654.html">vtkGraph</a>* vtkGraphWriter::GetInput </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>port</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Get the input to this writer. <p>Reimplemented from <a class="el" href="a01891.html#beb0d8a002f4e1212210191572a614bd">vtkWriter</a>.</p> </div> </div><p> <a class="anchor" name="89d02830fbfa2fb23197e0ec2d9a8a41"></a><!-- doxytag: member="vtkGraphWriter::WriteData" ref="89d02830fbfa2fb23197e0ec2d9a8a41" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkGraphWriter::WriteData </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="a00393.html#2941c9ece55e4435a7db7b495f842109">vtkDataWriter</a>.</p> </div> </div><p> <a class="anchor" name="26da65a36c4fbe1512c00b3219e61a03"></a><!-- doxytag: member="vtkGraphWriter::FillInputPortInformation" ref="26da65a36c4fbe1512c00b3219e61a03" args="(int port, vtkInformation *info)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkGraphWriter::FillInputPortInformation </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>port</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00872.html">vtkInformation</a> * </td> <td class="paramname"> <em>info</em></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> Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle. <p>Reimplemented from <a class="el" href="a00101.html#aad069877868b9c2e8035a946a5d0538">vtkAlgorithm</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="a04924.html">vtkGraphWriter.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:06:34 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>