Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 260

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!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: vtkCGMWriter 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>vtkCGMWriter Class Reference</h1><!-- doxytag: class="vtkCGMWriter" --><!-- doxytag: inherits="vtkPolyDataWriter" --><code>#include &lt;<a class="el" href="a04894.html">vtkCGMWriter.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for vtkCGMWriter:</div>
<div class="dynsection">
<p><center><img src="a08526.png" border="0" usemap="#a08527" alt="Inheritance graph"></center>
<map name="a08527">
<area shape="rect" href="a01277.html" title="write vtk polygonal data" alt="" coords="5,379,139,405"><area shape="rect" href="a00393.html" title="helper class for objects that write vtk data files" alt="" coords="19,304,125,331"><area shape="rect" href="a01891.html" title="abstract class to write data to file(s)" alt="" coords="33,229,111,256"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="23,155,121,181"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="32,80,112,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="17,5,127,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for vtkCGMWriter:</div>
<div class="dynsection">
<p><center><img src="a08528.png" border="0" usemap="#a08529" alt="Collaboration graph"></center>
<map name="a08529">
<area shape="rect" href="a01277.html" title="write vtk polygonal data" alt="" coords="2301,806,2435,832"><area shape="rect" href="a00393.html" title="helper class for objects that write vtk data files" alt="" coords="2016,883,2123,910"><area shape="rect" href="a01891.html" title="abstract class to write data to file(s)" alt="" coords="1505,806,1583,832"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="1092,684,1191,711"><area shape="rect" href="a00472.html" title="Superclass for all pipeline executives in VTK." alt="" coords="1495,611,1593,638"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="444,487,524,514"><area shape="rect" href="a00895.html" title="Store zero or more vtkInformation instances." alt="" coords="709,675,859,702"><area shape="rect" href="a00872.html" title="Store vtkAlgorithm input/output information." alt="" coords="729,856,839,883"><area shape="rect" href="a01833.html" title="abstract specification for Viewports" alt="" coords="2731,392,2824,419"><area shape="rect" href="a01886.html" title="window superclass for vtkRenderWindow" alt="" coords="909,144,997,171"><area shape="rect" href="a00285.html" title="create and manipulate unsorted lists of objects" alt="" coords="1091,332,1192,359"><area shape="rect" href="a00286.html" title="vtkCollectionElement" alt="" coords="709,386,859,412"><area shape="rect" href="a01317.html" title="abstract superclass for all actors, volumes and annotations" alt="" coords="1844,434,1913,460"><area shape="rect" href="a00089.html" title="superclass for all geometric transformations" alt="" coords="708,103,860,130"><area shape="rect" href="a00998.html" title="represent and manipulate 4x4 transformation matrices" alt="" coords="735,244,833,271"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="7,822,116,848"><area shape="rect" href="a00884.html" title="internal structure for vtkInformation" alt="" coords="403,854,565,880"><area shape="rect" href="a00886.html" title="Superclass for vtkInformation keys." alt="" coords="169,883,300,910"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="180,487,289,514"><area shape="rect" href="a00891.html" title="Key for pointer to pointer." alt="" coords="393,904,575,931"><area shape="rect" href="a00094.html" title="a list of 2D actors" alt="" coords="2460,428,2609,455"><area shape="rect" href="a01321.html" title="a list of Props" alt="" coords="2148,380,2276,407"><area shape="rect" href="a00143.html" title="a list of nodes that form an assembly path" alt="" coords="2472,274,2597,300"><area shape="rect" href="a00144.html" title="a list of lists of props representing an assembly hierarchy" alt="" coords="1477,383,1611,410"><area shape="rect" href="a01723.html" title="describes linear transformations via a 4x4 matrix" alt="" coords="2160,192,2264,219"><area shape="rect" href="a00964.html" title="abstract superclass for linear transformations" alt="" coords="1808,215,1949,242"><area shape="rect" href="a00696.html" title="superclass for homogeneous transformations" alt="" coords="1045,192,1237,219"><area shape="rect" href="a01725.html" title="vtkTransformConcatenation" alt="" coords="1448,78,1640,104"><area shape="rect" href="a01730.html" title="vtkTransformPair" alt="" coords="1077,11,1205,38"><area shape="rect" href="a01548.html" title="vtkSimpleCriticalSection" alt="" coords="400,74,568,100"><area shape="rect" href="a01726.html" title="vtkTransformConcatenationStack" alt="" coords="1767,24,1991,51"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="a08530.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
write polygonal data as a CGM file 
<p>
<a class="el" href="a00257.html" title="write polygonal data as a CGM file">vtkCGMWriter</a> writes CGM (Computer Graphics Metafile) output. CGM is a 2D graphics vector format typically used by large plotters. This writer can handle vertices, lines, polygons, and triangle strips in any combination. Colors are specified either 1) from cell scalars (assumed to be RGB or RGBA color specification), 2) from a specified color; or 3) randomly assigned colors.<p>
Note: During output of the polygonal data, triangle strips are converted to triangles, and polylines to lines. Also, due to limitations in the CGM color model, only 256 colors are available to the color palette.<p>
<dl class="warning" compact><dt><b>Warning:</b></dt><dd>The class <a class="el" href="a00841.html" title="generate linear primitives (vtkPolyData) from an image">vtkImageToPolyDataFilter</a> is convenient for converting a raster image into polygons (and color map) suitable for plotting with CGM.</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="a01277.html" title="write vtk polygonal data">vtkPolyDataWriter</a> <a class="el" href="a01243.html" title="map point data to cell data">vtkPointDataToCellData</a></dd></dl>
<dl class="user" compact><dt><b>Tests:</b></dt><dd><a class="el" href="c2_vtk_t_3.html#c2_vtk_t_vtkCGMWriter">vtkCGMWriter (Tests)</a> </dd></dl>

