Sophie

Sophie

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

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: dox/Graphics/vtkAssignAttribute.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&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><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Graphics/vtkAssignAttribute.h</h1><a href="a02469.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkAssignAttribute.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00059"></a>00059 <span class="preprocessor">#ifndef __vtkAssignAttribute_h</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define __vtkAssignAttribute_h</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span>
<a name="l00062"></a>00062 <span class="preprocessor">#include "<a class="code" href="a02315.html">vtkPassInputTypeAlgorithm.h</a>"</span>
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 <span class="preprocessor">#include "<a class="code" href="a02228.html">vtkDataSetAttributes.h</a>"</span> <span class="comment">// Needed for NUM_ATTRIBUTES</span>
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="keyword">class </span><a class="code" href="a00538.html" title="represent and manipulate fields of data">vtkFieldData</a>;
<a name="l00067"></a>00067 
<a name="l00068"></a><a class="code" href="a00145.html">00068</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a> : <span class="keyword">public</span> <a class="code" href="a01178.html" title="Superclass for algorithms that produce output of the same type as input.">vtkPassInputTypeAlgorithm</a>
<a name="l00069"></a>00069 {
<a name="l00070"></a>00070 <span class="keyword">public</span>:
<a name="l00071"></a><a class="code" href="a00145.html#94ed016ff87ff52920e4eb0f10a23c88">00071</a>   vtkTypeRevisionMacro(<a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a>,<a class="code" href="a01178.html" title="Superclass for algorithms that produce output of the same type as input.">vtkPassInputTypeAlgorithm</a>);
<a name="l00072"></a>00072   <span class="keywordtype">void</span> <a class="code" href="a01178.html#fd104ee7f0cb997633bdbce7796bbf2b">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00073"></a>00073 
<a name="l00075"></a>00075   <span class="keyword">static</span> <a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a> *<a class="code" href="a01178.html#146751972629ab4d679d7efd68d7154f">New</a>();
<a name="l00076"></a>00076 
<a name="l00078"></a>00078   <span class="keywordtype">void</span> Assign(<span class="keywordtype">int</span> inputAttributeType, <span class="keywordtype">int</span> attributeType, <span class="keywordtype">int</span> attributeLoc);
<a name="l00079"></a>00079 
<a name="l00081"></a>00081   <span class="keywordtype">void</span> Assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldName, <span class="keywordtype">int</span> attributeType, <span class="keywordtype">int</span> attributeLoc);
<a name="l00082"></a>00082 
<a name="l00084"></a>00084 
<a name="l00086"></a>00086   <span class="keywordtype">void</span> Assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* attributeType, 
<a name="l00087"></a>00087               <span class="keyword">const</span> <span class="keywordtype">char</span>* attributeLoc);
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 
<a name="l00091"></a>00091 <span class="comment">//BTX</span>
<a name="l00092"></a>00092   <span class="comment">// Always keep NUM_ATTRIBUTE_LOCS as the last entry</span>
<a name="l00093"></a><a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9af">00093</a>   <span class="keyword">enum</span> <a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9af">AttributeLocation</a>
<a name="l00094"></a>00094   {
<a name="l00095"></a><a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9aff23fb0d10d899aada0106fc9bc9f91ff">00095</a>     POINT_DATA=0,
<a name="l00096"></a><a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9afd83945ef142e35d7fb0587db79d08292">00096</a>     CELL_DATA=1,
<a name="l00097"></a><a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9afe17688339465c8b6367401aec5592713">00097</a>     VERTEX_DATA=2,
<a name="l00098"></a><a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9af9b4a033ef4714da45b1da24e41710869">00098</a>     EDGE_DATA=3,
<a name="l00099"></a><a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9afb55a1d310fb7898cf07951a1e1063dce">00099</a>     NUM_ATTRIBUTE_LOCS
<a name="l00100"></a>00100   };
<a name="l00101"></a>00101 <span class="comment">//ETX</span>
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="keyword">protected</span>:
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="comment">//BTX</span>
<a name="l00106"></a><a class="code" href="a00145.html#3ce298eb0892872c468b2513364ad567">00106</a>   <span class="keyword">enum</span> <a class="code" href="a00145.html#3ce298eb0892872c468b2513364ad567">FieldType</a>
<a name="l00107"></a>00107   {
<a name="l00108"></a><a class="code" href="a00145.html#3ce298eb0892872c468b2513364ad5678815cc374953bac377842df1c6e7274f">00108</a>     NAME,
<a name="l00109"></a><a class="code" href="a00145.html#3ce298eb0892872c468b2513364ad5673051aabc1a2ed02fd4fe08221410b1f1">00109</a>     ATTRIBUTE
<a name="l00110"></a>00110   };
<a name="l00111"></a>00111 <span class="comment">//ETX</span>
<a name="l00112"></a>00112 
<a name="l00113"></a>00113   <a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a>();
<a name="l00114"></a>00114   <span class="keyword">virtual</span> ~<a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a>();
<a name="l00115"></a>00115 
<a name="l00116"></a>00116   <span class="keywordtype">int</span> <a class="code" href="a01178.html#8a3b70da03bb80aa49c28ebbbf022051">RequestInformation</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00117"></a>00117   <span class="keywordtype">int</span> <a class="code" href="a01178.html#c3ae1f96dfc46c6556bbb8a73332bb0b">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00118"></a>00118   <span class="keywordtype">int</span> <a class="code" href="a01178.html#94cce1fbb7e334dd5b78a0ca9264bc35">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *);
<a name="l00119"></a>00119 
<a name="l00120"></a><a class="code" href="a00145.html#ee3b9ab671db8cbd02cb28506975cff1">00120</a>   <span class="keywordtype">char</span>* FieldName;
<a name="l00121"></a><a class="code" href="a00145.html#3af3f537556c8762c4627645ae90b709">00121</a>   <span class="keywordtype">int</span> FieldTypeAssignment;
<a name="l00122"></a><a class="code" href="a00145.html#554b0878f6fe34cf84d21bd7b6a2660f">00122</a>   <span class="keywordtype">int</span> AttributeType;
<a name="l00123"></a><a class="code" href="a00145.html#eb09ed6e233a84c4233def57eb348aa6">00123</a>   <span class="keywordtype">int</span> InputAttributeType;
<a name="l00124"></a><a class="code" href="a00145.html#33bd20ca1ad817c150e45ec0d32d5c54">00124</a>   <span class="keywordtype">int</span> AttributeLocationAssignment;
<a name="l00125"></a>00125 
<a name="l00126"></a><a class="code" href="a00145.html#ff75c6f114d6bfc31fb927e2de3ea1e4">00126</a>   <span class="keyword">static</span> <span class="keywordtype">char</span> AttributeLocationNames[<a class="code" href="a00145.html#5d492387022873da0fd8eab3f064a9afb55a1d310fb7898cf07951a1e1063dce">vtkAssignAttribute::NUM_ATTRIBUTE_LOCS</a>][12];
<a name="l00127"></a><a class="code" href="a00145.html#3d191ca99c00edc458dc2f4acf45e9e7">00127</a>   <span class="keyword">static</span> <span class="keywordtype">char</span> AttributeNames[<a class="code" href="a00376.html#156a8842bffd9139fa81193cca0d5bcbc61e717a84f04b31880e846cad0664e2">vtkDataSetAttributes::NUM_ATTRIBUTES</a>][20];
<a name="l00128"></a>00128 <span class="keyword">private</span>:
<a name="l00129"></a>00129   <a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a>(<span class="keyword">const</span> <a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00130"></a>00130   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00145.html" title="Labels a field as an attribute.">vtkAssignAttribute</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00131"></a>00131 };
<a name="l00132"></a>00132 
<a name="l00133"></a>00133 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:25 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>