<p>Definition at line <a class="el" href="a04894.html#l00051">51</a> of file <a class="el" href="a04894.html">vtkCGMWriter.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="a01277.html">vtkPolyDataWriter</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#68141947edbb0d92a4cbcf7eb9c1155f">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 *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#f7e5a3fcfd4446ee92f68172a7a26642">GetClassName</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#886254ca0fd859f2c2b0d2d644374ccd">IsA</a> (const char *type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#6fd75c8d8214311cbfcc2fddf00b094a">PrintSelf</a> (ostream &amp;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">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#f4e2362b9eed71dc7c92ffab1a9e116c">SetViewport</a> (<a class="el" href="a01833.html">vtkViewport</a> *)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="a01833.html">vtkViewport</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#3e4ad87afbcf783ac92f4986d45d4885">GetViewport</a> ()</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#26dfe9eacd79cb3730563d14d0c92fe6">SetSort</a> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#eaf20cd22843c901ea6f9483e73ce43d">GetSort</a> ()</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#d64faef4d68fd9a62cd1a48f00ee41a1">SetResolution</a> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#67309580b7435f04999716c6714bfc94">GetResolution</a> ()</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#29281adc2aafdffe84c308418ee11dca">SetColorMode</a> (int)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#cd47b88ef0d5cd6646c506c067811d31">GetColorMode</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#1daca384b7187ef40569e36b2319f8a3">SetColorModeToDefault</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#73f26d721931fd0cf2dc20fd9b02e4ba">SetColorModeToSpecifiedColor</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#feb6ed792fe91bbb8572505443bb6f8e">SetColorModeToRandomColors</a> ()</td></tr>

<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#8afc12a5ce3d570a9d755e3631f39f92">SetSpecifiedColor</a> (float, float, float)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#33af6e31f5790bfa43cab85b217b39be">SetSpecifiedColor</a> (float[3])</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual float *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#5b9aadd6a52b45010e965d38a8210829">GetSpecifiedColor</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#096c9c682457182782570a7b8d843fb9">GetSpecifiedColor</a> (float data[3])</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="a00257.html">vtkCGMWriter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#08f874803fedec6e420af7d1dfff29b8">New</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#0f97e2673541c1f6b32a97292bd2a2de">IsTypeOf</a> (const char *type)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a00257.html">vtkCGMWriter</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#4ca499f6ecec85682b9def049439db17">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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#cc4f729f546a4a1ab48a856e81c2d9fc">vtkCGMWriter</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#272edc23ef2302d4cfba943447a23a5b">~vtkCGMWriter</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#74964647ea0417f6b1330a50feff6cae">WriteData</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="a01833.html">vtkViewport</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#af1ae18d2cef6f54b05f3959656075f4">Viewport</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#d1c05e3f1f4ea8a90b1e133a156a5bbf">ColorMode</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#287629ab5561efc5e6667b6ef5f30f1d">SpecifiedColor</a> [3]</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#670fed6a91b2b22529c882976104dd89">Resolution</a></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00257.html#77c7ebab491a8e88a6f3f4f7f115b682">Sort</a></td></tr>

</table>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="68141947edbb0d92a4cbcf7eb9c1155f"></a><!-- doxytag: member="vtkCGMWriter::Superclass" ref="68141947edbb0d92a4cbcf7eb9c1155f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="a01277.html">vtkPolyDataWriter</a> <a class="el" href="a01277.html">vtkCGMWriter::Superclass</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01277.html#908aed54c45145d6ae2a1b631346c00c">vtkPolyDataWriter</a>.</p>

<p>Definition at line <a class="el" href="a04894.html#l00058">58</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="cc4f729f546a4a1ab48a856e81c2d9fc"></a><!-- doxytag: member="vtkCGMWriter::vtkCGMWriter" ref="cc4f729f546a4a1ab48a856e81c2d9fc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkCGMWriter::vtkCGMWriter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="272edc23ef2302d4cfba943447a23a5b"></a><!-- doxytag: member="vtkCGMWriter::~vtkCGMWriter" ref="272edc23ef2302d4cfba943447a23a5b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">vtkCGMWriter::~vtkCGMWriter           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="08f874803fedec6e420af7d1dfff29b8"></a><!-- doxytag: member="vtkCGMWriter::New" ref="08f874803fedec6e420af7d1dfff29b8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00257.html">vtkCGMWriter</a>* vtkCGMWriter::New           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Instantiate with no viewport defined and sorting on. The default resolution is 10,000, and the color mode is set to default. 
<p>Reimplemented from <a class="el" href="a01277.html#12d7b56628c38ad812f1425fae4a1ccd">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<a class="anchor" name="f7e5a3fcfd4446ee92f68172a7a26642"></a><!-- doxytag: member="vtkCGMWriter::GetClassName" ref="f7e5a3fcfd4446ee92f68172a7a26642" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const char* vtkCGMWriter::GetClassName           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01277.html#12b440cedf31b6b41aace7cd5784b558">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<a class="anchor" name="0f97e2673541c1f6b32a97292bd2a2de"></a><!-- doxytag: member="vtkCGMWriter::IsTypeOf" ref="0f97e2673541c1f6b32a97292bd2a2de" args="(const char *type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static int vtkCGMWriter::IsTypeOf           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</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="a01277.html#00dd8bb8ee474d7fd89cacf1fe395a69">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<a class="anchor" name="886254ca0fd859f2c2b0d2d644374ccd"></a><!-- doxytag: member="vtkCGMWriter::IsA" ref="886254ca0fd859f2c2b0d2d644374ccd" args="(const char *type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkCGMWriter::IsA           </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</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="a01277.html#2ac2b609f02af033da6cb565ae5b1141">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<a class="anchor" name="4ca499f6ecec85682b9def049439db17"></a><!-- doxytag: member="vtkCGMWriter::SafeDownCast" ref="4ca499f6ecec85682b9def049439db17" args="(vtkObject *o)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00257.html">vtkCGMWriter</a>* vtkCGMWriter::SafeDownCast           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a01084.html">vtkObject</a> *&nbsp;</td>
          <td class="paramname"> <em>o</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01277.html#d0070739a9eba3dc0e50a56ddcae7981">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<a class="anchor" name="6fd75c8d8214311cbfcc2fddf00b094a"></a><!-- doxytag: member="vtkCGMWriter::PrintSelf" ref="6fd75c8d8214311cbfcc2fddf00b094a" args="(ostream &amp;os, vtkIndent indent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCGMWriter::PrintSelf           </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&nbsp;</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>&nbsp;</td>
          <td class="paramname"> <em>indent</em></td><td>&nbsp;</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="a01277.html#9bc9317ca5fdf8ae70f549c3e4059e68">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<a class="anchor" name="f4e2362b9eed71dc7c92ffab1a9e116c"></a><!-- doxytag: member="vtkCGMWriter::SetViewport" ref="f4e2362b9eed71dc7c92ffab1a9e116c" args="(vtkViewport *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::SetViewport           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a01833.html">vtkViewport</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specify a <a class="el" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> object to be used to transform the <a class="el" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> points into 2D coordinates. By default (no <a class="el" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> specified), the point coordinates are generated by ignoring the z values. If a viewport is defined, then the points are transformed into viewport coordinates. 
</div>
</div><p>
<a class="anchor" name="3e4ad87afbcf783ac92f4986d45d4885"></a><!-- doxytag: member="vtkCGMWriter::GetViewport" ref="3e4ad87afbcf783ac92f4986d45d4885" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a01833.html">vtkViewport</a>* vtkCGMWriter::GetViewport           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specify a <a class="el" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> object to be used to transform the <a class="el" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> points into 2D coordinates. By default (no <a class="el" href="a01833.html" title="abstract specification for Viewports">vtkViewport</a> specified), the point coordinates are generated by ignoring the z values. If a viewport is defined, then the points are transformed into viewport coordinates. 
</div>
</div><p>
<a class="anchor" name="26dfe9eacd79cb3730563d14d0c92fe6"></a><!-- doxytag: member="vtkCGMWriter::SetSort" ref="26dfe9eacd79cb3730563d14d0c92fe6" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::SetSort           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Turn on/off the sorting of the cells via depth. If enabled, polygonal cells will be sorted from back to front, i.e., a Painter's algorithm sort. 
</div>
</div><p>
<a class="anchor" name="eaf20cd22843c901ea6f9483e73ce43d"></a><!-- doxytag: member="vtkCGMWriter::GetSort" ref="eaf20cd22843c901ea6f9483e73ce43d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkCGMWriter::GetSort           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Turn on/off the sorting of the cells via depth. If enabled, polygonal cells will be sorted from back to front, i.e., a Painter's algorithm sort. 
</div>
</div><p>
<a class="anchor" name="d64faef4d68fd9a62cd1a48f00ee41a1"></a><!-- doxytag: member="vtkCGMWriter::SetResolution" ref="d64faef4d68fd9a62cd1a48f00ee41a1" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::SetResolution           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specify the resolution of the CGM file. This number is used to integerize the maximum coordinate range of the plot file. 
</div>
</div><p>
<a class="anchor" name="67309580b7435f04999716c6714bfc94"></a><!-- doxytag: member="vtkCGMWriter::GetResolution" ref="67309580b7435f04999716c6714bfc94" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkCGMWriter::GetResolution           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specify the resolution of the CGM file. This number is used to integerize the maximum coordinate range of the plot file. 
</div>
</div><p>
<a class="anchor" name="29281adc2aafdffe84c308418ee11dca"></a><!-- doxytag: member="vtkCGMWriter::SetColorMode" ref="29281adc2aafdffe84c308418ee11dca" args="(int)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::SetColorMode           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Control how output polydata is colored. By default (ColorModeToDefault), if per cell colors are defined (unsigned chars of 1-4 components), then the cells are colored with these values. (If point colors are defined and cell colors are not, you can use <a class="el" href="a01243.html" title="map point data to cell data">vtkPointDataToCellData</a> to convert the point colors to cell colors.) Otherwise, by default, the cells are set to the specified color. If ColorModeToSpecifiedColor is set, then the primitives will all be set to this color. If ColorModeToRandomColors is set, each cell will be randomly assigned a color. 
</div>
</div><p>
<a class="anchor" name="cd47b88ef0d5cd6646c506c067811d31"></a><!-- doxytag: member="vtkCGMWriter::GetColorMode" ref="cd47b88ef0d5cd6646c506c067811d31" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual int vtkCGMWriter::GetColorMode           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Control how output polydata is colored. By default (ColorModeToDefault), if per cell colors are defined (unsigned chars of 1-4 components), then the cells are colored with these values. (If point colors are defined and cell colors are not, you can use <a class="el" href="a01243.html" title="map point data to cell data">vtkPointDataToCellData</a> to convert the point colors to cell colors.) Otherwise, by default, the cells are set to the specified color. If ColorModeToSpecifiedColor is set, then the primitives will all be set to this color. If ColorModeToRandomColors is set, each cell will be randomly assigned a color. 
</div>
</div><p>
<a class="anchor" name="1daca384b7187ef40569e36b2319f8a3"></a><!-- doxytag: member="vtkCGMWriter::SetColorModeToDefault" ref="1daca384b7187ef40569e36b2319f8a3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCGMWriter::SetColorModeToDefault           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Control how output polydata is colored. By default (ColorModeToDefault), if per cell colors are defined (unsigned chars of 1-4 components), then the cells are colored with these values. (If point colors are defined and cell colors are not, you can use <a class="el" href="a01243.html" title="map point data to cell data">vtkPointDataToCellData</a> to convert the point colors to cell colors.) Otherwise, by default, the cells are set to the specified color. If ColorModeToSpecifiedColor is set, then the primitives will all be set to this color. If ColorModeToRandomColors is set, each cell will be randomly assigned a color. 
<p>Definition at line <a class="el" href="a04894.html#l00098">98</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="73f26d721931fd0cf2dc20fd9b02e4ba"></a><!-- doxytag: member="vtkCGMWriter::SetColorModeToSpecifiedColor" ref="73f26d721931fd0cf2dc20fd9b02e4ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCGMWriter::SetColorModeToSpecifiedColor           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Control how output polydata is colored. By default (ColorModeToDefault), if per cell colors are defined (unsigned chars of 1-4 components), then the cells are colored with these values. (If point colors are defined and cell colors are not, you can use <a class="el" href="a01243.html" title="map point data to cell data">vtkPointDataToCellData</a> to convert the point colors to cell colors.) Otherwise, by default, the cells are set to the specified color. If ColorModeToSpecifiedColor is set, then the primitives will all be set to this color. If ColorModeToRandomColors is set, each cell will be randomly assigned a color. 
<p>Definition at line <a class="el" href="a04894.html#l00100">100</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="feb6ed792fe91bbb8572505443bb6f8e"></a><!-- doxytag: member="vtkCGMWriter::SetColorModeToRandomColors" ref="feb6ed792fe91bbb8572505443bb6f8e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCGMWriter::SetColorModeToRandomColors           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Control how output polydata is colored. By default (ColorModeToDefault), if per cell colors are defined (unsigned chars of 1-4 components), then the cells are colored with these values. (If point colors are defined and cell colors are not, you can use <a class="el" href="a01243.html" title="map point data to cell data">vtkPointDataToCellData</a> to convert the point colors to cell colors.) Otherwise, by default, the cells are set to the specified color. If ColorModeToSpecifiedColor is set, then the primitives will all be set to this color. If ColorModeToRandomColors is set, each cell will be randomly assigned a color. 
<p>Definition at line <a class="el" href="a04894.html#l00102">102</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="8afc12a5ce3d570a9d755e3631f39f92"></a><!-- doxytag: member="vtkCGMWriter::SetSpecifiedColor" ref="8afc12a5ce3d570a9d755e3631f39f92" args="(float, float, float)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::SetSpecifiedColor           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set/Get the specified color to color the polydata cells. This color is only used when the color mode is set to ColorModeToSpecifiedColor, or ColorModeToDefault is set and no cell colors are specified. The specified color is specified as RGB values ranging from (0,1). (Note: CGM will map this color to the closest color it supports.) 
</div>
</div><p>
<a class="anchor" name="33af6e31f5790bfa43cab85b217b39be"></a><!-- doxytag: member="vtkCGMWriter::SetSpecifiedColor" ref="33af6e31f5790bfa43cab85b217b39be" args="(float[3])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::SetSpecifiedColor           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname">[3]          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set/Get the specified color to color the polydata cells. This color is only used when the color mode is set to ColorModeToSpecifiedColor, or ColorModeToDefault is set and no cell colors are specified. The specified color is specified as RGB values ranging from (0,1). (Note: CGM will map this color to the closest color it supports.) 
</div>
</div><p>
<a class="anchor" name="5b9aadd6a52b45010e965d38a8210829"></a><!-- doxytag: member="vtkCGMWriter::GetSpecifiedColor" ref="5b9aadd6a52b45010e965d38a8210829" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual float* vtkCGMWriter::GetSpecifiedColor           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set/Get the specified color to color the polydata cells. This color is only used when the color mode is set to ColorModeToSpecifiedColor, or ColorModeToDefault is set and no cell colors are specified. The specified color is specified as RGB values ranging from (0,1). (Note: CGM will map this color to the closest color it supports.) 
</div>
</div><p>
<a class="anchor" name="096c9c682457182782570a7b8d843fb9"></a><!-- doxytag: member="vtkCGMWriter::GetSpecifiedColor" ref="096c9c682457182782570a7b8d843fb9" args="(float data[3])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void vtkCGMWriter::GetSpecifiedColor           </td>
          <td>(</td>
          <td class="paramtype">float&nbsp;</td>
          <td class="paramname"> <em>data</em>[3]          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set/Get the specified color to color the polydata cells. This color is only used when the color mode is set to ColorModeToSpecifiedColor, or ColorModeToDefault is set and no cell colors are specified. The specified color is specified as RGB values ranging from (0,1). (Note: CGM will map this color to the closest color it supports.) 
</div>
</div><p>
<a class="anchor" name="74964647ea0417f6b1330a50feff6cae"></a><!-- doxytag: member="vtkCGMWriter::WriteData" ref="74964647ea0417f6b1330a50feff6cae" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void vtkCGMWriter::WriteData           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Reimplemented from <a class="el" href="a01277.html#8f54eeac33432c35d41d2796f05ac560">vtkPolyDataWriter</a>.</p>

</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="af1ae18d2cef6f54b05f3959656075f4"></a><!-- doxytag: member="vtkCGMWriter::Viewport" ref="af1ae18d2cef6f54b05f3959656075f4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a01833.html">vtkViewport</a>* <a class="el" href="a00257.html#af1ae18d2cef6f54b05f3959656075f4">vtkCGMWriter::Viewport</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a04894.html#l00121">121</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="d1c05e3f1f4ea8a90b1e133a156a5bbf"></a><!-- doxytag: member="vtkCGMWriter::ColorMode" ref="d1c05e3f1f4ea8a90b1e133a156a5bbf" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00257.html#d1c05e3f1f4ea8a90b1e133a156a5bbf">vtkCGMWriter::ColorMode</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a04894.html#l00122">122</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="287629ab5561efc5e6667b6ef5f30f1d"></a><!-- doxytag: member="vtkCGMWriter::SpecifiedColor" ref="287629ab5561efc5e6667b6ef5f30f1d" args="[3]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float <a class="el" href="a00257.html#287629ab5561efc5e6667b6ef5f30f1d">vtkCGMWriter::SpecifiedColor</a>[3]<code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a04894.html#l00123">123</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="670fed6a91b2b22529c882976104dd89"></a><!-- doxytag: member="vtkCGMWriter::Resolution" ref="670fed6a91b2b22529c882976104dd89" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00257.html#670fed6a91b2b22529c882976104dd89">vtkCGMWriter::Resolution</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a04894.html#l00124">124</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</a>.</p>

</div>
</div><p>
<a class="anchor" name="77c7ebab491a8e88a6f3f4f7f115b682"></a><!-- doxytag: member="vtkCGMWriter::Sort" ref="77c7ebab491a8e88a6f3f4f7f115b682" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="a00257.html#77c7ebab491a8e88a6f3f4f7f115b682">vtkCGMWriter::Sort</a><code> [protected]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>Definition at line <a class="el" href="a04894.html#l00125">125</a> of file <a class="el" href="a04894.html">vtkCGMWriter.h</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="a04894.html">vtkCGMWriter.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:56:28 2009 for VTK by&nbsp;
<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>